/* ============================================================
   INNOVA VENTURE MARKETING — Sistema de diseño
   Paleta tomada de la marca: agua petróleo/teal (foto de kayaks) +
   azul cian del logo + rojo boya como firma. Verde solo para WhatsApp.
   Tipografía: Space Grotesk (títulos) + Sora (texto)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Sora:wght@400;500;600;700&display=swap');

:root{
  /* Color — máximo 5 colores con propósito */
  --bg:            #04161e;      /* petróleo noche (agua profunda) */
  --bg-alt:        #0a2531;      /* superficie teal */
  --bg-alt2:       #0e2f3d;      /* superficie teal clara */
  --text:          #eef6f7;
  --text-muted:    #8fb2bc;
  --accent:        #2ea6d8;      /* marca: azul cian (logo + agua) */
  --accent-strong: #5ccfe4;      /* cian claro para brillos y links */
  --accent-deep:   #25306b;      /* azul marino del logo */
  --pop:           #e5392e;      /* rojo boya — firma, uso escaso */
  --whatsapp:      #25d366;      /* reservado solo para CTAs de WhatsApp */
  --line:          rgba(226,244,247,0.11);
  --line-soft:     rgba(226,244,247,0.06);

  /* Tipografía */
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Sora', sans-serif;

  /* Espaciado */
  --gutter: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --header-h: 75px;   /* alto de la barra superior (74px + borde) */

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }
h1,h2,h3,h4{ font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p{ margin: 0 0 1em; }
:focus-visible{ outline: 2px solid var(--accent-strong); outline-offset: 3px; }

/* ---------- Textura de fondo sutil (efecto 1: grano) ---------- */
body::before{
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position:relative; z-index:1; }
section{ padding: 88px 0; position: relative; z-index: 1; }
section.tight{ padding: 56px 0; }
.section-head{ max-width: 640px; margin: 0 0 44px; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 16px;
}
.eyebrow::before{ content:""; width:7px; height:7px; border-radius:50%; background: var(--pop); box-shadow: 0 0 0 4px rgba(229,57,46,.16); } /* boya roja: firma de marca */
h1{ font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2{ font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3{ font-size: 1.2rem; }
.lede{ font-size: 1.15rem; color: var(--text-muted); max-width: 620px; }
.center{ text-align:center; margin-left:auto; margin-right:auto; }

/* ---------- Botones (efecto 2: elevación al hover) ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: linear-gradient(135deg, var(--accent-strong), var(--accent)); color: #04161e; box-shadow: 0 8px 22px -12px rgba(46,166,216,.6); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(92,207,228,.55); }
.btn-ghost{ background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--text-muted); transform: translateY(-2px); }
.btn-whatsapp{ background: var(--whatsapp); color: #06210f; }
.btn-whatsapp:hover{ transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(37,211,102,.5); }
.btn-block{ width:100%; }
.btn-sm{ padding: 10px 18px; font-size: .88rem; }
.btn svg{ width:16px; height:16px; }
.cta-row{ display:flex; flex-wrap:wrap; gap:14px; align-items:center; }
.micro{ font-size: .85rem; color: var(--text-muted); margin-top: 14px; }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(4,18,26,.72);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); /* efecto 3: cristal */
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
/* Sobre el hero la barra desaparece; recupera el cristal al bajar */
.site-header.transparent{
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.nav{ display:flex; align-items:center; justify-content:space-between; height:74px; }
.brand{ display:flex; align-items:center; gap:10px; font-family: var(--font-head); font-weight:700; font-size: 1.05rem; }
.brand-mark{ width:32px; height:32px; }
.nav-links{ display:flex; align-items:center; gap:6px; }
.nav-links a{
  padding: 10px 14px; border-radius: 999px; font-size: .95rem; font-weight:500; color: var(--text-muted);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--text); background: var(--line-soft); }
.nav-actions{ display:flex; align-items:center; gap:10px; }
.nav-services{ position:relative; }
.nav-dropdown{
  position:absolute; top: calc(100% + 10px); left:0; min-width: 250px;
  background: var(--bg-alt); border:1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px; opacity:0; visibility:hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.6);
}
.nav-services:hover .nav-dropdown, .nav-services:focus-within .nav-dropdown{
  opacity:1; visibility:visible; transform: translateY(0);
}
.nav-dropdown a{ display:block; padding: 10px 12px; border-radius: 8px; }
.nav-dropdown a:hover{ background: var(--line-soft); }
.menu-toggle{
  display:none; width:42px; height:42px; border-radius:10px; border:1px solid var(--line);
  background:transparent; align-items:center; justify-content:center; color:var(--text);
}
.menu-toggle svg{ width:20px; height:20px; }
.mobile-menu{ display:none; } /* oculto en escritorio; se activa en el media query móvil */

/* ---------- Hero (efecto: foto cinematográfica + velo petróleo) ---------- */
.hero{ position:relative; overflow:hidden; isolation:isolate; padding: 118px 0 96px; }
/* Video de fondo en bucle (ping-pong). La foto de abajo queda de respaldo. */
.hero-video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  z-index:-3; pointer-events:none; border:0;
  opacity:0; transition: opacity .8s ease;   /* aparece cuando ya puede reproducir */
}
.hero-video.ready{ opacity:1; }
.hero::before{ /* foto aérea de los kayaks — respaldo + paneo/zoom lento (Ken Burns) */
  content:""; position:absolute; inset:0; z-index:-4;
  background-image: url('../assets/hero-kayaks.webp');
  background-position: center 70%; background-size: cover; background-repeat:no-repeat;
  transform: scale(1.04);
  animation: heroKenBurns 36s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroKenBurns{
  0%{ transform: scale(1.04) translate3d(0,0,0); }
  100%{ transform: scale(1.13) translate3d(-1.6%, -1.3%, 0); }
}
/* Capa de luz de agua: dos destellos que se desplazan (efecto cáustico sutil) */
.hero-fx{ position:absolute; inset:0; z-index:-2; pointer-events:none; overflow:hidden; }
.hero-fx::before, .hero-fx::after{ content:""; position:absolute; inset:-25%; mix-blend-mode:screen; will-change:transform; }
.hero-fx::before{ background: radial-gradient(38% 26% at 42% 38%, rgba(124,224,242,.16), transparent 68%); animation: heroDrift1 19s ease-in-out infinite alternate; }
.hero-fx::after{ background: radial-gradient(34% 24% at 62% 56%, rgba(90,200,225,.12), transparent 66%); animation: heroDrift2 25s ease-in-out infinite alternate; }
@keyframes heroDrift1{ 0%{ transform: translate3d(-3%,-2%,0) scale(1); } 100%{ transform: translate3d(4%,3%,0) scale(1.18); } }
@keyframes heroDrift2{ 0%{ transform: translate3d(3%,2%,0) scale(1.12); } 100%{ transform: translate3d(-3%,-3%,0) scale(1); } }
.hero::after{ /* velo para legibilidad + fundido inferior hacia el fondo */
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(94deg, rgba(4,18,26,.95) 0%, rgba(4,18,26,.80) 44%, rgba(4,18,26,.28) 100%),
    linear-gradient(0deg, var(--bg) 1%, rgba(4,18,26,0) 42%);
}
@media (prefers-reduced-motion: reduce){
  .hero::before{ animation:none; transform: scale(1.04); }
  .hero-fx::before, .hero-fx::after{ animation:none; }
  .hero-video{ display:none; }   /* sin movimiento: se queda la foto fija */
}
.hero-inner{ position:relative; z-index:1; max-width: 680px; }
.hero-inner.wide{ max-width: 880px; }
.hero h1{ font-size: clamp(2.3rem, 5.4vw, 3.7rem); text-wrap: balance; }
.hero .lede{ max-width: 560px; }
.trust-strip{ padding: 28px 0; border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
.trust-strip .wrap{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px; }
.trust-label{ font-size:.85rem; color: var(--text-muted); letter-spacing:.04em; text-transform:uppercase; }
.trust-stats{ display:flex; flex-wrap:wrap; gap: 36px; }
.trust-stat{ text-align:left; }
.trust-stat b{ display:block; font-family: var(--font-head); font-size:1.4rem; color:var(--text); }
.trust-stat span{ font-size:.85rem; color:var(--text-muted); }

/* ---------- Grids & Cards ---------- */
.grid{ display:grid; gap: 22px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

.card{
  background: linear-gradient(180deg, var(--bg-alt2), var(--bg-alt)); border:1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; /* efecto 2 */
}
.card:hover{ transform: translateY(-4px); border-color: rgba(92,207,228,.45); box-shadow: 0 26px 50px -28px rgba(2,10,16,.9), 0 0 0 1px rgba(46,166,216,.12); }
.card-icon{
  width:46px; height:46px; border-radius:12px; background: rgba(46,166,216,.14);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px; color: var(--accent-strong);
}
.card-icon svg{ width:24px; height:24px; }
.card ul{ margin: 14px 0 18px; }
.card ul li{ font-size:.92rem; color:var(--text-muted); padding-left:20px; position:relative; margin-bottom:6px; }
.card ul li::before{ content:"—"; position:absolute; left:0; color: var(--accent-strong); }
.card-link{ font-weight:600; color: var(--accent-strong); display:inline-flex; gap:6px; align-items:center; }
.card-link svg{ width:14px; height:14px; transition: transform .15s ease; }
.card-link:hover svg{ transform: translateX(3px); }

/* Problema — lista con check/alerta */
.problem-list{ display:grid; gap: 16px; }
.problem-item{
  display:flex; gap:16px; padding: 20px; background: var(--bg-alt); border:1px solid var(--line);
  border-radius: var(--radius-sm);
}
.problem-item .dot{ flex:none; width:10px; height:10px; border-radius:50%; background: var(--accent); margin-top:7px; }
.problem-item strong{ display:block; margin-bottom:4px; }
.problem-item span{ color: var(--text-muted); font-size:.95rem; }
.closer{
  margin-top: 30px; padding: 20px 24px; border-radius: var(--radius-sm);
  border:1px solid rgba(46,166,216,.3); background: rgba(46,166,216,.08);
  font-weight:600;
}

/* Proceso — timeline */
.steps{ display:grid; gap: 18px; grid-template-columns: repeat(4,1fr); counter-reset: step; }
.step{ background: var(--bg-alt); border:1px solid var(--line); border-radius: var(--radius); padding:26px 22px; position:relative; }
.step-num{ font-family: var(--font-head); font-size:1.6rem; color: var(--accent-strong); opacity:.7; margin-bottom:10px; }
.step h3{ margin-bottom:8px; font-size:1.05rem; }
.step p{ color: var(--text-muted); font-size:.9rem; margin-bottom:8px; }
.step time{ font-size:.8rem; color: var(--accent-strong); font-weight:600; }

/* Caso destacado */
.case-feature{
  display:grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items:center;
  background: var(--bg-alt); border:1px solid var(--line); border-radius: var(--radius); padding: 40px;
}
.case-feature blockquote{ font-size:1.05rem; border-left:3px solid var(--accent); padding-left:18px; margin: 18px 0; color: var(--text); }
.case-feature cite{ font-style:normal; color:var(--text-muted); font-size:.9rem; }
.case-visual{
  aspect-ratio: 4/3; border-radius: var(--radius-sm); background: linear-gradient(135deg, rgba(46,166,216,.28), rgba(37,48,107,.5));
  border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color: var(--text-muted); font-size:.85rem; text-align:center; padding:20px;
}

/* Pricing cards */
.pricing-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items:stretch; }
.price-card{
  display:flex; flex-direction:column; background: var(--bg-alt); border:1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
}
.price-card.featured{ border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 50px -30px rgba(46,166,216,.6); }
.price-card .tag{ font-size:.75rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color: var(--accent-strong); margin-bottom:10px; }
.price-card.featured .tag{ display:inline-flex; align-items:center; gap:7px; color: var(--text); }
.price-card.featured .tag::before{ content:"★"; color: var(--pop); font-size:.9em; }
.price-card h3{ margin-bottom: 4px; }
.price-card .resolves{ color: var(--text-muted); font-size:.9rem; margin-bottom: 20px; }
.price-line{ display:flex; justify-content:space-between; padding:12px 0; border-top:1px solid var(--line-soft); font-size:.92rem; }
.price-line:first-of-type{ border-top:none; }
.price-line b{ color: var(--text); }
.price-note{ font-size:.85rem; color: var(--text-muted); margin: 24px 0; }

/* FAQ accordion */
.faq{ display:grid; gap: 10px; max-width: 760px; }
.faq-item{ border:1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt); overflow:hidden; }
.faq-item summary{
  list-style:none; cursor:pointer; padding: 18px 22px; display:flex; align-items:center; justify-content:space-between;
  font-weight:600; gap: 16px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+"; font-size:1.4rem; color: var(--accent-strong); flex:none; transition: transform .2s ease; font-weight:400;
}
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item .faq-body{ padding: 0 22px 20px; color: var(--text-muted); }

/* Tablas responsivas (envueltas para scroll horizontal) */
.table-scroll{ overflow-x:auto; border:1px solid var(--line); border-radius: var(--radius-sm); }
table{ width:100%; border-collapse:collapse; min-width: 560px; font-size:.92rem; }
th, td{ padding: 14px 18px; text-align:left; border-bottom:1px solid var(--line-soft); }
thead th{ color: var(--text-muted); font-weight:600; font-size:.8rem; text-transform:uppercase; letter-spacing:.04em; background: var(--bg-alt); }
tbody tr:last-child td{ border-bottom:none; }
tbody tr:hover{ background: var(--line-soft); }

/* CTA final banner */
.cta-banner{
  background: linear-gradient(135deg, rgba(46,166,216,.16), rgba(46,166,216,.04));
  border:1px solid rgba(46,166,216,.3); border-radius: 24px; padding: 60px 40px; text-align:center;
}
.cta-banner h2{ max-width: 720px; margin-left:auto; margin-right:auto; }
.cta-banner .cta-row{ justify-content:center; margin-top: 26px; }

/* Footer */
.site-footer{ border-top: 1px solid var(--line-soft); padding: 60px 0 30px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer-col h4{ font-size:.82rem; text-transform:uppercase; letter-spacing:.05em; color: var(--text-muted); margin-bottom:16px; }
.footer-col a, .footer-col p{ display:block; color: var(--text-muted); font-size:.92rem; margin-bottom:10px; }
.footer-col a:hover{ color: var(--text); }
.footer-brand p{ max-width: 260px; color: var(--text-muted); }
.footer-bottom{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; padding-top: 24px;
  border-top:1px solid var(--line-soft); font-size:.85rem; color: var(--text-muted);
}

/* Floating WhatsApp button */
.wa-float{
  position:fixed; bottom:22px; right:22px; z-index: 60; width:58px; height:58px; border-radius:50%;
  background: var(--whatsapp); display:flex; align-items:center; justify-content:center;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.6); transition: transform .15s ease;
}
.wa-float:hover{ transform: scale(1.07); }
.wa-float svg{ width:28px; height:28px; }

/* Chatbot demo widget */
.chat-demo{
  background: var(--bg-alt); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden;
  display:flex; flex-direction:column; height: 460px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
}
.chat-demo-head{ display:flex; align-items:center; gap:10px; padding: 16px 18px; border-bottom:1px solid var(--line-soft); }
.chat-demo-head .avatar{ width:34px; height:34px; border-radius:50%; background: var(--accent); display:flex; align-items:center; justify-content:center; font-weight:700; color:#04161e; }
.chat-demo-head .status{ font-size:.78rem; color: var(--whatsapp); display:flex; align-items:center; gap:6px; }
.chat-demo-head .status::before{ content:""; width:7px; height:7px; border-radius:50%; background: var(--whatsapp); }
.chat-demo-body{ flex:1; overflow-y:auto; padding: 18px; display:flex; flex-direction:column; gap:12px; }
.msg{ max-width: 80%; padding: 11px 15px; border-radius: 16px; font-size:.92rem; line-height:1.45; }
.msg.bot{ background: var(--bg); border:1px solid var(--line); align-self:flex-start; border-bottom-left-radius:4px; }
.msg.user{ background: var(--accent); color:#04161e; align-self:flex-end; border-bottom-right-radius:4px; font-weight:500; }
.chat-suggestions{ display:flex; flex-wrap:wrap; gap:8px; padding: 0 18px 12px; }
.chat-suggestions button{
  background:transparent; border:1px solid var(--line); color: var(--text-muted); border-radius:999px;
  padding: 7px 14px; font-size:.8rem; transition: border-color .15s ease, color .15s ease;
}
.chat-suggestions button:hover{ border-color: var(--accent-strong); color: var(--text); }
.chat-demo-input{ display:flex; gap:10px; padding: 14px; border-top:1px solid var(--line-soft); }
.chat-demo-input input{
  flex:1; background: var(--bg); border:1px solid var(--line); border-radius:999px; padding: 12px 18px;
  color: var(--text); font-family: inherit; font-size:.92rem;
}
.chat-demo-input input:focus{ outline:none; border-color: var(--accent); }
.chat-demo-input button{
  width:42px; height:42px; border-radius:50%; background: var(--accent); border:none; display:flex; align-items:center; justify-content:center; flex:none;
}
.chat-demo-input button svg{ width:18px; height:18px; color:#04161e; }
.typing{ display:flex; gap:4px; padding: 6px 4px; }
.typing span{ width:6px; height:6px; border-radius:50%; background: var(--text-muted); animation: blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2){ animation-delay:.2s; } .typing span:nth-child(3){ animation-delay:.4s; }
@keyframes blink{ 0%,80%,100%{ opacity:.2; transform:scale(.8);} 40%{ opacity:1; transform:scale(1);} }

/* Mermaid-style flow diagram (CSS only) */
.flow{ display:flex; flex-wrap:wrap; align-items:center; gap: 10px; }
.flow-node{
  background: var(--bg-alt); border:1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: .88rem; font-weight:600; text-align:center; flex:1; min-width: 150px;
}
.flow-node.accent{ border-color: var(--accent); color: var(--accent-strong); }
.flow-arrow{ color: var(--text-muted); flex:none; font-size:1.2rem; }
.flow-col{ flex-direction:column; align-items:stretch; }

/* Formulario de contacto */
.form-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size:.85rem; color: var(--text-muted); font-weight:500; }
.field input, .field select, .field textarea{
  background: var(--bg); border:1px solid var(--line); border-radius: 10px; padding: 13px 16px;
  color: var(--text); font-family: inherit; font-size:.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color: var(--accent); }
.field textarea{ resize: vertical; min-height: 100px; }
.checkbox-row{ display:flex; align-items:flex-start; gap:10px; font-size:.88rem; color: var(--text-muted); }
.checkbox-row input{ margin-top:3px; }
.form-success{
  display:none; padding: 18px 20px; border-radius: var(--radius-sm); background: rgba(37,211,102,.1);
  border:1px solid rgba(37,211,102,.35); color: var(--text); font-weight:500; margin-top:18px;
}
.form-success.show{ display:block; }

/* Objeciones (2 columnas) */
.obj-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.obj-card{ background: var(--bg-alt); border:1px solid var(--line); border-radius: var(--radius-sm); padding:22px; }
.obj-card .q{ font-weight:700; margin-bottom:8px; }
.obj-card .a{ color: var(--text-muted); font-size:.92rem; }

/* Tarjeta de "Nuestra historia" */
.history-card{ position:relative; padding:38px 36px; overflow:hidden; }
.history-card::before{ content:""; position:absolute; top:0; left:0; width:3px; height:100%; background:linear-gradient(180deg, var(--accent-strong), var(--pop)); }
.history-mark{ position:absolute; top:6px; right:26px; font-family:var(--font-head); font-size:5rem; line-height:1; color:var(--accent-strong); opacity:.14; pointer-events:none; }
.history-card p{ position:relative; }
.history-card p + p{ margin-top:16px; }

/* Team */
.team-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }
.team-card{ text-align:center; }
.team-photo{ aspect-ratio:1; border-radius: var(--radius); background: var(--bg-alt); border:1px solid var(--line); margin-bottom:14px; display:flex; align-items:center;justify-content:center; color:var(--text-muted); font-size:.8rem; overflow:hidden; }
.team-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.team-grid.cols-2{ grid-template-columns: repeat(2, minmax(200px, 300px)); justify-content:center; max-width:660px; margin:0 auto; }
@media (max-width:640px){ .team-grid.cols-2{ grid-template-columns: 1fr; max-width:320px; } }
.team-card h3{ margin-bottom:2px; }
.team-role{ color: var(--accent-strong); font-size:.85rem; font-weight:600; margin-bottom:8px; }
.team-line{ color: var(--text-muted); font-size:.9rem; }

/* Casos grid */
.case-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.case-card{ background: var(--bg-alt); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; }
.case-card .thumb{ aspect-ratio: 16/10; background: linear-gradient(135deg, rgba(46,166,216,.24), rgba(37,48,107,.45)); display:flex; align-items:center; justify-content:center; color:var(--text-muted); font-size:.8rem; }
.case-card .body{ padding:22px; }
.case-card .giro{ font-size:.78rem; color: var(--accent-strong); text-transform:uppercase; letter-spacing:.04em; font-weight:700; margin-bottom:6px; }
.case-card .result{ margin-top:14px; padding-top:14px; border-top:1px solid var(--line-soft); font-family: var(--font-head); font-size:1.2rem; }
.case-card .result span{ display:block; font-family: var(--font-body); font-size:.8rem; color: var(--text-muted); font-weight:400; margin-top:2px; }

/* Placeholder callouts (avisan qué falta rellenar) */
.todo{
  display:inline-block; background: rgba(255,176,32,.12); color:#ffb020; border:1px dashed rgba(255,176,32,.5);
  border-radius:6px; padding: 1px 8px; font-size:.82em; font-weight:600;
}

/* Reveal on scroll */
.reveal{ opacity:0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }

/* Badge de página legal */
.legal h2{ margin-top: 2.2em; }
.legal p, .legal li{ color: var(--text-muted); }
.legal ul{ list-style: disc; padding-left: 20px; margin-bottom: 1em; }
.legal ul li{ margin-bottom:.4em; }

/* ---------- Responsive: decisiones específicas de mobile ---------- */
@media (max-width: 900px){
  .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); }
  .steps{ grid-template-columns: repeat(2,1fr); }
  .case-feature{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: repeat(2,1fr); }
  .pricing-grid, .team-grid, .case-grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px){
  section{ padding: 60px 0; }
  .nav-links, .nav-actions .btn-ghost{ display:none; }
  .brand{ white-space:nowrap; }
  .menu-toggle{ display:flex; }
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .obj-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 26px; }
  .form-grid{ grid-template-columns: 1fr; }
  .pricing-grid, .team-grid, .case-grid{ grid-template-columns: 1fr; }
  .trust-strip .wrap{ flex-direction:column; align-items:flex-start; }
  h1{ font-size: 2rem; }
  .wa-float{ width:52px; height:52px; bottom:16px; right:16px; }
  .chat-demo{ height: 420px; }
  /* El header móvil se queda con marca + menú: el WhatsApp ya está en el botón flotante y en el menú */
  .nav-actions .btn-whatsapp{ display:none; }

  /* Menú móvil a pantalla completa */
  .mobile-menu{
    position:fixed; inset:0; top:74px; background: var(--bg); z-index:49;
    padding: 24px var(--gutter); display:none; overflow-y:auto;
  }
  .mobile-menu.open{ display:block; }
  .mobile-menu a{
    display:block; padding: 16px 4px; font-size:1.15rem; font-weight:600; border-bottom:1px solid var(--line-soft);
  }
  .mobile-menu .btn{ margin-top: 20px; }
}

/* Modal de salida (exit-intent) */

.modal-exit{ position:fixed; inset:0; background:rgba(4,18,26,.82); backdrop-filter:blur(4px); z-index:80; display:none; align-items:center; justify-content:center; padding:20px; }
.modal-exit.open{ display:flex; }
.modal-exit-card{ position:relative; max-width:420px; background:var(--bg-alt); border:1px solid var(--line); border-radius:var(--radius); padding:34px 30px; text-align:center; }
.modal-close{ position:absolute; top:12px; right:14px; background:none; border:none; color:var(--text-muted); font-size:1.4rem; line-height:1; }

/* ============================================================
   Agente IA flotante (arriba del botón de WhatsApp, en todo el sitio)
   ============================================================ */
.agent-fab{
  position:fixed; right:22px; bottom:92px; z-index:61;
  display:inline-flex; align-items:center; gap:10px;
  padding:11px 18px 11px 13px; border:none; border-radius:999px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color:#04161e; font-family:var(--font-head); font-weight:600; font-size:.92rem;
  box-shadow: 0 14px 30px -10px rgba(46,166,216,.6);
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
}
.agent-fab:hover{ transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(92,207,228,.6); }
.agent-fab .agent-ico{ width:26px; height:26px; display:flex; align-items:center; justify-content:center; flex:none; }
.agent-fab .agent-ico svg{ width:26px; height:26px; }
.agent-fab .agent-dot{ position:absolute; top:9px; left:30px; width:9px; height:9px; border-radius:50%; background:var(--whatsapp); box-shadow:0 0 0 3px rgba(4,22,26,1); }
.agent-fab .agent-dot::after{ content:""; position:absolute; inset:0; border-radius:50%; background:var(--whatsapp); animation: agentping 1.8s ease-out infinite; }
@keyframes agentping{ 0%{ transform:scale(1); opacity:.7;} 100%{ transform:scale(2.6); opacity:0;} }
.agent-fab.hide{ opacity:0; visibility:hidden; transform: translateY(8px); pointer-events:none; }

/* Panel de chat flotante */
.agent-panel{
  position:fixed; right:22px; bottom:22px; z-index:62;
  width:min(374px, calc(100vw - 32px));
  opacity:0; visibility:hidden; transform: translateY(14px) scale(.98);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.agent-panel.open{ opacity:1; visibility:visible; transform:none; }
.agent-panel .chat-demo{ height: min(72vh, 520px); box-shadow: 0 30px 70px -24px rgba(2,10,16,.85); }
.agent-close{
  margin-left:auto; width:30px; height:30px; border-radius:50%; border:1px solid var(--line);
  background:transparent; color:var(--text-muted); font-size:1.15rem; line-height:1; display:flex; align-items:center; justify-content:center;
  transition: color .15s ease, border-color .15s ease;
}
.agent-close:hover{ color:var(--text); border-color:var(--text-muted); }

@media (max-width: 720px){
  .agent-fab{ right:16px; bottom:80px; padding:11px; }
  .agent-fab .agent-label{ display:none; }        /* en móvil queda como círculo con ícono */
  .agent-fab .agent-dot{ left:26px; top:7px; }
  .agent-panel{ right:12px; left:12px; bottom:12px; width:auto; }
  .agent-panel .chat-demo{ height: min(76vh, 560px); }
}

/* ============================================================
   HERO-VIAJE · video controlado por scroll + información por fases
   ============================================================ */
.journey{
  position:relative; height:620vh; background:var(--bg);
  padding:0;                       /* anula el padding global de <section> */
  margin-top:calc(var(--header-h) * -1);  /* arranca pegado arriba: el header flota encima */
}
.journey-stage{
  position:sticky; top:0; height:100vh; height:100dvh;
  overflow:hidden; isolation:isolate;
  /* Red de seguridad: el primer cuadro siempre visible, aunque el video falle */
  background:#04161e url('../assets/journey-poster.webp') center/cover no-repeat;
}
.journey-video{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; z-index:-3; pointer-events:none;
  opacity:0; transition:opacity .45s ease;
  transform:translateZ(0);          /* capa propia en GPU: scrubbing más fluido */
  will-change:opacity;
  backface-visibility:hidden;
}
.journey-video.ready{ opacity:1; }
.journey-veil{
  position:absolute; inset:0; z-index:-2; pointer-events:none;
  background:
    /* leve peso a la izquierda para los titulares alineados a la izquierda */
    linear-gradient(92deg, rgba(4,18,26,.72) 0%, rgba(4,18,26,.48) 48%, rgba(4,18,26,.24) 100%),
    /* viñeta suave: asienta el logo en el centro sin tapar el agua */
    radial-gradient(125% 100% at 50% 48%, rgba(4,18,26,0) 30%, rgba(4,18,26,.42) 100%),
    linear-gradient(0deg, rgba(4,18,26,.90) 0%, rgba(4,18,26,0) 36%);
}

/* Capas de texto: sólo una visible por fase */
.journey-layers{
  position:relative; z-index:1; height:100%;
  max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter);
  display:grid; align-content:center;
}
.jl{
  grid-area:1/1; max-width:680px;
  opacity:0; visibility:hidden; transform:translateY(26px);
  transition:opacity .5s ease, transform .5s ease, visibility .5s;
}
.jl.on{ opacity:1; visibility:visible; transform:none; }
.jl h1, .jl h2{ font-size:clamp(2rem, 4.6vw, 3.4rem); letter-spacing:-.02em; text-wrap:balance; margin-bottom:.45em; }
.jl-sub{ font-size:1.12rem; color:var(--text-muted); max-width:560px; }
.jl-tag{
  display:inline-flex; align-items:center; gap:8px; margin-bottom:16px;
  font-size:13px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--accent-strong);
}
.jl-tag::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--pop); box-shadow:0 0 0 4px rgba(229,57,46,.16); }
.jl-stats{ display:flex; flex-wrap:wrap; gap:32px; margin-top:26px; }
.jl-stats b{ display:block; font-family:var(--font-head); font-size:1.6rem; color:var(--accent-strong); }
.jl-stats span{ font-size:.85rem; color:var(--text-muted); }
.jl .cta-row{ margin-top:28px; }

/* Relleno palabra por palabra al avanzar el scroll */
.jl [data-fill] .w{
  color:rgba(238,246,247,.22);
  transition:color .35s ease, text-shadow .35s ease;
}
.jl [data-fill] .w.lit{
  color:var(--text);
  text-shadow:0 2px 24px rgba(4,18,26,.55);
}

/* Barra de progreso del viaje */
.journey-progress{
  position:absolute; left:var(--gutter); bottom:38px; z-index:2;
  width:min(240px, 40vw); height:2px; background:rgba(238,246,247,.16); border-radius:2px; overflow:hidden;
}
.journey-progress span{ display:block; height:100%; width:0%; background:linear-gradient(90deg,var(--accent-strong),var(--accent)); }
.journey-hint{
  position:absolute; right:var(--gutter); bottom:32px; z-index:2;
  font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; color:var(--text-muted);
  transition:opacity .4s ease;
}
.journey-hint.gone{ opacity:0; }

@media (max-width:720px){
  .journey{ height:560vh; }
  .jl h1, .jl h2{ font-size:clamp(1.75rem, 7.2vw, 2.4rem); }
  .jl-sub{ font-size:1rem; }
  .jl-stats{ gap:20px; }
  .jl-stats b{ font-size:1.3rem; }
  .journey-progress{ bottom:30px; }
  .journey-hint{ display:none; }
}

/* Sin movimiento: el viaje se vuelve una portada fija y legible */
@media (prefers-reduced-motion: reduce){
  .journey{ height:auto; }
  .journey-stage{ position:relative; height:auto; padding:110px 0 90px; }
  .journey-video{ display:none; }
  .journey-stage{ background:linear-gradient(180deg, #06222d, var(--bg)); }
  .journey-layers{ display:block; }
  .jl{ opacity:1; visibility:visible; transform:none; margin-bottom:54px; }
  .jl [data-fill] .w{ color:var(--text); }
  .journey-progress, .journey-hint{ display:none; }
}

/* --- Fase de marca: el logo primero, sobrio y bien incrustado --- */
.jl-brand{
  max-width:none; justify-self:center; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:26px;
}
.jl-logo{
  width:min(440px, 68vw); height:auto;
  filter: drop-shadow(0 18px 42px rgba(2,12,18,.75));  /* lo asienta sobre el agua */
}
.jl-tagline{
  margin:0; max-width:560px;
  font-size:clamp(1rem, 1.5vw, 1.18rem); line-height:1.7;
  color:rgba(238,246,247,.82); text-wrap:balance;
  text-shadow:0 2px 20px rgba(2,12,18,.6);
}
/* línea fina de cierre, detalle editorial */
.jl-brand::after{
  content:""; width:56px; height:1px;
  background:linear-gradient(90deg, transparent, var(--accent-strong), transparent);
}

/* El indicador se va a la izquierda: en la derecha estorban los botones flotantes */
.journey-hint{ right:auto; left:var(--gutter); bottom:56px; }

@media (max-width:720px){
  .jl-brand{ gap:20px; }
  .jl-logo{ width:min(300px, 78vw); }
  .jl-tagline{ font-size:.98rem; }
}
