:root{
  --blue-900:#0F1B2A;
  --blue-800:#10243A;
  --blue-700:#1B3552;

  --accent:#3B82F6;
  --radius: 16px;
  --max: 1100px;

  --border-dark: rgba(255,255,255,.10);
  --border-light: rgba(15,27,42,.10);

  /* Scroll hint default (dark) */
  --chev-color: rgba(255,255,255,.85);
  --chev-shadow: rgba(0,0,0,.25);
}

*{ box-sizing:border-box; }
html,body{
  margin:0; padding:0; height:100%;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:#0b1220; background:#fff;
  scroll-behavior: auto; /* IMPORTANT: we animate scroll ourselves */
}
a{ color:inherit; text-decoration:none; }
p{ line-height:1.65; margin:0; }
.container{ width:min(var(--max), calc(100% - 48px)); margin:0 auto; }

/* =========================
   PANEL / PRESENTATION MODE
   ========================= */
main.hero, section{
  min-height: 100vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
main.hero.is-active, section.is-active{
  opacity: 1;
  pointer-events: auto;
}

section{
  padding: 0;
  display: grid;
  align-items: center;
}
.section-inner{
  padding: 86px 0;
}

/* =========================
   SECTION HEADER (TITLE + LINE)
   ========================= */
.section-header{
  text-align:center;
  max-width: 820px;
  margin: 0 auto 34px;
}
.section-header h2{
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -0.6px;
}
.section-divider{
  width: 58px;
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
  margin: 10px auto 16px;
  opacity: .9;
}
.section-header p{
  font-size: 15px;
  opacity: .78;
}

/* =========================
   HEADER (blur stays here)
   ========================= */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 76px;
  display:flex;
  align-items:center;
  box-shadow: none;

  transform: translateY(-100%);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease, box-shadow .28s ease;
}
body.scrolled .site-header{
  transform: translateY(0);
  opacity: 1;
  box-shadow: 0 6px 14px rgba(0,0,0,.14);
}

.site-header::before{
  content:"";
  position:absolute;
  top: -12px;
  left: -18px;
  right: -18px;
  bottom: 0;

  background: var(--header-bg, url("../img/hero-bg.png")) center/cover no-repeat;
  filter: var(--header-bg-filter, blur(12px) brightness(.45) contrast(1.05) saturate(.85));
  transform: scale(1.05);
  opacity: var(--header-bg-opacity, 0.22);
  transition: opacity .28s ease, filter .28s ease;
}
body.scrolled .site-header::before{ opacity: var(--header-bg-opacity, 0.22); }

.site-header::after{
  content:"";
  position:absolute;
  inset:0;
  background: var(--header-overlay, rgba(15,27,42,0.62));
  border-bottom: 1px solid var(--header-border, rgba(255,255,255,0.07));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .28s ease, background .28s ease, border-color .28s ease;
}
body.scrolled .site-header::after{ opacity: 1; }

.header-inner{
  position: relative;
  z-index: 1;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 260px;
}
.brand-logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 1px 0 rgba(0,0,0,.18);
  object-fit: contain;
}
.brand-name{
  font-weight: 700;
  color: rgba(255,255,255,.92);
  letter-spacing: .2px;
  white-space: nowrap;
}

nav{
  display:flex;
  align-items:center;
  gap: 18px;
  color: rgba(255,255,255,.70);
  font-weight: 560;
  font-size: 14px;
}
nav a:hover{ color: rgba(255,255,255,.92); }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 14px;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.11); }
.btn.primary{
  background: rgba(255,255,255,.92);
  color: var(--blue-900);
  border-color: rgba(255,255,255,.24);
}
.btn.primary:hover{ background: #fff; }

/* Header actions (CTA + hamburger) */
.header-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

.icon-btn{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
  color: inherit;
}
.icon-btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.11); }

/* hamburger icon */
.hamburger{
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.92);
  position: relative;
  border-radius: 999px;
}
.hamburger::before,
.hamburger::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
}
.hamburger::before{ top: -6px; }
.hamburger::after{ top: 6px; }

/* close (X) icon */
.x{
  width: 18px;
  height: 18px;
  position: relative;
}
.x::before, .x::after{
  content:"";
  position:absolute;
  top:50%;
  left:0;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
}
.x::before{ transform: translateY(-50%) rotate(45deg); }
.x::after{ transform: translateY(-50%) rotate(-45deg); }

/* =========================
   HERO
   ========================= */
.hero{
  height: 100vh;
  position: relative;
  overflow: hidden;
  display:block;
}
.hero-bg{
  position:absolute;
  inset:-20px;
  background: url("../img/hero-bg.png") center/cover no-repeat;
  filter: blur(16px);
  transform: scale(1.10);
}
.hero-overlay{
  position:absolute;
  inset:0;
  background: rgba(15,27,42,.30);
  transition: background .28s ease;
}
body.scrolled .hero-overlay{ background: rgba(15,27,42,.36); }

.hero-inner{
  position: relative;
  z-index: 1;
  height: 100%;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 110px 16px 88px;
}

#heroLogo{
  width: clamp(260px, 24vh, 360px);
  height: auto;
  object-fit: contain;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.22));
  transition: opacity .18s ease;
}
body.scrolled #heroLogo{
  opacity: 0;
  pointer-events: none;
}

.hero-text{
  text-align:center;
  max-width: 920px;
  padding-bottom: 10px;
}
.hero-title{
  margin: 0 0 14px;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -1px;
  color: rgba(255,255,255,.86);
  line-height: 1.05;
}
.hero-sub{
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 16px;
}

/* Hero floating menu button */
.hero-menu-btn{
  position: absolute;
  top: max(18px, env(safe-area-inset-top, 0px) + 12px);
  right: 18px;
  z-index: 20;

  width: 44px;
  height: 44px;
  border-radius: 14px;

  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, opacity .18s ease;
}
.hero-menu-btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.11); }
body.scrolled .hero-menu-btn{
  opacity: 0;
  pointer-events: none;
}

/* =========================
   SCROLL HINT (chevrons)
   ========================= */
.scroll-hint{
  position: fixed;
  left:0; right:0;
  bottom: max(22px, env(safe-area-inset-bottom, 0px) - 5px);
  height: 36px;
  pointer-events:none;
  z-index: 60;
  opacity: .86;
  transition: opacity .2s ease;
}
.scroll-hint .chev{
  position:absolute;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--chev-color);
  border-bottom: 2px solid var(--chev-color);
  transform: rotate(45deg);
  animation: scrollBounce 1.15s infinite ease-in-out;
  filter: drop-shadow(0 2px 6px var(--chev-shadow));
}
.scroll-hint .left{ left: 26px; }
.scroll-hint .right{ right: 26px; }

@keyframes scrollBounce{
  0%, 100%{ transform: translateY(0) rotate(45deg); opacity: .65; }
  50%{ transform: translateY(-7px) rotate(45deg); opacity: 1; }
}

/* =========================
   SECTIONS (theme)
   ========================= */
.section-dark{
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-700) 100%);
  color: rgba(255,255,255,.92);
}
.section-light{
  background: #fff;
  color: #0b1220;
  border-top: 1px solid rgba(15,27,42,.06);
}
.section-light .section-header p{ color: rgba(15,27,42,.70); opacity: 1; }

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

/* Cards */
.card{
  grid-column: span 4;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.section-light .card{
  background: #fff;
  border: 1px solid var(--border-light);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.card h3{
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.card p{
  color: rgba(255,255,255,.72);
  font-size: 14px;
}
.section-light .card p{ color: rgba(15,27,42,.72); }

/* Icon cards (like Figma) */
.icon-row{
  display:flex;
  align-items:flex-start;
  gap: 12px;
}
.icon-box{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}
.section-light .icon-box{
  background: rgba(15,27,42,.92);
  border-color: rgba(15,27,42,.10);
}
.icon-box svg{ width: 18px; height: 18px; }
.section-dark .icon-box svg{ fill: rgba(255,255,255,.92); }
.section-light .icon-box svg{ fill: rgba(255,255,255,.95); }

.mini-footer{
  margin-top: 26px;
  text-align:center;
  font-size: 13px;
  color: rgba(255,255,255,.70);
}
.section-light .mini-footer{ color: rgba(15,27,42,.55); }

@media (max-width: 980px){
  nav{ display:none; }
  .card{ grid-column: span 12; }
  .brand{ min-width:auto; }
  .hero-inner{ padding: 100px 16px 78px; }
  .section-inner{ padding: 74px 0; }
}

@media (prefers-reduced-motion: reduce){
  main.hero, section{ transition: none; }
  .scroll-hint .chev{ animation: none; }
}

/* Header theme: LIGHT (for white sections) */
body.header-light .brand-name{ color: rgba(15,27,42,.88); }
body.header-light nav{ color: rgba(15,27,42,.62); }
body.header-light nav a:hover{ color: rgba(15,27,42,.88); }

body.header-light .btn{
  border: 1px solid rgba(15,27,42,.14);
  background: rgba(255,255,255,.55);
  color: rgba(15,27,42,.88);
}
body.header-light .btn:hover{ background: rgba(255,255,255,.75); }

body.header-light .btn.primary{
  background: rgba(15,27,42,.92);
  color: rgba(255,255,255,.94);
  border-color: rgba(15,27,42,.20);
}
body.header-light .btn.primary:hover{ background: rgba(15,27,42,1); }

body.header-light .icon-btn{
  border: 1px solid rgba(15,27,42,.14);
  background: rgba(255,255,255,.55);
}
body.header-light .icon-btn:hover{ background: rgba(255,255,255,.75); }
body.header-light .hamburger,
body.header-light .hamburger::before,
body.header-light .hamburger::after{
  background: rgba(15,27,42,.85);
}
body.header-light .x::before,
body.header-light .x::after{ background: rgba(15,27,42,.85); }

/* =========================
   MOBILE FIX: no ocultar paneles + scroll-snap nativo
   ========================= */
@media (pointer: coarse){
  html, body{
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
  }
  main.hero, section{
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
  }
}

/* ===== MOBILE: header visible siempre + fondo activo ===== */
@media (pointer: coarse){
  .site-header{
    transform: translateY(0) !important;
    opacity: 1 !important;
  }

  /* Fondo/overlay siempre activos en mobile */
  .site-header::after{
    opacity: 1 !important;
  }

  /* ocultar SOLO en el hero top (y<=5) -> JS controla body.at-top */
  body.at-top .site-header{
    transform: translateY(-100%) !important;
    opacity: 0 !important;
  }
}

/* =========================
   DRAWER MENU
   ========================= */
.drawer-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 80;
}

.drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(360px, 92vw);
  z-index: 90;

  transform: translateX(110%);
  transition: transform .22s ease;

  background: rgba(15,27,42,.78);
  border-left: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  padding: 18px;
  display:flex;
  flex-direction: column;
  gap: 14px;
}
body.drawer-open .drawer{ transform: translateX(0); }

.drawer-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.drawer-title{
  font-weight: 800;
  color: rgba(255,255,255,.92);
  letter-spacing: .2px;
}
.drawer-section{ padding-top: 8px; }
.drawer-label{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 6px 0 10px;
}
.drawer-link{
  display:block;
  padding: 10px 10px;
  border-radius: 12px;
  color: rgba(255,255,255,.86);
  border: 1px solid transparent;
}
.drawer-link:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}

/* Light drawer when in light theme */
body.header-light .drawer{
  background: rgba(255,255,255,.92);
  border-left: 1px solid rgba(15,27,42,.10);
}
body.header-light .drawer-title{ color: rgba(15,27,42,.92); }
body.header-light .drawer-label{ color: rgba(15,27,42,.45); }
body.header-light .drawer-link{ color: rgba(15,27,42,.82); }
body.header-light .drawer-link:hover{
  background: rgba(15,27,42,.05);
  border-color: rgba(15,27,42,.10);
}

/* Contact form */
.contact-card{ padding: 22px; }

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

.field label{
  display:block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
  opacity: .85;
}

.field input, .field textarea{
  width:100%;
  border-radius: 12px;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  outline: none;
}

.field textarea{ resize: vertical; min-height: 120px; }

.field input:focus, .field textarea:focus{
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

.field.full{ grid-column: span 2; }

.form-actions{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.form-note{
  font-size: 13px;
  opacity: .75;
}

.form-status{
  margin-top: 10px;
  font-size: 13px;
  opacity: .85;
}

/* Light section variant (if someday contact becomes light) */
.section-light .field input,
.section-light .field textarea{
  border: 1px solid rgba(15,27,42,.14);
  background: rgba(255,255,255,.75);
  color: rgba(15,27,42,.92);
}

@media (max-width: 980px){
  .form-grid{ grid-template-columns: 1fr; }
  .field.full{ grid-column: span 1; }
}

/* Desktop: mientras el usuario está scrolleando libre, no ocultes paneles */
body.free-scroll main.hero,
body.free-scroll section{
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* PLATFORM HERO — readable on blur */
.page-platform .hero .section-header h2,
.page-platform .hero .section-header p,
.page-platform .hero .mini-footer{
  color: rgba(255,255,255,.92);
}
.page-platform .hero .section-header p,
.page-platform .hero .mini-footer{
  color: rgba(255,255,255,.72);
}
.page-platform .hero .section-header h2,
.page-platform .hero .section-header p{
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
}
.page-platform .hero .section-divider{
  background: rgba(120,170,255,.85);
}

/* Eyebrow */
.page-platform .hero .hero-eyebrow{
  display:inline-block;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: rgba(255,255,255,.70);
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom:14px;
}

/* Execution map */
.page-platform .hero .exec-map{
  max-width: 980px;
  margin: 18px auto 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-platform .hero .exec-step{
  min-width: 170px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  text-align: center;
}

.page-platform .hero .exec-title{
  font-weight: 600;
  color: rgba(255,255,255,.92);
  font-size: 13px;
  margin-bottom: 6px;
}

.page-platform .hero .exec-sub{
  color: rgba(255,255,255,.70);
  font-size: 12px;
}

/* Arrow (CSS-only) */
.page-platform .hero .exec-arrow{
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .8;
}

.page-platform .hero .exec-arrow::before{
  content: "";
  width: 18px;
  height: 2px;
  background: rgba(120,170,255,.85);
  border-radius: 2px;
  display: inline-block;
  position: relative;
}

.page-platform .hero .exec-arrow::after{
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid rgba(120,170,255,.85);
  border-top: 2px solid rgba(120,170,255,.85);
  transform: rotate(45deg);
  position: relative;
  left: -2px;
}

/* Mobile: stack arrows vertically by hiding arrows and letting wrap do the work */
@media (max-width: 720px){
  .page-platform .hero .exec-arrow{
    display:none;
  }
}

/* Wider execution map so all steps fit */
.page-platform .hero .exec-map{
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Wider execution map so all steps fit */
.page-platform .hero .exec-map{
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-platform .hero .exec-arrow{
  width: 28px;
}

.page-platform .hero .exec-map{
  margin-top: 18px;
}

/* Stronger divider (slightly punchier blue) */
.page-platform .hero .section-divider{
  background: rgba(70, 140, 255, 1);
}

/* Tour nav layout */
.page-platform .hero .tour-nav{
  max-width: 1200px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

/* Tour card (glass) */
.page-platform .hero .tour-card{
  text-decoration: none;
  border-radius: 16px;
  padding: 16px 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  color: rgba(255,255,255,.92);
}

.page-platform .hero .tour-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.13);
  border-color: rgba(120,170,255,.45);
}

.page-platform .hero .tour-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  margin-bottom: 10px;
  color: rgba(120,170,255,.95);
}

.page-platform .hero .tour-icon svg{
  width: 22px;
  height: 22px;
}

.page-platform .hero .tour-step{
  font-size: 12px;
  letter-spacing: .12em;
  opacity: .75;
  margin-bottom: 6px;
}

.page-platform .hero .tour-title{
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: rgba(255,255,255,.92);
}

.page-platform .hero .tour-sub{
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,.72);
}

/* Responsive */
@media (max-width: 980px){
  .page-platform .hero .tour-nav{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px){
  .page-platform .hero .tour-nav{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tour cards: same height */
.page-platform .hero .tour-nav{
  align-items: stretch;              /* important for equal height */
}

.page-platform .hero .tour-card{
  height: 100%;
  min-height: 116px;                 /* ajusta: 104–120 según te guste */
}

.page-platform .hero .tour-sub{
  min-height: 34px;                  /* reserva espacio para subtítulos */
}

.page-platform .hero .tour-nav{
  align-items: stretch;
  grid-auto-rows: 1fr;   /* <- clave para igualar filas */
}

.page-platform .hero .tour-card{
  min-height: 116px;     /* ya lo tienes, ok */
  height: 100%;
  display: flex;         /* mejor que grid aquí */
  flex-direction: column;
}

.page-platform .hero .tour-sub{
  margin-top: auto;      /* empuja el subtítulo hacia abajo */
  min-height: 34px;
}

/* Platform hero: breathing room between intro and tour cards */
.page-platform .hero .section-header{
  margin-bottom: 30px; /* separa header (texto) del tour */
}

.page-platform .hero .section-header p{
  margin-top: 12px;
  margin-bottom: 0;   /* evita dobles márgenes raros */
}

/* Márgen de los paneles (responsive y sin cortes en móvil) */
.page-platform .hero .tour-nav{
  margin-top: clamp(120px, 28vh, 420px);
}

/* En pantallas chicas: menos empuje vertical */
@media (max-width: 768px){
  .page-platform .hero .tour-nav{
    margin-top: clamp(90px, 18vh, 220px);
  }
}

/* Fix Android/Chrome viewport: usa dvh si está disponible */
@supports (height: 1dvh){
  .page-platform .hero .tour-nav{
    margin-top: clamp(120px, 28dvh, 420px);
  }

  @media (max-width: 768px){
    .page-platform .hero .tour-nav{
      margin-top: clamp(90px, 18dvh, 220px);
    }
  }
}

.page-platform .hero .section-header p{
  opacity: .85;
}

/* Hero cards entrance animation */

.page-platform .hero .tour-card{
  opacity: 0;
  transform: translateY(20px) scale(.98);
  animation: tourCardIn .6s ease forwards;
}

/* stagger animation (cascade) */
.page-platform .hero .tour-card:nth-child(1){ animation-delay: .05s; }
.page-platform .hero .tour-card:nth-child(2){ animation-delay: .12s; }
.page-platform .hero .tour-card:nth-child(3){ animation-delay: .19s; }
.page-platform .hero .tour-card:nth-child(4){ animation-delay: .26s; }
.page-platform .hero .tour-card:nth-child(5){ animation-delay: .33s; }
.page-platform .hero .tour-card:nth-child(6){ animation-delay: .40s; }
.page-platform .hero .tour-card:nth-child(7){ animation-delay: .47s; }

@keyframes tourCardIn{
  to{
    opacity:1;
    transform: translateY(0) scale(1);
  }
}

.page-platform .hero .tour-card:hover{
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

/* Platform hero pipeline line */

.page-platform .hero .tour-nav{
  position: relative;
}

/* the line */
.page-platform .hero .tour-nav::before{
  content: "";
  position: absolute;

  left: 5%;
  right: 5%;

  top: 50%;
  transform: translateY(-50%);

  height: 1px;

  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(120,170,255,.45) 20%,
    rgba(120,170,255,.45) 80%,
    rgba(255,255,255,0) 100%
  );

  z-index: 0;
}

/* ensure cards stay above the line */
.page-platform .hero .tour-card{
  position: relative;
  z-index: 1;
}

.tour-step{
  font-size:13px;
  letter-spacing:.12em;
  opacity:.6;
  font-weight:600;
}

.tour-title{
  font-size:15px;
  font-weight:700;
}

.tour-sub{
  font-size:12px;
  opacity:.7;
}

.hero-welcome{
  text-align:center;
  margin-top:18px;
  margin-bottom:22px;

  font-size:13px;
  letter-spacing:.22em;
  text-transform:uppercase;

  opacity:.75;
}