/* ===================================================
   Config 2026 — estilos de la invitación
   Estética Friends of Figma: Archivo + azul/negro/amarillo
   (el reset base vive en ../comons/css/eventos.css)
   =================================================== */

:root {
  /* Paleta */
  --azul:        #4B3BFF;
  --negro:       #0A0A0A;
  --blanco:      #FFFFFF;
  --amarillo:    #FFD028;
  --verde:       #0ACF83;
  --lima:        #E8FF8F;
  --cyan:        #1ABCFE;
  --gris-chip:   #F1F1F1;
  --gris-linea:  #E2E2E2;
  --gris-medio:  #8A8A8A;
  --gris-suave:  #5C5C5C;
  --texto:       #1F1F1F;

  --fuente: 'Archivo', system-ui, -apple-system, sans-serif;

  /* Tamaño de fuente de los párrafos */
  --p-size: 20px;
}

body {
  margin: 0;
  background: #f0eee6;
  color: var(--negro);
  font-family: var(--fuente);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--azul); text-decoration: none; }

/* Ancho general (patrón .wrapper) */
.wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Tipografía base ── */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }

.seccion { padding-top: 96px; }
.seccion__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.seccion__titulo { font-size: 44px; }
.seccion__sub { font-size: 17px; color: var(--gris-medio); font-weight: 400; letter-spacing: 0; }

/* ── Chips ── */
.chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border-radius: 17px; font-size: 15px; font-weight: 600; white-space: nowrap;
}
.chip--dark  { background: var(--negro);  color: var(--blanco); }
.chip--light { background: var(--gris-chip); color: var(--negro); height: 32px; border-radius: 16px; font-size: 14px; font-weight: 500; }
.chip--amber { background: var(--amarillo); color: var(--negro); }
.chip--date  { background: var(--blanco); color: var(--negro); border-radius: 0; letter-spacing: 0.02em; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--fuente); font-weight: 600; cursor: pointer; border: 0;
  transition: background .2s, color .2s;
}
.btn--pill  { height: 32px; padding: 0 16px; border-radius: 16px; font-size: 14px; background: var(--negro); color: var(--blanco); }
.btn--pill:hover { background: var(--azul); color: var(--blanco); }
.btn--block { height: 60px; border-radius: 8px; font-size: 19px; background: var(--negro); color: var(--blanco); width: 100%; }
.btn--block:hover { background: var(--azul); }
.btn--amber { height: 68px; padding: 0 40px; border-radius: 8px; font-size: 21px; font-weight: 700; background: var(--amarillo); color: var(--negro); }
.btn--amber:hover { background: var(--blanco); }

/* ===================================================
   HEADER
   =================================================== */
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 36px; }
.header__logo { height: 26px; width: auto; display: block; }
.header__acciones { display: flex; align-items: center; gap: 10px; }

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative; margin-top: 96px; border-radius: 16px; overflow: hidden;
  background: var(--azul); padding: 56px; min-height: 460px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.13) 1px, transparent 1px);
  background-size: 74px 74px;
}
/* Figuras flotantes decorativas */
.hero__figura {
  position: absolute; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(0,0,0,0.16); animation: fofFloat 7s ease-in-out infinite;
}
.hero__figura img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.hero__figura--1 { top: 138px; right: 139px; width: 90px; height: 90px; background: var(--verde);  transform: rotate(-11deg); --rest: rotate(-11deg); --lift: rotate(-11deg) translateY(-12px); }
.hero__figura--2 { top: 340px; right: 116px; width: 80px; height: 80px; background: var(--lima);  transform: rotate(8deg);  --rest: rotate(8deg);  --lift: rotate(8deg) translateY(-12px);  animation-duration: 7.5s; animation-delay: .6s; }
.hero__figura--3 { top: 224px; right: 47px;  width: 90px; height: 90px; background: var(--cyan);  transform: rotate(6deg);  --rest: rotate(6deg);  --lift: rotate(6deg) translateY(-12px);  animation-duration: 6.8s; animation-delay: 1.2s; }
@keyframes fofFloat { 0%,100% { transform: var(--rest); } 50% { transform: var(--lift); } }

.hero__top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.hero__pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hero__titulo {
  position: relative; max-width: 74%;
  font-size: clamp(48px, 8.8vw, 104px); line-height: 0.92; letter-spacing: -0.04em;
  color: var(--blanco); text-wrap: balance;
}

/* ===================================================
   INTRO + DETALLES
   =================================================== */
/* Sobre el evento — columna derecha (lista de detalles + botón) */
.detalles-col { display: flex; flex-direction: column; gap: 24px; }
/* La bajada del titular en su propia línea (secciones de 2 columnas) */
#detallesCTN .seccion__sub,
#aboutCTN .seccion__sub { display: block; width: 100%; }

/* Lista de datos (Cuándo / Dónde / Entrada, Dirección…) */
.datos { display: flex; flex-direction: column; border-top: 2px solid var(--negro); }
.datos__fila { display: flex; flex-direction: column; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--gris-linea); }
.datos__label { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris-medio); font-weight: 600; }
.datos__valor { font-size: 24px; font-weight: 600; }
.datos__nota  { font-size: 17px; color: var(--gris-suave); }
.datos__enlace { display: inline-block; margin-top: 6px; color: var(--color-principal, var(--azul)); font-size: 16px; font-weight: 600; }
.datos__enlace:hover { color: var(--negro); }

/* ===================================================
   AGENDA
   =================================================== */
.agenda__lista { display: flex; flex-direction: column; border-top: 2px solid var(--negro); }
.agenda__item { display: grid; grid-template-columns: 140px 1fr 200px; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--gris-linea); align-items: baseline; }
.agenda__hora { font-size: 22px; font-weight: 600; color: var(--color-principal, var(--azul)); }
.agenda__cuerpo { display: flex; flex-direction: column; gap: 6px; }
.agenda__titulo { font-size: 24px; font-weight: 600; }
.agenda__desc { font-size: 18px; color: var(--gris-suave); text-wrap: pretty; }
.agenda__dur { font-size: 16px; color: var(--gris-medio); }

/* ===================================================
   SPEAKERS
   =================================================== */
.speakers__grid, .sponsors__grid { cursor: grab; }
.speakers__grid.is-dragging, .sponsors__grid.is-dragging { cursor: grabbing; user-select: none; }
.speakers__grid { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: #E6E4D9 transparent; }
.speakers__grid::-webkit-scrollbar { height: 8px; }
.speakers__grid::-webkit-scrollbar-track { background: transparent; }
.speakers__grid::-webkit-scrollbar-thumb { background: #E6E4D9; border-radius: 999px; }
.speakers__grid::-webkit-scrollbar-thumb:hover { background: #E2DED1; }
.speaker { flex: 0 0 280px; display: flex; flex-direction: column; gap: 18px; padding: 28px; border: 1px solid var(--gris-linea); border-radius: 12px; }
.speaker__foto { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; display: block; background: var(--gris-chip); }
.speaker__nombre { font-size: 22px; font-weight: 600; }
.speaker__rol { font-size: 17px; color: var(--gris-suave); }
.speaker__frase { font-size: 17px; line-height: 1.45; color: var(--texto); text-wrap: pretty; }

/* ===================================================
   ABOUT / VENUE (2 columnas)
   =================================================== */
.dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.dos-col--ancho { grid-template-columns: 1.4fr 1fr; }
.dos-col--faq   { grid-template-columns: 0.8fr 1.2fr; }
/* About y Cómo llegar: la imagen ocupa el 40% (mismo tamaño en ambas) */
#aboutCTN, #comoLlegarCTN { grid-template-columns: 1fr 40%; }
.bloque-texto { display: flex; flex-direction: column; gap: 22px; }
.bloque-texto p { font-size: var(--p-size); line-height: 1.5; color: var(--texto); text-wrap: pretty; }

.foto-media { width: 100%; height: 340px; object-fit: cover; border-radius: 12px; display: block; background: var(--gris-chip); }
.foto-media--alta { height: 340px; }
.foto-caption { font-size: 15px; color: var(--gris-medio); margin-top: 16px; display: block; }

/* ===================================================
   SPONSORS
   =================================================== */
.sponsors__grid { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: #E6E4D9 transparent; }
.sponsors__grid::-webkit-scrollbar { height: 8px; }
.sponsors__grid::-webkit-scrollbar-track { background: transparent; }
.sponsors__grid::-webkit-scrollbar-thumb { background: #E6E4D9; border-radius: 999px; }
.sponsors__grid::-webkit-scrollbar-thumb:hover { background: #E2DED1; }
.sponsor { flex: 0 0 170px; width: 170px; min-height: 120px; border: 1px solid var(--gris-linea); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.sponsor__logo { height: 110px; width: 110px; max-width: 110px; border-radius: 110px; object-fit: cover; display: block; filter: grayscale(1); }
.sponsor__nombre { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--negro); }
.sponsor__nivel { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris-medio); font-weight: 600; }

/* ===================================================
   FAQ
   =================================================== */
.faq__lista { display: flex; flex-direction: column; border-top: 2px solid var(--negro); }
.faq__item { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--gris-linea); }
.faq__preg { font-size: 22px; font-weight: 600; }
.faq__resp { font-size: 19px; line-height: 1.5; color: var(--gris-suave); text-wrap: pretty; }

/* ===================================================
   RSVP — sección oscura + nuestro formulario
   =================================================== */
.rsvp {
  position: relative; margin-top: 96px; border-radius: 16px; overflow: hidden;
  background: var(--negro); padding: 72px 56px;
}
.rsvp__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 74px 74px;
}
.rsvp__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.rsvp__titulo { font-size: 56px; line-height: 0.98; letter-spacing: -0.035em; color: var(--blanco); text-wrap: balance; margin-bottom: 14px; }
.rsvp__intro { font-size: 20px; line-height: 1.5; color: #B4B4B4; }
.rsvp__invitado { font-size: 22px; font-weight: 600; color: var(--amarillo); margin: 0 0 10px; }
.rsvp__pases { font-size: 16px; color: #B4B4B4; margin-top: 4px; }

/* Tarjeta del formulario */
.rsvp__card { background: var(--blanco); border-radius: 12px; padding: 28px; }
.grph-form__grupo { display: flex; flex-direction: column; margin-bottom: 16px; }
.rsvp__label { font-size: 14px; font-weight: 600; color: var(--negro); margin-bottom: 8px; }
.rsvp__input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--gris-linea);
  border-radius: 8px; font-family: var(--fuente); font-size: 16px; color: var(--negro); background: #FAFAFA;
}
.rsvp__input:focus { outline: 2px solid var(--azul); outline-offset: 1px; border-color: var(--azul); }

.rsvp__opciones { border: 0; padding: 0; margin: 0 0 18px; }
.rsvp__opcion {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 6px 0;
  border: 1px solid var(--gris-linea); border-radius: 10px; cursor: pointer;
  font-size: 17px; font-weight: 500; color: var(--negro); transition: border-color .2s, background .2s;
}
.rsvp__opcion:has(input:checked) { border-color: var(--azul); background: #F4F3FF; color: var(--azul); }
.rsvp__opcion input[type="radio"] {
  -webkit-appearance: none; appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 0;
  border: 2px solid var(--negro); border-radius: 6px; background: var(--blanco); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.rsvp__opcion input[type="radio"]:checked { background: var(--azul); border-color: var(--azul); }

.rsvp__btn { height: 60px; border-radius: 8px; background: var(--amarillo); color: var(--negro); font-size: 19px; font-weight: 700; width: 100%; margin-top: 8px; }
.rsvp__btn:hover { filter: brightness(0.96); }

.rsvp__respuesta { text-align: center; color: var(--negro); font-family: var(--fuente); font-size: var(--p-size); }
.rsvp__respuesta .parrafo_resaltado { display: block; font-weight: 700; color: var(--color-principal, var(--azul)); margin-bottom: 12px; font-size: 20px; }
.rsvp__respuesta p { font-size: 17px; margin: 0 0 12px; }

.grph-form__error { color: #C0392B; font-size: 14px; margin-top: 6px; }
.form-gracias { margin-top: 12px; font-size: 15px; color: var(--verde); font-weight: 600; }

/* Hueco del QR (corporativo) — oculto hasta que el sistema lo revela al confirmar "sí" */
.rsvp__qr { margin-top: 16px; text-align: center; }
.rsvp__qr-img { width: 200px; height: 200px; display: block; margin: 0 auto 12px; border-radius: 8px; }
.rsvp__qr-nota { font-size: 14px; color: var(--gris-suave); }

/* ===================================================
   FOOTER
   =================================================== */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 96px 0 64px; flex-wrap: wrap; }
.footer__logo { height: 22px; width: auto; display: block; opacity: 0.75; }
.footer__texto { font-size: 15px; color: var(--gris-medio); }

/* ===================================================
   RESPONSIVE (tablet + mobile) — diseño de 1 columna
   Tablet: 768–1024px  ·  Mobile: ≤767px
   =================================================== */
@media (max-width: 1024px) {
  .wrapper { padding: 0 20px; }
  .seccion { padding-top: 64px; }
  .seccion__titulo { font-size: 34px; }

  .hero { margin-top: 64px; padding: 56px; min-height: 440px; gap: 40px; }
  .hero__titulo { max-width: 100%; font-size: clamp(40px, 12vw, 64px); }
  .hero__top { flex-direction: column; gap: 16px; }

  /* Figuras del hero en tablet (en mobile se ocultan más abajo) */
  .hero__figura--1 { top: 117px; right: 85px; width: 90px; height: 90px; }
  .hero__figura--2 { top: 340px; right: 40px; }

  .dos-col, .dos-col--ancho, .dos-col--faq, .rsvp__inner,
  #detallesCTN, #aboutCTN, #comoLlegarCTN { grid-template-columns: 1fr; gap: 32px; }
  .speaker { flex-basis: calc(40% - 19px); }   /* tablet: 2,5 speakers */

  .bloque-texto p { font-size: 18px; }
  .datos__valor { font-size: 21px; }

  .agenda__item { grid-template-columns: 90px 1fr; }
  .agenda__dur { display: none; }
  .agenda__titulo { font-size: 21px; }

  .rsvp { margin-top: 64px; padding: 40px 24px; }
  .rsvp__titulo { font-size: 36px; }

  .footer { padding: 64px 0 48px; }
}

/* ===================================================
   RESPONSIVE (mobile) — ≤767px
   =================================================== */
@media (max-width: 767px) {
  .hero { padding: 32px; min-height: 0; }
  .hero__figura { display: none; }
  .speaker { flex-basis: calc(66.66% - 16px); }   /* mobile: 1,5 speakers */
}
