/* ============================================================
   Sistema HS — Hoja de estilos moderna 2026
   Paleta base: Blanco + Azul #1583e9
   Tipografía: Plus Jakarta Sans (títulos) + Inter (cuerpo)
   ============================================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; transition: var(--t-base); }

/* === CSS VARIABLES === */
:root {
  /* Brand */
  --primary:         #1583e9;
  --primary-dark:    #0d6ed4;
  --primary-darker:  #0a5ab8;
  --primary-light:   #e8f3fd;
  --primary-glow:    rgba(21,131,233,.15);
  --primary-glow-sm: rgba(21,131,233,.08);

  /* Backgrounds */
  --bg:        #ffffff;
  --surface:   #f7f9ff;
  --surface-2: #eef3ff;
  --surface-3: #e3edfd;

  /* Text */
  --text:      #08111f;
  --text-sec:  #2d3748;
  --muted:     #64748b;
  --muted-lt:  #94a3b8;

  /* Borders */
  --border:    rgba(21,131,233,.14);
  --border-lt: rgba(0,0,0,.07);

  /* Shadows */
  --sh-xs:   0 1px 3px rgba(0,0,0,.06);
  --sh-sm:   0 4px 14px rgba(0,0,0,.08);
  --sh-md:   0 8px 30px rgba(0,0,0,.10);
  --sh-lg:   0 20px 60px rgba(0,0,0,.12);
  --sh-xl:   0 32px 80px rgba(0,0,0,.14);
  --sh-blue: 0 8px 28px rgba(21,131,233,.28);
  --sh-blue-lg: 0 16px 48px rgba(21,131,233,.22);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Transitions */
  --t-fast:   .18s cubic-bezier(.4,0,.2,1);
  --t-base:   .30s cubic-bezier(.4,0,.2,1);
  --t-slow:   .55s cubic-bezier(.4,0,.2,1);
  --t-spring: .45s cubic-bezier(.34,1.56,.64,1);

  /* Layout */
  --max-w: 1200px;
  --py:    100px;
}

/* === BASE === */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ================================
   UTILIDADES COMUNES
================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section      { padding: var(--py) 0; }
.section-sm   { padding: 64px 0; }
.section-xs   { padding: 40px 0; }
.bg-surface   { background: var(--surface); }
.bg-surface-2 { background: var(--surface-2); }
.bg-dark      { background: var(--text); }
.text-center  { text-align: center; }

/* Label chip */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  margin-bottom: 20px;
}
.label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* Títulos de sección */
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 14px;
}
.section-title span { color: var(--primary); }

.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
}

/* Reveal animations (JS-driven) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
[data-reveal="left"]  { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="scale"] { transform: scale(.95); }
[data-reveal].is-visible { opacity: 1; transform: none !important; }

.d1 { transition-delay: .08s !important; }
.d2 { transition-delay: .16s !important; }
.d3 { transition-delay: .24s !important; }
.d4 { transition-delay: .32s !important; }
.d5 { transition-delay: .40s !important; }
.d6 { transition-delay: .48s !important; }

/* ================================
   BOTONES
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--r-md);
  font-size: .93rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: var(--t-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.2; flex-shrink: 0; transition: transform var(--t-base); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--sh-blue);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--sh-blue-lg);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  color: var(--primary);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-lt);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border);
  transform: translateY(-2px);
  color: var(--text);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
}
.btn-white:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  color: var(--primary);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}

.btn-ghost-white {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-2px);
  color: #fff;
}

.btn-lg { padding: 15px 34px; font-size: 1rem; }

/* ================================
   NAVBAR
================================ */
.hs-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  height: 78px;
  transition: var(--t-base);
}
.hs-nav.transparent { background: transparent; }
.hs-nav.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-lt);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  height: 68px;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.nav-brand img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
}
.nav-links a {
  display: block;
  padding: 8px 15px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-sec);
  border-radius: var(--r-sm);
  transition: var(--t-base);
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links li.active a { color: var(--primary); font-weight: 600; }

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 600;
  box-shadow: var(--sh-blue);
  margin-left: 8px;
  transition: var(--t-base);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--sh-blue-lg);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t-base);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================
   HERO — INICIO
================================ */
.hs-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #eef5ff 0%, #ffffff 55%, #f5f0ff 100%);
}

/* Círculos decorativos */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}
.hero-blob-1 {
  width: 700px; height: 700px;
  top: -280px; right: -200px;
  background: radial-gradient(circle, rgba(21,131,233,.09) 0%, transparent 70%);
  animation: blobFloat 12s ease-in-out infinite alternate;
}
.hero-blob-2 {
  width: 500px; height: 500px;
  bottom: -200px; left: -150px;
  background: radial-gradient(circle, rgba(99,60,230,.06) 0%, transparent 70%);
  animation: blobFloat 14s ease-in-out infinite alternate-reverse;
}
.hero-blob-3 {
  width: 350px; height: 350px;
  top: 40%; right: 10%;
  background: radial-gradient(circle, rgba(21,131,233,.05) 0%, transparent 70%);
  animation: blobFloat 10s ease-in-out infinite alternate;
  animation-delay: -4s;
}
@keyframes blobFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(20px,15px) scale(1.06); }
}

/* Grid de puntos decorativo */
.hero-grid-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(21,131,233,.12) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 60% 70% at 70% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 50%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: rgba(21,131,233,.07);
  border: 1px solid rgba(21,131,233,.22);
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulseRing 2s ease-in-out infinite;
}
@keyframes pulseRing {
  0%,100% { box-shadow: 0 0 0 0 rgba(21,131,233,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(21,131,233,.0); }
}

/* Hero headline */
.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 22px;
}
.hero-title .ht-accent {
  color: var(--primary);
  position: relative;
  display: inline-block;
}
.hero-title .ht-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, rgba(21,131,233,.2) 100%);
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
  animation: slideUnderline .9s .6s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes slideUnderline { to { transform: scaleX(1); } }

.hero-desc {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 40px;
  max-width: 480px;
}

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

/* Trust row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-lt);
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.hero-stat span { font-size: .78rem; color: var(--muted); }
.hero-stat-sep { width: 1px; height: 32px; background: var(--border-lt); }

/* Hero image area */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  z-index: 2;
}

.hero-img-frame {
  background: white;
  border-radius: var(--r-xl);
  padding: 10px;
  box-shadow: var(--sh-xl), 0 0 0 1px var(--border-lt);
  animation: heroFloat 7s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
.hero-img-frame img {
  border-radius: calc(var(--r-xl) - 6px);
  width: 100%;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0) rotate(-.3deg); }
  50%      { transform: translateY(-18px) rotate(.3deg); }
}

/* Halo detrás de la imagen */
.hero-img-halo {
  position: absolute;
  inset: -15%;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(21,131,233,.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: haloBreath 8s ease-in-out infinite;
}
@keyframes haloBreath {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: .7; }
}

/* Tarjetas flotantes pequeñas */
.hero-float {
  position: absolute;
  background: white;
  border-radius: var(--r-md);
  padding: 11px 15px;
  box-shadow: var(--sh-md);
  border: 1px solid var(--border-lt);
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 3;
  white-space: nowrap;
}
.hero-float-a { top: 10%; right: -5%; animation: floatA 5s ease-in-out infinite; }
.hero-float-b { bottom: 14%; left: -6%; animation: floatB 6s ease-in-out infinite; }
@keyframes floatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
@keyframes floatB { 0%,100%{transform:translateY(0)} 50%{transform:translateY(9px)} }

.hf-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.hf-green { background: #dcfce7; }
.hf-blue  { background: var(--primary-light); }
.hf-label { color: var(--text); line-height: 1.2; }
.hf-val   { font-size: .7rem; color: var(--muted); font-weight: 400; }

/* ================================
   FEATURES
================================ */
.features-header { text-align: center; margin-bottom: 60px; }
.features-header .section-desc { margin: 0 auto; }

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

.feat-card {
  background: white;
  border: 1px solid var(--border-lt);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--t-base);
  cursor: default;
}
.feat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), rgba(21,131,233,.25));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--t-base);
}
.feat-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--sh-lg);
  border-color: var(--border);
}
.feat-card:hover::after { transform: scaleX(1); }

.feat-icon {
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 20px;
  transition: var(--t-spring);
}
.feat-card:hover .feat-icon {
  background: var(--primary);
  transform: rotate(-8deg) scale(1.08);
}

.feat-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.feat-card p {
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ================================
   SHOWCASE SPLIT
================================ */
.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.showcase-inner.flipped { direction: rtl; }
.showcase-inner.flipped > * { direction: ltr; }

.showcase-img {
  position: relative;
}
.showcase-img img {
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  width: 100%;
  border: 1px solid var(--border-lt);
}

/* Mini badge flotante sobre imagen */
.showcase-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: white;
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  padding: 14px 20px;
  box-shadow: var(--sh-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.sb-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.sb-txt { font-size: .75rem; color: var(--muted); line-height: 1.3; }

/* Check list */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 36px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  color: var(--text-sec);
  line-height: 1.5;
}
.cl-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ================================
   STATS STRIPE
================================ */
.stats-stripe {
  background: var(--primary);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  text-align: center;
}
.stat-item {
  padding: 24px;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,.22);
}
.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: white;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-lbl { font-size: .82rem; color: rgba(255,255,255,.75); }

/* ================================
   CTA BANNER
================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 450px; height: 450px;
  top: -180px; right: -120px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  bottom: -130px; left: -80px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}
.cta-text p { color: rgba(255,255,255,.75); font-size: .95rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ================================
   FOOTER
================================ */
.hs-footer {
  background: #08111f;
  padding: 72px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 32px;
}

.footer-brand img { height: 36px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.72; max-width: 280px; }
.footer-contact-info { margin-top: 20px; display: flex; flex-direction: column; gap: 7px; }
.footer-contact-info a { font-size: .88rem; color: rgba(255,255,255,.55); transition: var(--t-base); }
.footer-contact-info a:hover { color: var(--primary-light); }
.footer-contact-info span { font-size: .85rem; color: rgba(255,255,255,.4); }

.footer-col h4 {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-col ul a:hover { color: white; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.35); }

/* ================================
   PAGE HERO (páginas internas)
================================ */
.page-hero {
  padding: 110px 0 64px;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  top: -220px; right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,131,233,.07), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-content { max-width: 640px; }

/* FIX: los hijos del page-hero-content se animan via CSS puro
   para evitar el espacio en blanco que causa [data-reveal] + observer timing */
.page-hero-content > [data-reveal] {
  animation: phItemIn .65s cubic-bezier(.4,0,.2,1) both;
}
.page-hero-content > [data-reveal]:nth-child(1) { animation-delay: .08s; }
.page-hero-content > [data-reveal]:nth-child(2) { animation-delay: .18s; }
.page-hero-content > [data-reveal]:nth-child(3) { animation-delay: .28s; }
@keyframes phItemIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ================================
   TABS (funcionalidades)
================================ */
.tabs-wrap { margin: 48px 0 0; }

.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border-lt);
  margin-bottom: 36px;
}
.tab-btn {
  padding: 10px 22px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  transition: var(--t-base);
}
.tab-btn:hover { color: var(--primary); background: var(--primary-light); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-panel { display: none; animation: tabIn .3s ease; }
.tab-panel.active { display: block; }
@keyframes tabIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.tab-panel p { color: var(--text-sec); margin-bottom: 14px; }

/* Features list completa */
.func-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.func-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  font-size: .88rem;
  color: var(--text-sec);
  line-height: 1.5;
  transition: var(--t-base);
}
.func-item:hover {
  background: var(--primary-light);
  border-color: var(--border);
  transform: translateX(4px);
}
.fi-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ================================
   GALLERY (capturas)
================================ */
.gallery-intro { text-align: center; margin-bottom: 52px; }
.gallery-intro .section-desc { margin: 0 auto; }

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

.gallery-item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border-lt);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,17,31,.65) 0%, transparent 55%);
  opacity: 0;
  transition: var(--t-base);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 18px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.go-icon {
  width: 38px; height: 38px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--sh-sm);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8,17,31,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lbIn .25s ease;
}
.lightbox.open { display: flex; }
@keyframes lbIn { from { opacity:0; } to { opacity:1; } }

.lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 88vh;
  border-radius: var(--r-xl);
  box-shadow: 0 40px 100px rgba(0,0,0,.5);
  animation: lbImgIn .3s ease;
}
@keyframes lbImgIn { from { transform: scale(.92); opacity:0; } to { transform:scale(1); opacity:1; } }

.lb-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--t-base);
}
.lb-close:hover { background: rgba(255,255,255,.22); transform: rotate(90deg); }

/* ================================
   CONTACT FORM
================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 56px;
  align-items: start;
}

.contact-form-card {
  background: white;
  border-radius: var(--r-xl);
  padding: 44px 48px;
  box-shadow: var(--sh-lg);
  border: 1px solid var(--border-lt);
}
.contact-form-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-form-card > p { font-size: .9rem; color: var(--muted); margin-bottom: 32px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border-lt);
  border-radius: var(--r-sm);
  font-size: .9rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: var(--t-base);
}
.form-control:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-control::placeholder { color: var(--muted-lt); }
textarea.form-control { resize: vertical; min-height: 140px; }

.contact-info-card {
  background: var(--primary);
  border-radius: var(--r-xl);
  padding: 40px;
  color: white;
  position: sticky;
  top: 90px;
}
.contact-info-card h3 { color: white; font-size: 1.3rem; margin-bottom: 8px; }
.contact-info-card .ci-subtitle { color: rgba(255,255,255,.72); font-size: .9rem; margin-bottom: 32px; }

.ci-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.ci-row:last-child { border-bottom: none; }
.ci-ico {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.14);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.ci-row strong { display: block; font-size: .9rem; color: white; margin-bottom: 2px; }
.ci-row span   { font-size: .8rem; color: rgba(255,255,255,.65); }

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
  .hero-inner { gap: 44px; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .showcase-inner { gap: 48px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 768px) {
  :root { --py: 72px; }

  /* Mobile nav */
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border-lt);
    box-shadow: var(--sh-md);
    gap: 2px;
    z-index: 8999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .nav-cta-btn { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-visual { order: -1; }
  .hero-desc { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-float-a, .hero-float-b { display: none; }
  .hero-title .ht-accent::after { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .showcase-inner { grid-template-columns: 1fr; gap: 40px; }
  .showcase-inner.flipped { direction: ltr; }
  .showcase-badge { right: 10px; bottom: -14px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .func-grid { grid-template-columns: 1fr; }
  .cta-inner { text-align: center; justify-content: center; }
  .cta-actions { justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .contact-form-card { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; letter-spacing: -.02em; }
  .hero-stat-sep { display: none; }
  .hero-stats { gap: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ================================
   WHATSAPP BUTTON FIJO
================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45), 0 2px 8px rgba(0,0,0,.15);
  transition: var(--t-spring);
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,.55), 0 4px 12px rgba(0,0,0,.18);
  background: #20ba5a;
}
.wa-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}
/* Anillo de pulso */
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.45);
  animation: waPulse 2.2s ease-in-out infinite;
}
@keyframes waPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  60%      { transform: scale(1.25); opacity: 0; }
}
/* Tooltip */
.wa-float::after {
  content: 'Consultanos por WhatsApp';
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: #111;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-base);
}
.wa-float:hover::after { opacity: 1; }
