/* Nomad Genetics — sitio estático (1 página)
   Paleta oscura limpia con acentos suaves.
   Tip: Cambia el acento en :root --accent si quieres otro tono.
*/
:root{
  /* Topbar más alta para que logo y menú se vean más grandes */
  --topbar-h: 104px;
  --bg: #1B4FA3;
  --bg2:#2A6AC8;
  --card:rgba(255,255,255,.10);
  --text:#F2F7FF;
  --muted:#D2DDF2;
  --line: rgba(242,247,255,.22);
  --shadow: 0 18px 70px rgba(0,0,0,.22);
  --accent:#9CC3FF;
  --accent2:#6CB2FF;
  --radius: 18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
              radial-gradient(1200px 720px at 18% -12%, rgba(156,195,255,.55), transparent 62%),
              radial-gradient(980px 560px at 88% 2%, rgba(108,178,255,.40), transparent 58%),
              radial-gradient(900px 700px at 50% 120%, rgba(156,195,255,.18), transparent 60%),
              linear-gradient(180deg, var(--bg), #15458F 55%, #0E2F64);

}

a{color:inherit; text-decoration:none}
a:hover{opacity:.9}
.container{width:min(1320px, 94vw); margin-inline:auto}
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0}
.skip{position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden}
.skip:focus{left:16px; top:16px; width:auto; height:auto; padding:10px 12px; background:#fff; color:#000; border-radius:10px; z-index:9999}

.topbar{
  position:fixed; top:0; left:0; right:0;
  height: var(--topbar-h);
  z-index:50;
  background: rgba(27,79,163,.45);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  min-height: var(--topbar-h);
  padding-block: 14px;
}

.brand{display:flex; align-items:center; gap:12px}
.brand__mark{
  width:38px; height:38px; border-radius:12px;
  background: radial-gradient(circle at 30% 20%, var(--accent), transparent 55%),
              radial-gradient(circle at 70% 70%, var(--accent2), transparent 52%),
              rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.brand__logo{
  width:54px; height:54px; border-radius:16px;
  object-fit:contain;
  background: rgba(255,255,255,.08);
  padding:6px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 12px 34px rgba(0,0,0,.25);
}

.brand__flag{
  width: 34px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.brand__text{display:flex; flex-direction:column; line-height:1}
.brand__name{font-weight:800; letter-spacing:.2px}
.brand__sub{font-size:13px; color:var(--muted); margin-top:2px}

.nav{display:flex; align-items:center}
.nav__menu{display:flex; gap:22px; align-items:center}
.nav__menu a{color:var(--muted); font-weight:700; font-size:17px}
.nav__menu a:hover{color:var(--text)}
.nav__social{display:flex; gap:10px; align-items:center; margin-left:6px}
.social{
  width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:14px;
  background: rgba(255,255,255,.10);
  border:1px solid var(--line);
  color: var(--text);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.social svg{width:18px; height:18px; fill: currentColor; opacity:.95}
.social:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 14px 28px rgba(0,0,0,.25);
}
.nav__toggle{display:none; border:1px solid var(--line); background:rgba(255,255,255,.10); color:var(--text); border-radius:12px; padding:10px 12px; cursor:pointer}
.hamburger{display:block; width:18px; height:2px; background:var(--text); position:relative}
.hamburger::before,.hamburger::after{content:""; position:absolute; left:0; width:18px; height:2px; background:var(--text)}
.hamburger::before{top:-6px}
.hamburger::after{top:6px}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px; border-radius:14px;
  background: linear-gradient(135deg, rgba(139,182,255,.95), rgba(90,168,255,.92));
  color:#08101F; font-weight:900; border:0;
  font-size: 15px;
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
}
.btn--ghost{
  background: rgba(255,255,255,.10);
  color:var(--text);
  border:1px solid var(--line);
  box-shadow:none;
}
.btn--sm{padding:12px 16px; border-radius:14px; font-size:15px}

/* Ajuste fino: el botón en el header debe verse consistente con el texto del menú */
.topbar .nav__menu .btn{font-weight:900}

@media (max-width: 900px){
  /* En móvil, el logo y topbar se reducen un poco para no ocupar tanta pantalla */
  :root{ --topbar-h: 92px; }
  .brand__logo{ width:46px; height:46px; border-radius:14px; padding:5px; }
  .nav__menu a{ font-size:15px; }
  .btn--sm{ padding:11px 14px; font-size:15px; }
}

.hero{
  position:relative;
  height: 100vh;
  min-height: 100vh;
  margin-top: calc(-1 * var(--topbar-h));
  overflow:hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(27,79,163,.35), rgba(14,47,100,.55));
}
.hero__video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; /* full screen */
  object-position: 50% 50%;
  transform:none;
  filter:none;
}
.hero__overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(9,18,40,.12), rgba(9,18,40,.68) 55%, rgba(9,18,40,.85));
}
.hero__content{
  position:relative;
  padding: 0 0 28px;
  display:flex;
  align-items:flex-end;
}
.hero__panel{
  max-width: 1120px;
  padding: 22px 22px;
  border-radius: calc(var(--radius) + 12px);
  background: rgba(12,22,48,.40);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 28px 90px rgba(0,0,0,.40);
}
.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px; border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color: var(--muted);
  font-weight:700; font-size:13px;
}
.hero h1{
  margin:12px 0 10px;
  font-size: clamp(28px, 4.4vw, 50px);
  line-height:1.05;
  letter-spacing:-.8px;
}
.accent{color: var(--accent)}
.lead{
  max-width: 80ch;
  font-size: 18px;
  line-height:1.55;
  color: rgba(234,240,255,.88);
  margin:0 0 18px;
}
.hero__cta{display:flex; gap:12px; flex-wrap:wrap; margin-top: 14px}

.stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
  
  padding:0;
}
.stat{
  margin:0;
  padding:14px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
}
.stat dt{font-size:12px; color:var(--muted); font-weight:800; letter-spacing:.3px; text-transform:uppercase}
.stat dd{margin:6px 0 0; font-weight:900}

.section{padding: 64px 0}
.section--alt{
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 62%);
  border-block: 1px solid var(--line);
}
.section__head{display:flex; flex-direction:column; gap:8px; margin-bottom: 20px}
.section__head h2{margin:0; font-size: clamp(22px, 3vw, 34px); letter-spacing:-.2px}
.section__head p{margin:0; color:var(--muted); max-width: 95ch; line-height:1.6}

/* Zigzag videos (videos por sección) */
.zigzag{
  display: grid;
  /* Columna de contenido flexible + columna de video con ancho consistente */
  grid-template-columns: 1fr minmax(360px, 520px);
  gap: 20px;
  /* clave: que ambos lados compartan la misma altura de fila */
  align-items: stretch;
}
.zigzag--reverse{
  /* Cuando el video va a la izquierda */
  grid-template-columns: minmax(360px, 520px) 1fr;
}

/* Para secciones donde NO queremos el video a lo alto (ej: "Pruebas y servicios") */
.zigzag--stack{
  grid-template-columns: 1fr;
  align-items: start;
}
.zigzag--stack .zigzag__media{
  align-items: start;
}
.zigzag--stack .sectionVideo{
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  max-height: 420px;
}
.zigzag__content{min-width: 0}
.zigzag__media{
  min-width: 0;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  align-self: stretch;
}
.sectionVideo{
  width: 100%;
  /* que el video ocupe toda la altura del bloque (simetría con el contenido) */
  height: 100%;
  min-height: 340px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
  background: rgba(0,0,0,.25);
}
@media (max-width: 1100px){
  .zigzag{grid-template-columns: 1fr minmax(320px, 460px)}
  .zigzag--reverse{grid-template-columns: minmax(320px, 460px) 1fr}
  .zigzag--stack{grid-template-columns: 1fr}
  .zigzag--stack .sectionVideo{max-height: 360px}
}
@media (max-width: 900px){
  .zigzag{grid-template-columns: 1fr}
  /* en móvil: vuelve a 16:9 para evitar alturas enormes */
  .sectionVideo{height:auto; min-height: 0; aspect-ratio: 16 / 9}
}

.grid{display:grid; gap:14px}
.grid--3{grid-template-columns: repeat(3, minmax(0,1fr))}
.grid--2{grid-template-columns: repeat(2, minmax(0,1fr))}

@media (max-width: 1100px){
  .grid--3{grid-template-columns: repeat(2, minmax(0,1fr))}
}
@media (max-width: 650px){
  .grid--3{grid-template-columns: 1fr}
  .grid--2{grid-template-columns: 1fr}
}

.card{
  background: rgba(255,255,255,.10);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
}
.card h3{margin:0 0 8px}
.card p{margin:0; color:var(--muted); line-height:1.6}

.card--feature{padding: 20px 20px}
.list{margin: 12px 0 0; padding-left: 18px; color: rgba(234,240,255,.86)}
.list li{margin: 6px 0}

.ctaBand{
  margin-top: 18px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, rgba(139,182,255,.22), rgba(90,168,255,.16));
  border: 1px solid rgba(255,255,255,.14);
  padding: 18px 18px;
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.ctaBand h3{margin:0 0 6px}
.ctaBand p{margin:0; color:rgba(234,240,255,.84); max-width: 70ch}

.steps{list-style:none; padding:0; margin:0; display:grid; gap:12px}
.step{
  display:flex; gap:12px; align-items:flex-start;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  padding: 16px 16px;
}
.step__num{
  width:34px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  background: rgba(139,182,255,.18);
  border: 1px solid rgba(139,182,255,.22);
  font-weight:900;
}
.step__body h3{margin:0 0 6px}
.step__body p{margin:0; color:var(--muted); line-height:1.6}

.note{
  margin-top: 16px;
  padding: 14px 14px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,.22);
  color: rgba(234,240,255,.86);
  background: rgba(255,255,255,.07);
}

.person .avatar{
  width:54px; height:54px; border-radius: 18px;
  background: radial-gradient(circle at 30% 20%, rgba(139,182,255,.75), transparent 55%),
              radial-gradient(circle at 70% 70%, rgba(90,168,255,.60), transparent 52%),
              rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  margin-bottom: 10px;
}
.muted{color: var(--muted)}
.small{font-size: 13px}

.quotes{
  margin-top: 16px;
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
  padding: 18px 18px;
  position:relative;
}
.quote{display:none; margin:0}
.quote.is-active{display:block}
.quote blockquote{
  margin:0;
  font-size: 18px;
  line-height:1.6;
}
.quote figcaption{margin-top: 10px; color: var(--muted); font-weight:800}
.quote__controls{position:absolute; right:14px; top:14px; display:flex; gap:8px}
.iconBtn{
  width:36px; height:36px; border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.10);
  color:var(--text);
  cursor:pointer;
}

.contact{
  display:grid;
  grid-template-columns: 1.3fr .9fr;
  gap:14px;
  align-items:start;
}
.form{display:grid; gap:12px}
label{display:grid; gap:6px; color: rgba(234,240,255,.92); font-weight:800; font-size:14px}
input, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: var(--text);
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(139,182,255,.45); box-shadow: 0 0 0 4px rgba(139,182,255,.15)}
.kv{display:grid; gap:10px; margin: 12px 0 14px}
.kv__k{font-size:12px; color:var(--muted); font-weight:900; text-transform:uppercase; letter-spacing:.4px}
.kv__v a{color: rgba(234,240,255,.92)}

.footer{
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  padding: 28px 0;
}
.footer__brandRow{display:flex; align-items:center; gap:12px}
.footer__logo{width:40px; height:40px; border-radius:14px; object-fit:contain; background: rgba(255,255,255,.08); padding:6px; border:1px solid rgba(255,255,255,.10)}
.footer__inner{display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap}
.footer__brand{font-weight:1000; letter-spacing:.3px}
.footer__links{display:flex; gap:14px; flex-wrap:wrap; color:var(--muted); font-weight:700; font-size:14px}

.wa{
  position:fixed; right:16px; bottom:12px; z-index:80;
  width:72px; height:72px; border-radius: 22px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(139,182,255,.95), rgba(90,168,255,.92));
  color:#08101F;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
}
.wa span{ font-size:24px; line-height:1; }

/* Botón flotante Florence (chat): MÁS GRANDE, como tu screenshot, con contorno AZUL */
.wa--florence{
  width: 148px;
  height: 148px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(156,195,255,.22);
  border: 10px solid rgba(108,178,255,.88); /* contorno azul */
  transform-origin: 100% 100%;
  will-change: transform, box-shadow;
  animation: florenceFabPulseBlue 2.2s ease-out infinite;
}
.wa--florence .wa__icon{
  width: 112px;
  height: 112px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 30% 20%, rgba(156,195,255,.22), rgba(156,195,255,0) 58%),
    #081733;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 18px 48px rgba(0,0,0,.40);
}
.wa--florence .wa__img{
  width: 92px;
  height: 92px;
  border-radius: 22px;
  object-fit: cover;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

@keyframes florenceFabPulseBlue{
  0%{
    transform: translateZ(0) scale(1);
    box-shadow: 0 18px 50px rgba(0,0,0,.35), 0 0 0 0 rgba(108,178,255,.42);
  }
  60%{
    transform: translateZ(0) scale(1.06);
    box-shadow: 0 18px 50px rgba(0,0,0,.35), 0 0 0 38px rgba(108,178,255,0);
  }
  100%{
    transform: translateZ(0) scale(1);
    box-shadow: 0 18px 50px rgba(0,0,0,.35), 0 0 0 0 rgba(108,178,255,0);
  }
}

@media (max-width: 520px){
  .wa--florence{ width: 128px; height: 128px; border-width: 9px; }
  .wa--florence .wa__icon{ width: 96px; height: 96px; }
  .wa--florence .wa__img{ width: 78px; height: 78px; }
}
@media (prefers-reduced-motion: reduce){
  .wa--florence{ animation: none; }
}


@media (max-width: 900px){
  .grid--3{grid-template-columns: 1fr}
  .grid--2{grid-template-columns: 1fr}
  .stats{grid-template-columns: 1fr}
  .contact{grid-template-columns: 1fr}
  .hero__content{padding: 70px 0 46px}
  .nav__toggle{display:inline-flex}
  .nav__menu{
    position:absolute;
    right: 4vw;
    top: 70px;
    width: min(360px, 92vw);
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(8,16,40,.86);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: var(--shadow);
  }
  .nav__menu a{padding:10px 12px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10)}
  .nav__menu.is-open{display:flex}
}


/* Brand & Hero updates (v3) */

/* Logo del header más grande */
.brand{gap:12px}
.brand__logo--full{
  width:auto;
  height: clamp(64px, 6vw, 96px); /* logo grande y legible */
  border-radius:0;
  background:transparent;
  padding:0;
  border:none;
  box-shadow:none;
  object-fit:contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.28));
}
@media (min-width: 900px){
  .brand__logo--full{height:92px}
  :root{--topbar-h: 124px}
}

.hero{
  position:relative;
  height: 100vh;
  min-height: 100vh;
  margin-top: calc(-1 * var(--topbar-h));
  overflow:hidden;
  border-bottom: 1px solid var(--line);
  background:#000;
}
@supports not (height: 100svh){
  .hero{
  position:relative;
  height: 100vh;
  min-height: 100vh;
  margin-top: calc(-1 * var(--topbar-h));
  overflow:hidden;
  border-bottom: 1px solid var(--line);
  background:#000;
}
}
.hero__video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; /* full screen */
  object-position: 50% 50%;
  transform:none;
  filter:none;
}
.hero__overlay{display:none !important}
.hero__content{display:none !important}

/* Intro section (content below video) */
.intro{padding: 28px 0 18px}
.intro__panel{
  background: rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 26px 70px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}
.intro h1{margin: 10px 0 10px; font-size: clamp(32px, 4vw, 56px); line-height:1.05}
.intro .lead{max-width: 70ch}
.intro .hero__cta{margin-top: 14px}
.kpis{margin-top: 16px; display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px}
.kpi{
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 12px 14px;
}
.kpi__label{font-size:11px; letter-spacing:.9px; color: var(--muted); margin:0 0 4px}
.kpi__value{font-weight:750; margin:0}
@media (max-width: 820px){
  .kpis{grid-template-columns:1fr; gap:10px}
  .intro{padding-top:18px}
}

/* Domicilio subsection */
.subsection{margin-top: 26px}
.subhead h3{margin: 0 0 6px}
.subhead p{margin:0 0 14px; color: var(--muted)}
.domicilio{display:grid; grid-template-columns: 1.05fr .95fr; gap:14px}
.domicilio__info{padding: 16px}
.domicilio__cta{display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px}
.domicilio__partners{padding: 16px}
.partners{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  align-items:center;
}
.partner{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 58px;
}
.partner img{max-width: 100%; max-height: 34px; object-fit: contain}
.hint{margin:10px 0 0; font-size: 12px; color: var(--muted)}
@media (max-width: 920px){
  .domicilio{grid-template-columns: 1fr}
  .partners{grid-template-columns: repeat(2, minmax(0,1fr))}
}

.footer__logo--full{
  width:auto;
  height:56px;
  border-radius:0;
  background:transparent;
  padding:0;
  border:none;
  object-fit:contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.25));
}
@media (min-width: 900px){
  .footer__logo--full{height:54px}
}
.footer__brandRow{gap:12px}


/* =========================
   Helix / ADN (logos aliados)
   ========================= */
.helix{
  margin-top: 12px;
  position: relative;
  height: 460px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.06));
}
.helix::before{
  content:"";
  position:absolute;
  inset:-40% -20%;
  background:
    radial-gradient(circle at 30% 30%, rgba(135,206,255,.20), transparent 55%),
    radial-gradient(circle at 75% 65%, rgba(90,255,190,.14), transparent 58%);
  transform: rotate(12deg);
  pointer-events:none;
}

/* Fallback (si JS no carga): muestra tarjetas en grid */
.helix__viewport{
  position:relative;
  width:100%;
  height:100%;
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  align-items:center;
  justify-content:center;
  padding: 14px;
}
.helix__item{
  position:relative;
  left:auto;
  top:auto;
  width: 260px;
  height: 360px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(10,14,26,.55);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  transform: none;
  will-change: transform, opacity, filter;
}
.helix__item img{
  max-width: 240px;
  max-height: 340px;
  width:auto;
  height:auto;
  opacity:.98;
  filter: saturate(1.05) contrast(1.05);
}

/* Estado animado (JS agrega .is-animated) */
.helix.is-animated .helix__viewport{
  display:block;
  padding: 0;
}
.helix.is-animated .helix__item{
  position:absolute;
  left:50%;
  top:0;
  transform: translate(-50%, -50%);
}

/* Respeta accesibilidad */
@media (prefers-reduced-motion: reduce){
  .helix{height:auto;}
  .helix__viewport{
    display:flex;
    flex-wrap:wrap;
    gap: 10px;
    justify-content:center;
    padding: 12px;
  }
  .helix__item{
    position: static;
    transform:none !important;
    opacity:1 !important;
    filter:none !important;
  }
}

main{padding-top: var(--topbar-h);} 


/* HERO LOGO OVERLAY */
.hero__logoOverlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  z-index:2;
}
.hero__logoOverlay::before{
  content:"";
  position:absolute;
  width:min(760px, 92vw);
  height:min(420px, 52vh);
  border-radius:999px;
  background: radial-gradient(closest-side, rgba(0,0,0,.42), rgba(0,0,0,0));
}
.hero__logoOverlay img{
  width:min(520px, 72vw);
  max-width:720px;
  height:auto;
  opacity:.98;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.8));
}
@media (max-width:520px){
  .hero__logoOverlay::before{width:92vw; height:38vh;}
  .hero__logoOverlay img{width:min(420px, 80vw);}
}

/* =========================
   MODAL (iframe embebido)
   ========================= */
body.modal-open{overflow:hidden;}

.modal{
  position:fixed;
  inset:0;
  z-index:120;
  display:none;
}
.modal.is-open{display:block;}

.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(3,8,18,.55);
  backdrop-filter: blur(6px);
}

.modal__panel{
  position:relative;
  width:min(1100px, 94vw);
  height:min(80vh, 820px);
  margin: 10vh auto 0;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(19,40,88,.96), rgba(13,32,68,.96));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 30px 80px rgba(0,0,0,.42);
  overflow:hidden;
}

.modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.modal__header h3{
  margin:0;
  font-size: 16px;
  letter-spacing: .2px;
}
.modal__actions{display:flex; align-items:center; gap:10px;}
.modal__newtab{
  font-size: 13px;
  font-weight: 800;
  color: rgba(210,238,255,.95);
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.08);
}
.modal__newtab:hover{background: rgba(255,255,255,.07);}
.modal__close{width:36px;height:36px;border-radius:12px;}

.modal__body{height: calc(100% - 58px);}
.modal__frame{
  width:100%;
  height:100%;
  border:0;
  background:#0E2450;
}

@media (max-width:640px){
  .modal__panel{height: 84vh; margin: 8vh auto 0;}
  .modal__newtab{display:none;}
}


/* =========================
   Florence Chat (n8n) — UI techno / esquina
   ========================= */
.nomad-chat{
  position: fixed;
  /*
    Posición del botón Florence:
    - Abajo a la derecha (sin estorbar el botón flotante de WhatsApp).
    - Ajustable: cambia right/bottom si lo quieres más a la derecha/izquierda o arriba/abajo.
  */
  /*
    Ajuste solicitado: mover el botón/píldora de Florence a la parte de ABAJO.
    En desktop lo dejamos pegado abajo a la derecha pero corrido a la izquierda
    para no estorbar otros botones flotantes.
  */
  right: 96px;
  bottom: 24px;
  z-index: 9999;
  display: grid;
  gap: 10px;
  align-items: end;
  justify-items: end;
  pointer-events: none; /* se habilita solo en botón/panel */
}

.nomad-chat__btn,
.nomad-chat__panel,
.nomad-chat__close{
  pointer-events: auto;
}

.nomad-chat__btn{
  /* Más grande (sin mover posición: crece hacia la izquierda/arriba) */
  min-width: 290px;
  display: grid;
  grid-template-columns: 24px auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 999px;
  border: 1px solid rgba(120, 180, 255, .35);
  background: linear-gradient(135deg, rgba(13, 22, 44, .88), rgba(8, 12, 22, .88));
  color: rgba(242, 247, 255, .96);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateZ(0);
  transform-origin: 100% 100%; /* mantiene anclado el borde inferior derecho */
  will-change: transform, box-shadow;
  position: relative;
  overflow: hidden;
}

.nomad-chat__btn::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(circle at 20% 30%, rgba(77,163,255,.45), transparent 55%),
              radial-gradient(circle at 80% 70%, rgba(120, 88, 255, .35), transparent 55%);
  filter: blur(10px);
  opacity: .9;
  pointer-events:none;
}

.nomad-chat__btn::after{
  content:"";
  position:absolute;
  inset:0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 8px);
  opacity: .10;
  pointer-events:none;
}

.nomad-chat__btnIcon{
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: rgba(120, 180, 255, .95);
  filter: drop-shadow(0 0 8px rgba(77,163,255,.45));
  font-weight: 700;
  font-size: 18px;
}

.nomad-chat__btnText{
  font-size: 18px;
font-weight: 700;
  letter-spacing: .2px;
  position: relative;
  z-index: 1;
}

.nomad-chat__btnHint{
  font-size: 14px;
  opacity: .78;
  position: relative;
  z-index: 1;
}

@keyframes nomadPulse {
  0% {
    transform: translateZ(0) scale(1);
    box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 0 0 0 rgba(77,163,255,.38);
  }
  55% {
    transform: translateZ(0) scale(1.04);
    box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 0 0 34px rgba(77,163,255,0);
  }
  100% {
    transform: translateZ(0) scale(1);
    box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 0 0 0 rgba(77,163,255,0);
  }
}
.nomad-chat__btn{
  min-width: 290px;
  animation: nomadPulse 2.2s ease-out infinite;
}
@media (prefers-reduced-motion: reduce){
  .nomad-chat__btn{ min-width: 290px; animation: none; }
}

.nomad-chat__panel{
  width: min(390px, calc(100vw - 36px));
  height: min(560px, calc(100vh - 140px));
  border-radius: 18px;
  border: 1px solid rgba(120, 180, 255, .28);
  background: linear-gradient(180deg, rgba(13, 22, 44, .92), rgba(8, 12, 22, .92));
  box-shadow: 0 22px 60px rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.nomad-chat__panel.is-open{
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nomad-chat__panelHeader{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 10px 14px;
  border-bottom: 1px solid rgba(242,247,255,.12);
}

.nomad-chat__title{
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.1;
}
.nomad-chat__subtitle{
  font-size: 12px;
  opacity: .78;
  margin-top: 2px;
}

.nomad-chat__close{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(242,247,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(242,247,255,.92);
  cursor: pointer;
}
.nomad-chat__close:hover{
  background: rgba(255,255,255,.10);
}

.nomad-chat__mount{
  height: calc(100% - 58px);
  padding: 0;
}

/* El modo fullscreen no debería mostrar el toggle; por si acaso lo ocultamos */
.nomad-chat__mount .n8n-chat-widget-toggle{
  display: none !important;
}
.nomad-chat__mount .n8n-chat-widget,
.nomad-chat__mount .n8n-chat-widget-fullscreen,
.nomad-chat__mount .n8n-chat-widget-window{
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  position: relative !important;
}

/* Ajustes del widget n8n via CSS variables (scoped al panel) */
.nomad-chat__panel{
  --chat--color-primary: #4DA3FF;
  --chat--color-primary-shade-50: rgba(77,163,255,.12);
  --chat--color-primary-shade-100: rgba(77,163,255,.18);
  --chat--color-secondary: rgba(8,12,22,1);
  --chat--color-white: rgba(242,247,255,1);
  --chat--color-light: rgba(242,247,255,.10);
  --chat--color-light-shade-50: rgba(242,247,255,.10);
  --chat--color-light-shade-100: rgba(242,247,255,.14);
  --chat--color-dark: rgba(8,12,22,1);

  --chat--border-radius: 16px;
  --chat--window--border-radius: 16px;

  --chat--header--padding: 10px 14px;
  --chat--header--background: transparent;

  --chat--textarea--border-radius: 14px;
  --chat--textarea--background: rgba(255,255,255,.06);
  --chat--textarea--color: rgba(242,247,255,.96);

  --chat--message--border-radius: 16px;
  --chat--message--user--background: rgba(77,163,255,.20);
  --chat--message--assistant--background: rgba(255,255,255,.06);

  --chat--toggle--background: #4DA3FF; /* por si se usa modo toggle */
}

/* En pantallas pequeñas: ocupa más ancho y baja el panel */
@media (max-width: 520px){
  .nomad-chat{
    right: 16px;
    bottom: 100px;
  }
  .nomad-chat__panel{
    width: calc(100vw - 24px);
    height: calc(100vh - 150px);
  }
}


/* --- Florence Chat: mejora de visibilidad al escribir (evita que el input tape la conversación) --- */
.nomad-chat__panel{
  /* dvh se ajusta mejor cuando aparece el teclado en móvil */
  height: min(720px, calc(100dvh - 140px));
}
@media (max-width: 520px){
  .nomad-chat__panel{
    height: calc(100dvh - 120px);
  }
}

/* Reserva espacio abajo para el campo de texto y el botón de enviar */
.nomad-chat__mount .n8n-chat-messages,
.nomad-chat__mount .n8n-chat__messages,
.nomad-chat__mount [class*="messages"]{
  padding-bottom: 84px !important;
}

/* Mantén el input fijo/pegado abajo dentro del panel */
.nomad-chat__mount .n8n-chat-input,
.nomad-chat__mount .n8n-chat__input,
.nomad-chat__mount form{
  position: sticky !important;
  bottom: 0 !important;
  z-index: 5;
  background: rgba(8,12,22,.88) !important;
  backdrop-filter: blur(10px);
}

/* Reduce el bloque de título grande en modo fullscreen (para que se vea más conversación) */
.nomad-chat__mount .n8n-chat-widget-fullscreen h1,
.nomad-chat__mount .n8n-chat-widget-fullscreen h2{
  font-size: 20px !important;
  line-height: 1.15 !important;
  margin: 0 0 10px !important;
}
.nomad-chat__mount .n8n-chat-widget-fullscreen p{
  margin: 0 0 12px !important;
}

/* Si existe una pantalla/hero de bienvenida, la compactamos */
.nomad-chat__mount .n8n-chat-welcome,
.nomad-chat__mount .n8n-chat__welcome,
.nomad-chat__mount [class*="welcome"]{
  padding: 12px 14px !important;
}

/* Compacta el bloque azul (welcome/header) para que no tape la conversación */
.nomad-chat__mount .n8n-chat-welcome,
.nomad-chat__mount .n8n-chat__welcome,
.nomad-chat__mount [class*="welcome"]{
  max-height: 140px !important;
  overflow: auto !important;
}

/* Cuando el usuario empieza a escribir, compacta aún más */
.nomad-chat__mount.is-compact .n8n-chat-welcome,
.nomad-chat__mount.is-compact .n8n-chat__welcome,
.nomad-chat__mount.is-compact [class*="welcome"]{
  max-height: 64px !important;
  overflow: hidden !important;
  padding: 10px 14px !important;
}

.nomad-chat__mount.is-compact .n8n-chat-widget-fullscreen h1,
.nomad-chat__mount.is-compact .n8n-chat-widget-fullscreen h2{
  font-size: 18px !important;
  margin: 0 !important;
  line-height: 1.1 !important;
}

.nomad-chat__mount.is-compact .n8n-chat-widget-fullscreen p{
  display: none !important;
}

/* En móvil, sube aún más el botón para que quede arriba de WhatsApp y se vea grande */
@media (max-width: 520px){
  .nomad-chat{
    right: 98px;
    bottom: 108px; /* zona inferior, sin tapar WA */
  }
  .nomad-chat__btn{
    min-width: 270px;
    padding: 19px 21px;
  }
  .nomad-chat__btnText{ font-size: 17px; }
  .nomad-chat__btnHint{ font-size: 14px; }
}

/* En pantallas muy pequeñas, mantenemos el botón grande pero sin tapar WA */
@media (max-width: 380px){
  .nomad-chat{ right: 86px; bottom: 104px; }
  .nomad-chat__btn{ min-width: 250px; padding: 18px 20px; }
}

/* --- Ajuste solicitado: fuerza el botón de Florence abajo a la derecha (evita que se vaya arriba) --- */
.nomad-chat{
  top: auto !important;
  left: auto !important;
}

@media (min-width: 521px){
  .nomad-chat{
    right: 96px;
    bottom: 24px;
  }
}

