/* ============================================================
   BioMarker — Landing Page
   Estilo: Starsoft SRL (navy corporate) + acento BioMarker (cian)
   Fuentes: Titillium Web (titulares) · Plus Jakarta Sans (cuerpo) · DM Sans (notas)
   ============================================================ */

:root {
  /* Paleta Starsoft */
  --navy: #00235a;
  --navy-deep: #0a1229;
  --navy-slate: #1b2335;
  --blue-1: #1e73be;
  --blue-2: #4b91cf;
  --blue-3: #215e93;
  /* Acento BioMarker */
  --cyan: #00b7cd;
  --cyan-soft: #e0f7fa;
  /* Neutros */
  --white: #ffffff;
  --off-white: #f8f9fa;
  --cream: #fef3df;
  --text-body: #565969;
  --text-heading: #00235a;
  --gray-light: #e6ebf0;
  --gray-mid: #adb5bd;
  /* Tipografías */
  --ff-heading: 'Titillium Web', sans-serif;
  --ff-body: 'Plus Jakarta Sans', sans-serif;
  --ff-note: 'DM Sans', sans-serif;
  /* Formas y sombras */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 8px 16px rgba(3, 4, 28, 0.12);
  --shadow-deep: 0 30px 70px rgba(11, 6, 70, 0.14);
  --shadow-navy: 0 4px 60px rgba(0, 8, 21, 0.10);
  /* Layout */
  /* Movimiento: salida suave sin rebote (sitio corporativo) */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: .2s;
  --dur-hover: .35s;
  --dur-reveal: .7s;

  --container: 1200px;
  --header-h: 84px;
}

/* Texto solo para lectores de pantalla y buscadores (no se ve) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-1); text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--ff-heading);
  color: var(--text-heading);
  line-height: 1.15;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section.alt { background: var(--off-white); }
.section.dark { background: var(--navy-deep); }

/* ---------- Elementos de encabezado de sección ---------- */
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }

.section-eyebrow {
  display: inline-block;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section-title { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; text-transform: uppercase; }
.section-sub { font-size: 17px; max-width: 620px; margin: 0 auto; }
.section-title.light { color: var(--white); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-hover) var(--ease-out), background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.btn:active, .btn:hover:active { transform: translateY(0) scale(.97); transition-duration: .1s; }

/* Sombra "elevada" en una capa aparte: se anima solo su opacidad (compositor),
   en lugar de interpolar box-shadow, que repinta en cada frame. */
.btn-primary, .btn-whatsapp,
.product-card, .feature-card, .benefit-card { position: relative; }
.btn-primary::after, .btn-whatsapp::after,
.product-card::after, .feature-card::after, .benefit-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--shadow-deep);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-hover) var(--ease-out);
}
.btn-primary:hover::after, .btn-whatsapp:hover::after,
.product-card:hover::after, .feature-card:hover::after, .benefit-card:hover::after { opacity: 1; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--blue-3); transform: translateY(-3px); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); transform: translateY(-3px); }

.btn-whatsapp { background: #25d366; color: var(--white); box-shadow: var(--shadow-soft); }
.btn-whatsapp:hover { background: #1fb958; transform: translateY(-3px); }

.btn-whatsapp svg { width: 20px; height: 20px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-light);
  transition: box-shadow .3s ease, background-color .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-soft); background: rgba(255,255,255,.98); }

.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; }
.brand-logo { height: 56px; width: auto; }

.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-link {
  display: inline-block;
  padding: 10px 14px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: color .2s ease, background-color .2s ease;
}
.nav-link:hover { color: var(--cyan); }
.nav-cta {
  background: var(--navy);
  color: var(--white);
  margin-left: 10px;
  padding: 12px 22px;
}
.nav-cta:hover { background: var(--blue-3); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: var(--navy-deep);
  background-image:
    radial-gradient(circle at 85% 15%, rgba(0,183,205,.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(30,115,190,.22), transparent 45%);
  color: var(--white);
  overflow: hidden;
}
/* Foto del equipo: empieza DEBAJO del header fijo (si no, las caras quedan tapadas)
   y se ancla arriba y al centro, porque los rostros están en la parte superior de la foto. */
.hero::before {
  content: '';
  position: absolute;
  inset: var(--header-h) 0 0 0;
  z-index: 0;
  background-image: url('../assets/web/personal_sonriendo.jpg');
  background-image: image-set(url('../assets/web/personal_sonriendo.webp') type('image/webp'), url('../assets/web/personal_sonriendo.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Viñeta azul marino: oscurece el centro (donde va el texto) y los bordes */
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(10,18,41,.55) 0%, rgba(10,18,41,.25) 100%),
    linear-gradient(180deg, rgba(0,35,90,.55) 0%, rgba(10,18,41,.45) 50%, rgba(10,18,41,.92) 100%);
  z-index: 1;
}

.hero-inner { position: relative; z-index: 2; text-align: center; }

.hero-eyebrow {
  display: inline-block;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 100px;
  background: rgba(0,35,90,.45);
  backdrop-filter: blur(6px);
  margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(64px, 12vw, 150px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 6px;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 10px 40px rgba(0,0,0,.35);
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: clamp(17px, 2.2vw, 22px);
  color: rgba(255,255,255,.92);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.55;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px; height: 46px;
  background: rgba(255,255,255,.35);
  overflow: hidden;
}
.hero-scroll-line {
  display: block;
  width: 100%; height: 50%;
  background: var(--cyan);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ============================================================
   PRODUCTOS GRID
   ============================================================ */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.filter-btn {
  padding: 10px 24px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 100px;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.filter-btn:active { transform: scale(.95); }
.filter-btn:hover { border-color: var(--blue-2); color: var(--blue-1); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: var(--shadow-soft); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 28px 32px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-hover) var(--ease-out);
}
.product-card:hover { transform: translateY(-8px); }
.product-card.hidden { display: none; }
/* Entrada al cambiar de filtro (keyframes: la capa se promueve sola) */
.product-card.is-entering { animation: cardIn .45s var(--ease-out) both; animation-delay: var(--enter-delay, 0s); }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.product-card-icon { margin-bottom: 22px; }
.product-card-icon img { width: 64px; height: 64px; }

.product-card-title {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  line-height: 1.2;
}
.product-card-title span { color: var(--cyan); }

.product-card-text { font-size: 14.5px; color: var(--text-body); margin-bottom: 20px; flex-grow: 1; }

.product-card-link {
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-1);
  transition: color .2s ease;
}
.product-card:hover .product-card-link { color: var(--cyan); }

/* ============================================================
   PRODUCTO DETALLE
   ============================================================ */
.product-detail { scroll-margin-top: calc(var(--header-h) + 12px); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}
.detail-grid.reverse .detail-content { order: 1; }
.detail-grid.reverse .detail-visual { order: 2; }

/* Oración normal (no mayúsculas): los títulos largos se leen mejor y no "gritan" */
.detail-title { font-size: clamp(26px, 3vw, 38px); line-height: 1.18; letter-spacing: -.2px; margin-bottom: 18px; text-wrap: balance; }
.detail-intro { font-size: 17px; margin-bottom: 26px; }

.detail-value-list { display: grid; gap: 18px; margin-bottom: 30px; }

.value-item h4 { font-size: 17px; margin-bottom: 6px; }
.value-item p { font-size: 15.5px; }

.detail-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.value-item + .detail-cta { margin-top: 28px; }

/* Visual del dispositivo */
.detail-visual { display: flex; justify-content: center; }
.detail-device {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--navy) 0%, var(--blue-3) 60%, var(--cyan) 130%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
}
.detail-device-icon { width: 55%; height: auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,.25)); }

/* Foto de producto (App) */
.detail-photo {
  display: block;
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  background: #111;
}
.detail-photo img { display: block; width: 100%; height: auto; }

/* Captura de ventana de Windows (Biomarker Desktop) */
.app-window {
  display: block;
  width: 100%;
  max-width: 580px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,35,90,.12);
  box-shadow: var(--shadow-deep);
  background: var(--white);
}
.app-window img { display: block; width: 100%; height: auto; }

/* Ficha técnica (BioMarker Reloj) */
.spec-sheet {
  margin: -6px 0 28px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-md);
}
.spec-title {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}
.spec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 18px; }
.spec-list dt { font-size: 12px; color: var(--text-body); }
.spec-list dd { margin: 0; font-family: var(--ff-heading); font-weight: 700; font-size: 16px; color: var(--navy); line-height: 1.3; }
.spec-list dd small { font-family: var(--ff-body); font-weight: 400; font-size: 12px; color: var(--text-body); }
.spec-list .spec-wide { grid-column: 1 / -1; }
.spec-note { margin-top: 12px; font-size: 12.5px; color: var(--text-body); }

/* Foto de producto sobre vitrina blanca (BioMarker Reloj) */
.product-photo {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 28px;
  background: radial-gradient(circle at 50% 40%, #ffffff 55%, #eef2f7 100%);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
}
.product-photo picture { display: block; overflow: hidden; border-radius: var(--radius-md); }
.product-photo img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }

/* Marco de tablet (BioMarker Lite) */
.tablet-frame {
  width: 100%;
  max-width: 460px;
  padding: 14px;
  background: #0b0f1a;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  box-shadow: var(--shadow-deep);
}
.tablet-frame picture { display: block; overflow: hidden; border-radius: 14px; background: var(--white); }
.tablet-frame img { display: block; width: 100%; height: auto; }
.screen-card--wide .tablet-frame {
  max-width: none;
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
  transition: transform var(--dur-hover) var(--ease-out);
}
.screen-card--wide:hover .tablet-frame { transform: translateY(-6px); }
.tablet-frame .zoom-btn { top: 24px; right: 24px; }

/* ---------- Imágenes ampliables: zoom al pasar el cursor + lupa ---------- */
.zoomable { position: relative; cursor: zoom-in; }
.zoomable img { transition: transform .6s var(--ease-out); }
.zoomable:hover img { transform: scale(1.035); }
/* En las capturas del celular, el recorte va en la pantalla, no en el marco */
.screen-frame picture { display: block; overflow: hidden; border-radius: 25px; }

.zoom-btn {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(10,18,41,.72);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  cursor: pointer;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .25s ease, transform .35s var(--ease-out), background-color var(--dur-fast) ease;
}
.zoom-btn svg { width: 20px; height: 20px; }
.zoomable:hover .zoom-btn, .zoom-btn:focus-visible { opacity: 1; transform: scale(1); }
.zoom-btn:hover { background: var(--cyan); }
.zoom-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.screen-frame .zoom-btn { top: 22px; right: 22px; }
/* Pantallas táctiles (sin cursor): la lupa siempre visible */
@media (hover: none) {
  .zoom-btn { opacity: 1; transform: none; width: 40px; height: 40px; }
  .zoomable:hover img { transform: none; }
}

/* ---------- Visor a pantalla completa ---------- */
html.lightbox-open { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(6,10,24,.93); backdrop-filter: blur(4px); }
.lightbox[open]::backdrop { animation: lbFade .3s ease both; }
.lightbox-figure {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 72px 84px 56px;
}
.lightbox-img {
  max-width: min(100%, 1400px);
  max-height: calc(100dvh - 170px);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  background: var(--white);
}
.lightbox-img.is-in { animation: lbIn .4s var(--ease-out) both; }
.lightbox-caption { max-width: 720px; text-align: center; font-size: 14.5px; color: rgba(255,255,255,.8); }
.lightbox-btn {
  position: absolute;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  color: var(--white);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.lightbox-btn:hover { background: var(--cyan); }
.lightbox-btn:active { transform: scale(.94); }
.lightbox-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.lightbox [hidden] { display: none !important; }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 20px; top: 50%; margin-top: -24px; }
.lightbox-next { right: 20px; top: 50%; margin-top: -24px; }
.lightbox-count {
  position: absolute;
  top: 30px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-heading);
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.7);
}
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 768px) {
  .lightbox-figure { padding: 64px 14px 90px; }
  .lightbox-img { max-height: calc(100dvh - 250px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 22px; margin-top: 0; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
}

/* Capturas reales de la App */
.screens {
  margin: 8px 0 64px;
  padding: 48px 40px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg);
  color: rgba(255,255,255,.85);
}
.screens-head { max-width: 620px; margin: 0 auto 36px; text-align: center; }
.screens-title {
  font-size: clamp(24px, 3vw, 32px);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}
.screens-head p { font-size: 15.5px; }
.screens-row { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.screen-card { width: 250px; max-width: 100%; text-align: center; }
.screen-frame {
  padding: 10px;
  background: #0b0f1a;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 34px;
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
  transition: transform var(--dur-hover) var(--ease-out);
}
.screen-frame img { display: block; width: 100%; height: auto; border-radius: 25px; }
.screen-card:hover .screen-frame { transform: translateY(-6px); }
/* Variante horizontal (capturas de escritorio) */
.screens-row--wide { gap: 36px; }
.screen-card--wide { width: calc(50% - 18px); min-width: 280px; flex: 1 1 380px; }
.screen-card--wide .app-window {
  max-width: none;
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
  transition: transform var(--dur-hover) var(--ease-out);
}
.screen-card--wide:hover .app-window { transform: translateY(-6px); }
.screen-card figcaption { margin-top: 18px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.75); }
.screen-card figcaption strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--ff-heading);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 64px;
}

.feature-card {
  padding: 30px 26px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-top: 4px solid var(--cyan);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-hover) var(--ease-out);
}
.feature-card:hover { transform: translateY(-6px); }

.feature-num {
  display: inline-block;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 26px;
  color: var(--cyan);
  margin-bottom: 12px;
}
.feature-card h4 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; }

/* Tabs / bloques de contenido */
.detail-tabs { display: grid; gap: 32px; }
.tab-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

/* Desplegable "Más detalles" de cada producto */
.more-info { border-top: 1px solid var(--gray-light); padding-top: 28px; }
.more-info > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
}
.more-info > summary::-webkit-details-marker { display: none; }
.more-info > summary span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 100px;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.more-info > summary span::after {
  content: '';
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur-hover) var(--ease-out);
}
.more-info > summary:hover span { border-color: var(--cyan); color: var(--blue-3); }
.more-info > summary:focus-visible span { outline: 2px solid var(--cyan); outline-offset: 3px; }
.more-info[open] > summary span::after { transform: translateY(2px) rotate(-135deg); }
.more-info[open] > .detail-tabs { margin-top: 32px; animation: moreIn .45s var(--ease-out) both; }
@keyframes moreIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.tab-block {
  padding: 32px 30px;
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
}
.tab-block h4 { font-size: 18px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.tab-block p { font-size: 15px; margin-bottom: 12px; }
.tab-block p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; display: grid; gap: 12px; }
.steps li {
  position: relative;
  padding-left: 40px;
  font-size: 15px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--white);
  background: var(--cyan);
  border-radius: 50%;
}

.check-list { display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  background: var(--cyan-soft);
  border-radius: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2300b7cd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Tabla de beneficios */
.benefit-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.benefit-table th {
  text-align: left;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 12px 14px;
}
.benefit-table th:first-child { border-radius: 8px 0 0 0; }
.benefit-table th:last-child { border-radius: 0 8px 0 0; }
.benefit-table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-light); vertical-align: top; }
.benefit-table tr:nth-child(even) td { background: rgba(0,35,90,.03); }

/* Comparativa de productos */
.compare-wrap {
  overflow-x: auto;
  overflow-y: hidden; /* evita barra vertical mientras las filas entran desplazadas */
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.compare-table { min-width: 720px; font-size: 14.5px; }
.compare-hint { display: none; }
/* La primera columna queda fija al deslizar la tabla en pantallas chicas */
.compare-table th:first-child, .compare-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--white);
}
.compare-table th:first-child { background: var(--navy); }
.compare-table tr:nth-child(even) td:first-child { background: #f7f8fa; }
.compare-table th:not(:first-child),
.compare-table td:not(:first-child) { text-align: center; }
.compare-table td:first-child { font-weight: 600; color: var(--text-heading); }
.compare-table td.yes { color: var(--blue-3); font-weight: 700; }
.compare-table td.yes::before { content: '✓ '; color: var(--cyan); }
.compare-table td.no { color: var(--gray-mid); }

/* Pasos numerados (Tablets) */
.step-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 64px;
}
.step-card {
  position: relative;
  padding: 34px 28px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.step-num {
  display: block;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 40px;
  color: var(--cyan);
  margin-bottom: 12px;
}
.step-card h4 { font-size: 18px; margin-bottom: 10px; }
.step-card p { font-size: 14.5px; }

/* Franja de integración */
.integration-band {
  padding: 44px 40px;
  background: linear-gradient(140deg, var(--navy) 0%, var(--blue-3) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  text-align: center;
  margin-top: 24px;
}
.integration-title {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 26px);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}
.integration-list { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.integration-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.85);
}
.integration-chip {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  padding: 8px 18px;
  border-radius: 100px;
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}

/* ============================================================
   BENEFICIOS
   ============================================================ */
.benefits { background: var(--off-white); }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.benefit-card {
  padding: 36px 30px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-hover) var(--ease-out);
}
.benefit-card:hover { transform: translateY(-6px); }
.benefit-icon { transition: transform var(--dur-hover) var(--ease-out); }
.benefit-card:hover .benefit-icon { transform: scale(1.08) rotate(-4deg); }

.benefit-icon {
  width: 62px; height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--cyan-soft);
  color: var(--cyan);
  margin-bottom: 20px;
}
.benefit-icon svg { width: 30px; height: 30px; }
.benefit-card h4 { font-size: 19px; margin-bottom: 10px; }
.benefit-card p { font-size: 14.5px; }

/* ============================================================
   CÓMO FUNCIONA (dark)
   ============================================================ */
.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.howto-step {
  padding: 34px 28px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  transition: transform var(--dur-hover) var(--ease-out), background-color var(--dur-hover) ease;
}
.howto-step:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); }
.howto-num {
  display: block;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 34px;
  color: var(--cyan);
  margin-bottom: 12px;
}
.howto-step h4 { color: var(--white); font-size: 18px; margin-bottom: 10px; }
.howto-step p { color: rgba(255,255,255,.8); font-size: 14.5px; }

/* ============================================================
   CONTACTO / CTA
   ============================================================ */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }

.contact-box {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.contact-title {
  font-size: clamp(26px, 3.6vw, 42px);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.contact-sub { color: rgba(255,255,255,.85); font-size: 17px; margin-bottom: 36px; }
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.contact-meta { color: rgba(255,255,255,.6); font-size: 14px; font-family: var(--ff-note); }

/* Sello "Un producto de Starsoft" (logo en versión blanca sobre el fondo oscuro) */
.maker-badge {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding: 14px 24px;
  border-top: 1px solid rgba(255,255,255,.15);
  transition: transform var(--dur-hover) var(--ease-out);
}
.maker-badge:hover { transform: translateY(-3px); }
.maker-label {
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.maker-badge img { height: 64px; width: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 56px;
}
.footer-logo { height: 64px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; max-width: 300px; color: rgba(255,255,255,.65); }
.footer-col h5 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col li { font-size: 14px; }
.footer-col a { color: rgba(255,255,255,.7); transition: color .2s ease; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; }
.footer-bottom p { font-size: 13px; text-align: center; color: rgba(255,255,255,.5); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 900;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s var(--ease-out), visibility .3s, background-color var(--dur-fast) ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-3); transform: translateY(-3px); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* --reveal-delay lo asigna main.js para escalonar las tarjetas de una misma grilla */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
/* :where() baja la especificidad para que los :hover de las tarjetas (translateY)
   no queden anulados por este transform */
.reveal:where(.visible) { opacity: 1; transform: translateY(0); }
/* Tras aparecer, el hover de las tarjetas no debe heredar el retraso */
.reveal.revealed { transition-delay: 0s; }
.product-card.reveal.revealed, .feature-card.reveal.revealed, .benefit-card.reveal.revealed {
  transition: transform var(--dur-hover) var(--ease-out);
}
.howto-step.reveal.revealed {
  transition: transform var(--dur-hover) var(--ease-out), background-color var(--dur-hover) ease;
}

/* Tabla comparativa: las filas entran una a una cuando la tabla aparece */
.compare-wrap tbody tr {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: calc(.15s + var(--row, 0) * 60ms);
}
.compare-wrap.visible tbody tr { opacity: 1; transform: none; }

/* ============================================================
   ENTRADA DEL HERO (al cargar la página)
   ============================================================ */
.hero-eyebrow, .hero-title, .hero-tagline, .hero-actions {
  animation: heroIn .9s var(--ease-out) both;
}
.hero-title   { animation-delay: .12s; }
.hero-tagline { animation-delay: .24s; }
.hero-actions { animation-delay: .36s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --container: 960px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .benefit-grid, .howto-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-grid.reverse .detail-content { order: 2; }
  .detail-grid.reverse .detail-visual { order: 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow-soft);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    /* Solo opacidad + transform: sin recalcular layout en cada frame */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .35s var(--ease-out), visibility .35s;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 16px 24px 28px; gap: 4px; }
  .nav-link { display: block; padding: 14px 16px; }
  .nav-cta { margin: 8px 16px 0; text-align: center; }

  .hero { min-height: 88vh; }
  .screens { padding: 36px 20px; }
  .screens-row { gap: 36px; }

  /* Filtros en una sola fila deslizable */
  .filter-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-left: -18px; margin-right: -18px;
    padding: 4px 18px 8px;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; }

  .compare-hint {
    display: block;
    margin: -28px 0 12px;
    text-align: center;
    font-size: 13px;
    color: var(--text-body);
  }
  .compare-table { min-width: 640px; font-size: 13.5px; }
  .compare-table td:first-child, .compare-table th:first-child { min-width: 120px; }

  .hero-eyebrow { font-size: 11px; letter-spacing: 2px; padding: 7px 14px; }

  .more-info > summary span { font-size: 12.5px; letter-spacing: .5px; padding: 12px 20px; }

  /* Tarjetas más compactas en celular */
  .feature-card { padding: 22px 20px; }
  .feature-num { font-size: 20px; margin-bottom: 6px; }
  .feature-card h4 { font-size: 16.5px; margin-bottom: 6px; }
  #tablets .feature-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  #tablets .feature-grid .feature-card { padding: 18px 16px; }
  #tablets .feature-grid .feature-card p { font-size: 13.5px; }
  .benefit-card { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 22px 20px; }
  .benefit-icon { width: 52px; height: 52px; margin-bottom: 0; grid-row: span 2; }
  .benefit-card h4 { font-size: 17px; margin-bottom: 4px; }
  .howto-step { padding: 24px 22px; }
  .step-card { padding: 22px 20px; }
  .hero-title { letter-spacing: 3px; }

  .product-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-grid, .benefit-grid, .howto-grid, .step-row { grid-template-columns: 1fr; gap: 20px; }
  .tab-row { grid-template-columns: 1fr; gap: 20px; }

  .integration-band { padding: 34px 24px; }

  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { width: 100%; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }

  .hide-mobile { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .product-card { padding: 28px 22px; }
  .feature-card, .benefit-card, .tab-block { padding: 26px 22px; }
  .hero-title { font-size: clamp(42px, 15vw, 84px); letter-spacing: 2px; }
}

/* ---------- Preferencias de movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .compare-wrap tbody tr { opacity: 1; transform: none; }
}
