/* =========================================================
   styles.css — COMPLETO (WHITE THEME + ROJO NUX + RESPONSIVE)
   Incluye: base + header responsive (hamburguesa) + hero + sections + footer
   ========================================================= */

/* ---------- Variables ---------- */
:root{
  --nux-red: #B11226;       /* Ajusta aquí si tienes el rojo exacto */
  --nux-red-dark: #8E0E1D;

  --bg: #ffffff;
  --card: #ffffff;
  --stroke: rgba(0,0,0,.10);

  --text: #0f172a;
  --muted: #475569;
  --faint: rgba(15,23,42,.55);

  --shadow: 0 20px 40px rgba(0,0,0,.08);
  --radius: 18px;
  --max: 1120px;
}

/* ---------- Reset / Base ---------- */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  text-shadow: none;
}

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.98; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  color: #1f2937;
  font-weight: 800;
  line-height: 1;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:hover{ background: rgba(0,0,0,.03); }
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--nux-red);
  border-color: var(--nux-red);
  color: #ffffff;
}
.btn-primary:hover{
  background: var(--nux-red-dark);
  border-color: var(--nux-red-dark);
}

.btn-ghost{
  background: transparent;
  color: var(--nux-red);
  border-color: rgba(177,18,38,.45);
}
.btn-ghost:hover{
  background: rgba(177,18,38,.06);
  border-color: rgba(177,18,38,.65);
}

/* Helpers */
.btn-full{
  width:100%;
  justify-content:center;
}

/* ---------- Badge / KBD ---------- */
.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  font-size: 13px;
  color: var(--muted);
}

.badge .dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--nux-red);
  display:inline-block;
}

.kbd{
  padding: 4px 8px;
  border-radius: 10px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.03);
  color: #111827;
  font-weight: 900;
}

/* =========================================================
   HEADER / NAV (responsive)
   ========================================================= */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 14px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.brand-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title span {
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--muted);
  text-align: left;
  max-width: 260px;
}

/* Desktop nav */
.nav-links{
  display:flex;
  gap: 16px;
  align-items:center;
  justify-content:center;
  flex: 1;
}

.nav-links a{
  padding: 8px 10px;
  border-radius: 12px;
  color: #334155;
  font-weight: 800;
  transition: background .15s ease, color .15s ease;
}

.nav-links a:hover{
  background: rgba(0,0,0,.04);
  color: #111827;
}

/* Active state */
.nav-links a.is-active{
  background: rgba(177,18,38,.08);
  border: 1px solid rgba(177,18,38,.18);
  color: #111827;
}

.nav-cta{
  display:flex;
  gap: 10px;
  align-items:center;
}

/* Mobile toggle */
.nav-toggle{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  cursor:pointer;
}

.nav-toggle-lines{
  display:block;
  width: 18px;
  height: 2px;
  background: #1f2937;
  margin: 0 auto;
  position: relative;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: #1f2937;
}
.nav-toggle-lines::before{ top:-6px; }
.nav-toggle-lines::after{ top:6px; }

/* Mobile menu panel */
.mobile-menu{
  border-top: 1px solid var(--stroke);
  background: #ffffff;
}
.mobile-menu-inner{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0 18px;
}

.mobile-links{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.mobile-links a{
  padding: 12px 12px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 900;
}

.mobile-links a.is-active{
  border-color: rgba(177,18,38,.25);
  background: rgba(177,18,38,.07);
}

.mobile-links a:hover{
  background: rgba(0,0,0,.03);
}

.mobile-cta{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}

/* Prevent body scroll when menu open */
body.menu-open{ overflow:hidden; }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  padding: 38px 0 46px;
  background: #ffffff;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 22px;
  align-items: start;
}

.hero h1{
  margin: 14px 0 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.hero p{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-actions-full{ display:flex; }
.hero-actions-full .btn{ width:100%; }

/* Pills: más legibles SOLO dentro del pill-row */
.pill-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.pill-row .badge{
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  border-color: rgba(177,18,38,.18);
  background: rgba(255,255,255,.95);
}

/* Card */
.card{
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.event-title{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  font-weight: 950;
  color: #0f172a;
  font-size: 15px;
  letter-spacing: .2px;
}
.event-title .dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background: var(--nux-red);
  display:inline-block;
}

.meta-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.meta small{
  color: #6b7280;
  display:block;
  font-weight: 800;
}

.meta strong{
  display:block;
  margin-top: 4px;
  color: #0f172a;
  font-weight: 950;
}

.meta span{
  color: #475569;
  font-size: 13px;
}

/* =========================================================
   SECTIONS (programa / patrocinadores)
   ========================================================= */
.section{
  padding: 34px 0 46px;
  background: #ffffff;
}

.section-title{
  display:flex;
  flex-direction:column;
  gap: 6px;
  margin-bottom: 18px;
}

.section-title h2{
  margin: 0;
  font-size: 24px;
  letter-spacing: -.3px;
  color: #0f172a;
}

.section-title p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Grid de cajas tipo programa */
.feature-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature{
  border: 1px solid var(--stroke);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.feature h3{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 950;
  color: #0f172a;
  letter-spacing: -.1px;
}

.feature p{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* =========================================================
   Poster band
   ========================================================= */
.poster-band{
  width: 100%;
  height: 600px;
  background-image: url("congreso_nux_poster.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================================================
   Special UI blocks (sponsors page)
   ========================================================= */

/* “Botón” título de sección (glass blanco con acento rojo) */
.section-banner{
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(177, 18, 38, .28);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--nux-red);
  font-weight: 950;
  letter-spacing: .2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Banner “pitchy” del programa */
.promo-banner{
  grid-column: 1 / -1;
  border: 1px solid rgba(177,18,38,.18);
  background: rgba(255,255,255,.92);
}

.promo-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.promo-text h3{ margin: 0 0 6px; }
.promo-text p{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{
  border-top: 1px solid var(--stroke);
  padding: 20px 0;
  color: #475569;
  background: #ffffff;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a{
  color: #334155;
  font-weight: 800;
}
.footer a:hover{
  color: #111827;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .nav-links,
  .nav-cta{ display:none; }

  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  .feature-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px){
  .container{ width: calc(100% - 26px); }

  /* Logo ~90% sin estirar raro */
  .nav-inner{ gap: 10px; }
  .brand{
    flex: 1;
    min-width: 0;
  }
  .brand-logo{
    max-width: 90vw;
    width: auto;
    max-height: 46px;
  }
  .brand-title{ display:none; }

  .hero-grid{ grid-template-columns: 1fr; }

  .meta-grid{ grid-template-columns: 1fr 1fr; }

  .poster-band{ height: 380px; }

  .promo-inner{
    flex-direction: column;
    align-items: flex-start;
  }
  .promo-cta{ width: 100%; }
  .promo-cta .btn{
    width: 100%;
    justify-content:center;
  }

  .feature-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px){
  .meta-grid{ grid-template-columns: 1fr; }
  .mobile-cta{ flex-direction: column; }
  .mobile-cta .btn{ justify-content:center; }
}
/* =========================================================
   OPTION B — Header/Footer “anclados” (sin franja blanca)
   ========================================================= */

/* Header: glass más marcado + sombra leve (sin pseudo-elemento en flujo) */
.nav{
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(0,0,0,.12);
  box-shadow:
    0 10px 24px rgba(0,0,0,.06),
    0 1px 0 rgba(255,255,255,.75) inset;

  position: sticky; /* ya lo tienes, pero lo reafirmo */
  top: 0;
  z-index: 50;

  /* clave */
  position: sticky;
  overflow: visible;
}

/* Degradado SIN ocupar espacio: absolute */
.nav::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-10px;   /* cuelga por fuera del header */
  height:10px;
  pointer-events:none;
  background: linear-gradient(
    to bottom,
    rgba(15,23,42,.06),
    rgba(15,23,42,0)
  );
}

/* Index: como ahí el poster es el contraste, bajamos un poco el efecto
   sin tocar HTML: detectamos el poster inmediatamente después del header */
.nav + .poster-band{
  /* reduce la “neblina” debajo del header sobre la imagen */
  margin-top: -10px; /* compensa visualmente el after colgante */
}

/* Footer: como estaba, funciona bien */
.footer{
  background: rgba(15,23,42,.02);
  border-top: 1px solid rgba(0,0,0,.10);
  box-shadow:
    0 -10px 24px rgba(0,0,0,.04),
    0 1px 0 rgba(255,255,255,.70) inset;
}
/* Hora en rojo NUX dentro del título */
.time{
  color: var(--nux-red);
  font-weight: 950;
  margin-right: 6px;
}

/* Coffee Break + Almuerzo: fondo distintivo verdeazul suave */
.break-card{
  border-color: rgba(15, 118, 110, .18);
  background: rgba(20, 184, 166, .08); /* teal suave */
}

.break-card h3{
  margin-bottom: 8px;
}

.break-card p{
  color: var(--muted);
}
/* === Jerarquía clara en cards del programa === */

/* Título de charla: más grande que el cuerpo */
.slot-title{
  font-size: 17px;        /* antes heredaba ~16px */
  font-weight: 900;
  color: #0f172a;
  line-height: 1.18;
}

/* Texto descriptivo un poco más discreto */
.feature p{
  font-size: 15px;        /* baja sutil */
  line-height: 1.55;
  color: var(--muted);
}

/* Subtexto (workshops / enfoque) aún más secundario */
.slot-sub{
  font-size: 14.5px;
  color: #475569;
}
/* === Aire entre horario y título === */
.slot-time{
  margin-bottom: 10px; /* antes ~6px, ahora respira mejor */
}

/* Opcional: micro separación extra arriba del título */
.slot-title{
  padding-top: 2px;
}
/* ================================
   Sponsor Apple Glass Card
   ================================ */

.sponsor-card{
  padding: 0;
  overflow: hidden;
  background: rgba(232, 235, 238, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.sponsor-inner{
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: rgba(255,255,255,0.30);
  border-radius: 22px;
}

/* 🔑 CLAVE: evita que el ancho intrínseco del logo deforme el grid */
.sponsor-inner > *{
  min-width: 0;
}

.sponsor-media{
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  display: grid;
  place-items: center;
}

.sponsor-media img{
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 12px;
  display: block;
}

.sponsor-name{ margin: 0 0 6px; }
.sponsor-tagline{ margin: 0 0 12px; color: var(--muted); max-width: 70ch; }

@media (max-width: 860px){
  .sponsor-inner{ grid-template-columns: 1fr; }
  .sponsor-media{ max-width: 560px; }
}
/* ===============================
   Media Partners – proporción 16:9
================================ */

.media-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

/* Contenedor con ratio fijo */
.media-partner-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 12px;
  border-radius: 16px;
  background: rgba(232, 235, 238, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 160ms ease, background 160ms ease;
}

.media-partner-item:hover {
  transform: translateY(-1px);
  background: rgba(232, 235, 238, 0.72);
}

/* Imagen respeta proporción original */
.media-partner-item img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  display: block;
  opacity: 0.95;
}

/* Responsive */
@media (max-width: 900px) {
  .media-partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .media-partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* ==========================
     Avales institucionales 
   ==========================*/
.endorse-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
  margin-top:12px;
}

/* Si solo hay un aval, ocupa todo el ancho */
.endorse-grid:has(.endorse-item:only-child){
  grid-template-columns: 1fr;
}

.endorse-item{
  aspect-ratio: 1 / 1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  border-radius:16px;
  background: rgba(232, 235, 238, 0.55);
  border: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(10px) saturate(120%);
  transition: transform .15s ease, background .15s ease;
}

.endorse-item:hover{
  transform: translateY(-2px);
  background: rgba(232, 235, 238, 0.75);
}

.endorse-item img{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

/* Mobile */
@media (max-width:520px){
  .endorse-grid{
    grid-template-columns: 1fr;
  }

  .endorse-item{
    aspect-ratio: 1 / 1;
  }
}
/* ==========================
     Avalado por (hero-left list)
   ==========================*/
.endorse-block{
  margin-top: 18px;
}

.endorse-block-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  margin-bottom: 10px;
}

.endorse-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Fila (logo cuadrado a la izquierda + título a la derecha) */
.endorse-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border-radius:16px;
  background: rgba(232, 235, 238, 0.55);
  border: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(10px) saturate(120%);
  transition: transform .15s ease, background .15s ease;
  text-decoration:none;
  color: inherit;
}

.endorse-row:hover{
  transform: translateY(-2px);
  background: rgba(232, 235, 238, 0.75);
}

.endorse-logo{
  width:56px;            /* controla tamaño del cuadro */
  aspect-ratio: 1 / 1;   /* SIEMPRE cuadrado */
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}

.endorse-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.endorse-text strong{
  font-size: 1rem;
  line-height: 1.1;
}

/* Mobile */
@media (max-width:520px){
  .endorse-logo{ width:52px; }
}
/* ==========================
     Avalado por (card horizontal)
   ==========================*/
.endorse-card{
  padding: 0;
  overflow: hidden;
  background: rgba(232, 235, 238, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.06);
}

.endorse-inner{
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.endorse-media{
  flex: 0 0 auto;
  width: 88px;          /* ajusta tamaño del cuadro */
  aspect-ratio: 1 / 1;  /* logo cuadrado 1:1 */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.06);
}

.endorse-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.endorse-copy{
  min-width: 0;
}

.endorse-name{
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

@media (max-width:520px){
  .endorse-inner{ padding: 14px; }
  .endorse-media{ width: 76px; }
  .endorse-name{ font-size: 1rem; }
}
/* === Ecosystem band: Aliados (izq) + Avalado por (der) === */
.ecosystem-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
}

@media (min-width: 860px){
  .ecosystem-grid{
    grid-template-columns: 1fr 1fr; /* izquierda aliados, derecha avalado */
    align-items: stretch;
    gap:18px;
  }
}

.ecosystem-grid > *{
  min-width: 0;
}

.ecosystem-item{
  height:100%;
}

/* Kicker arriba del título dentro de cada card */
.ecosystem-kicker{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

/* Igualar altura visual de logos: sponsor (16:9) vs aval (1:1) */
.ecosystem-media{
  height: 92px;                 /* <- ajusta aquí si quieres más/menos alto */
  display:flex;
  align-items:center;
  justify-content:center;
}

.ecosystem-media img{
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display:block;
}

/* Por si tus estilos base traen max-height/width distintos */
.sponsor-media.ecosystem-media img,
.endorse-media.ecosystem-media img{
  max-height: 100%;
}
/* ==========================
   Sponsor grid (igual exposición)
   ========================== */
.sponsor-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 16px;
  margin-top: 18px;
  align-items: stretch;
  padding-bottom:16px;
}
.sponsor-grid > .feature{
  height: 100%;
}

@media (max-width: 860px){
  .sponsor-grid{
    grid-template-columns: 1fr;
  }
}
.sponsor-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 16px !important;
  row-gap: 16px !important;
}
