*,
*::before,
*::after {
  box-sizing: border-box;
  font: inherit;
}

/* ------------------------- 
          Variables
-------------------------- */

:root {
  /* Colores */
  --color-dorado: #cd9b60;

  --modal-bg: #fff;
  --modal-fg: #111;
  --muted: #6b7280; /* gris medio */
  --ring: rgba(0, 0, 0, 0.08); /* borde/sombra suave */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  --radius-xl: 22px;
  --radius-pill: 999px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.5rem;
  --space-6: 2rem;

  /* Fuentes */
  --fuente-principal: "Roboto", sans-serif;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: #f7f5f2;
  color: #1a1a1a;
}

.contacts {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: 1.5rem;
}

.contacts__container {
  width: 100%;
  background: linear-gradient(180deg, #fdfbf9 0%, #f8f5f2 100%);
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(190, 150, 103, 0.2);
  max-width: 600px;
  position: relative;
  z-index: 100;
  padding: 6rem 2rem;
  filter: opacity(0.8);
}

/* -------------------------
         Header
-------------------------- */
.header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 2.5rem 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 50px;
}

.header__menu-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  margin: 1rem;
  border-radius: 50%;
  background: white;
  width: 40px;
  height: 40px;
}

.header__menu-icon {
  width: 20px;
  height: 20px;
}

/* -------------------------
         Hero / Card principal
-------------------------- */
.hero {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.hero__title {
  text-align: center;
  font-style: normal;
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-family: var(--header-font-family, inherit);
  color: var(--header-text-color, var(--bodyText));
  line-height: 1.25;
}

.hero__lead {
  font-size: 14px;
  color: #444;
  font-weight: 700;
  line-height: 1.5;
  width: calc(100% - 6rem);
  text-align: center;
}

/* -------------------------
         Redes sociales
-------------------------- */
.hero__social {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 16px;
}

.social__link--icon {
  height: 100%;
  width: 100%;
}

.urls__link {
  height: 30px;
  width: 30px;
}

.social__icon {
  width: 100%;
  transition: all 0.2s ease;
}

.social__icon:hover {
  transform: scale(1.1);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.contact-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--color-dorado);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  border-color: var(--color-dorado);
  box-shadow: 0 0 0 2px var(--color-dorado);
}

.contact-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.contact-card__name {
  font-weight: 500;
}

.contact-card__more-btn {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-card__more-btn:hover {
  background-color: rgba(190, 150, 103, 0.08);
}

.contact-card__more-icon {
  width: 18px;
  height: 18px;
}

/* -------------------------
          Backdrop
-------------------------- */
.contacts__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 10;
  filter: brightness(0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.contacts__backdrop-content {
  max-width: 600px;
  width: 100%;
  height: 100%;
}

.contacts__img {
  background-image: url(../img/jphGold.webp);
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: block;
  filter: blur(50px);
}

/* -------------------------
          Modal
-------------------------- */

.contacts__modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
  align-items: center;
  align-content: center;
}
.contacts__modal--active {
  display: flex;
}

.contacts__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.contacts__modal-backdrop--active {
  opacity: 1;
}

.contacts__modal-content {
  position: relative;
  margin: auto;
  background: var(--modal-bg, #fff);
  color: var(--modal-fg, #111);
  border-radius: var(--radius-xl, 20px);
  box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.18));
  padding: 1.5rem;
  width: 80vw;
  max-width: 500px;
}
.contacts__modal-content--active {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.contacts__modal-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: 2rem;
}
.contacts__modal-sheared-btn,
.contacts__modal-close-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
}
.contacts__modal-sheared-btn:hover,
.contacts__modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}
.contacts__modal-title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  /* color: var(--muted); */
}

.contacts__modal-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.contacts__modal-name {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin: 0;
}
.puesto_modal-position {
  font-weight: 500;
  color: #111;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin: 0;
}

.contacts__modal-social {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social__link {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  column-gap: var(--space-3);
  text-decoration: none;
  color: inherit;
}

.contacts__modal-title {
  font-size: 0.95rem;
  font-weight: 400;
}

.contacts__modal-name {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.contacts__modal-text {
  font-weight: 500;
  font-size: 16px;
}

.contacts__modal-footer {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contacts__cta {
  width: 300px;
  height: 40px;
  border: 1px solid black;
  background: transparent;
  border-radius: 15px;
  font-weight: 600;
}

/* -------------------------
          Toast
-------------------------- */

/* .toast {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: #333;
  color: #fff;
  font-size: 0.875rem;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.toast.show {
  opacity: 1;
} */

:root {
  --toast-bg: #111827; /* gris oscuro */
  --toast-fg: #fff; /* texto */
  --toast-border: #374151; /* borde */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
}

/* Contenedor fijo arriba (centrado) */
#toast-root {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none; /* deja pasar clicks salvo en cada toast */
}

/* Toast base */
.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: min(92vw, 640px);
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--toast-bg);
  color: var(--toast-fg);
  border: 1px solid var(--toast-border);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(-12px);
  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

/* Línea de acento a la izquierda según tipo */
.toast::before {
  content: "";
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: var(--info);
  grid-column: 1 / 2;
}
.toast.success::before {
  background: var(--success);
}
.toast.error::before {
  background: var(--error);
}
.toast.warning::before {
  background: var(--warning);
}
.toast.info::before {
  background: var(--info);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.hiding {
  opacity: 0;
  filter: blur(1px);
}

.toast__msg {
  grid-column: 2 / 3;
  line-height: 1.25;
}

.toast__close {
  grid-column: 3 / 4;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: pointer;
}
.toast__close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}

/* Solo para la demo */
.demo {
  margin: 80px auto 0;
  max-width: 640px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.demo button {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
}

button {
  cursor: pointer;
}
