/* ═══════════════════════════════════════════════════
   TRAMITAX — Premium Styles
   Brand: Navy #1a3a6b · Green #2eb84b
   ═══════════════════════════════════════════════════ */

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

:root {
  /* Brand colors from logo */
  --navy: #1a3a6b;
  --navy-dark: #0e2245;
  --navy-mid: #15305a;
  --navy-light: #2a5298;
  --green: #2eb84b;
  --green-dark: #259a3e;
  --green-light: #45d463;
  --green-pale: #e6f9ea;
  --green-dim: rgba(46, 184, 75, 0.10);
  --green-glow: rgba(46, 184, 75, 0.18);

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f6f8fb;
  --gray-50: #f0f2f7;
  --gray-100: #e2e6ee;
  --gray-200: #cdd3df;
  --gray-300: #b0b8c9;
  --gray-400: #8e96a8;
  --gray-500: #6b7490;
  --gray-600: #505872;
  --gray-700: #363d52;
  --gray-800: #1f2537;

  /* Type */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(14,34,69,0.04);
  --shadow-sm: 0 2px 8px rgba(14,34,69,0.06);
  --shadow-md: 0 8px 30px rgba(14,34,69,0.08);
  --shadow-lg: 0 20px 50px rgba(14,34,69,0.12);
  --shadow-xl: 0 32px 64px rgba(14,34,69,0.16);
  --shadow-green: 0 8px 30px rgba(46,184,75,0.25);
  --shadow-navy: 0 8px 30px rgba(26,58,107,0.25);

  /* Radius */
  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --radius-xs: 8px;

  /* Timing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.35s var(--ease);
  --transition-slow: 0.6s var(--ease);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-600);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ────────────────────────────────────────────────────
   NAVIGATION
   ──────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  box-shadow: var(--shadow-xs);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  transition: height 0.3s var(--ease);
}

.nav.scrolled .nav-inner {
  height: 76px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover { opacity: 0.85; }

.logo img {
  height: 42px;
  width: auto;
  transition: height 0.3s var(--ease);
}

.nav.scrolled .logo img {
  height: 36px;
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-500);
  padding: 9px 18px;
  border-radius: 60px;
  transition: all var(--transition);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--navy);
  background: var(--gray-50);
}

.nav-menu .nav-cta-link {
  background: var(--green) !important;
  color: var(--white) !important;
  font-weight: 600;
  padding: 10px 26px;
  margin-left: 10px;
  box-shadow: var(--shadow-green);
}

.nav-menu .nav-cta-link:hover {
  background: var(--green-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(46,184,75,0.3);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
  border-radius: 10px;
  transition: background 0.2s;
}

.nav-toggle:hover { background: var(--gray-50); }

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: absolute;
  left: 10px;
  transition: 0.35s var(--ease);
}

.nav-toggle span { top: 19px; }
.nav-toggle span::before { content: ''; top: -7px; }
.nav-toggle span::after { content: ''; top: 7px; }

.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ────────────────────────────────────────────────────
   MOBILE OVERLAY MENU
   ──────────────────────────────────────────────────── */

.mobile-overlay {
  display: none;
}

@media (max-width: 768px) {
  .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--navy);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .mobile-overlay.open {
    transform: translateX(0);
  }

  .mobile-overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
  }

  .mobile-overlay-close svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
  }

  .mobile-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 60px 32px 40px;
    gap: 0;
  }

  .mobile-overlay-logo {
    display: block;
    margin-bottom: 8px;
  }

  .mobile-overlay-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
  }

  .mobile-overlay-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-bottom: 40px;
  }

  .mobile-overlay-links {
    list-style: none;
    width: 100%;
    max-width: 320px;
    margin-bottom: 36px;
  }

  .mobile-overlay-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(12px);
    animation: none;
  }

  .mobile-overlay.open .mobile-overlay-links li {
    animation: overlayLinkIn 0.35s ease forwards;
  }

  .mobile-overlay.open .mobile-overlay-links li:nth-child(1) { animation-delay: 0ms; }
  .mobile-overlay.open .mobile-overlay-links li:nth-child(2) { animation-delay: 70ms; }
  .mobile-overlay.open .mobile-overlay-links li:nth-child(3) { animation-delay: 140ms; }
  .mobile-overlay.open .mobile-overlay-links li:nth-child(4) { animation-delay: 210ms; }
  .mobile-overlay.open .mobile-overlay-links li:nth-child(5) { animation-delay: 280ms; }

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

  .mobile-overlay-links a {
    display: block;
    padding: 20px 0;
    font-size: 24px;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    text-align: center;
    transition: color 0.2s;
  }

  .mobile-overlay-links a:hover,
  .mobile-overlay-links a:active {
    color: var(--green);
  }

  .mobile-overlay-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    height: 54px;
    background: var(--green);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font);
    text-decoration: none;
    border-radius: 60px;
    transition: background 0.2s;
    opacity: 0;
    transform: translateY(12px);
    animation: none;
  }

  .mobile-overlay.open .mobile-overlay-cta {
    animation: overlayLinkIn 0.35s ease 370ms forwards;
  }

  .mobile-overlay-cta:hover,
  .mobile-overlay-cta:active {
    background: var(--green-dark);
  }
}

/* ────────────────────────────────────────────────────
   BUTTONS
   ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 38px;
  border-radius: 60px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn svg {
  width: 18px; height: 18px;
  transition: transform var(--transition);
}

.btn:hover svg { transform: translateX(4px); }

.btn-green {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: var(--white);
  box-shadow: var(--shadow-green);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(46,184,75,0.35);
}

.btn-navy {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  box-shadow: var(--shadow-navy);
}

.btn-navy:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(26,58,107,0.3);
}

.btn-outline-white {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}

.btn-outline-white::before { display: none; }

.btn-outline-white:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
}

.btn-outline-navy::before { display: none; }

.btn-outline-navy:hover {
  border-color: var(--navy);
  background: rgba(26,58,107,0.03);
}

/* ────────────────────────────────────────────────────
   HERO
   ──────────────────────────────────────────────────── */

.hero {
  padding: 170px 0 120px;
  background: linear-gradient(170deg, var(--navy-dark) 0%, var(--navy) 45%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

/* animated bg shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(46,184,75,0.06) 0%, transparent 60%);
  animation: heroPulse 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46,184,75,0.04) 0%, transparent 60%);
  animation: heroPulse 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroPulse {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(20px, -20px); }
}

/* floating dots decoration */
.hero-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-decor span {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(46,184,75,0.3);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-decor span:nth-child(1) { left: 10%; top: 30%; animation-delay: 0s; animation-duration: 7s; }
.hero-decor span:nth-child(2) { left: 25%; top: 70%; animation-delay: 1.2s; animation-duration: 8s; width: 6px; height: 6px; }
.hero-decor span:nth-child(3) { left: 70%; top: 20%; animation-delay: 2.4s; animation-duration: 9s; }
.hero-decor span:nth-child(4) { left: 85%; top: 55%; animation-delay: 0.8s; animation-duration: 6s; width: 5px; height: 5px; }
.hero-decor span:nth-child(5) { left: 50%; top: 80%; animation-delay: 3s; animation-duration: 7.5s; }
.hero-decor span:nth-child(6) { left: 92%; top: 35%; animation-delay: 1.8s; animation-duration: 8.5s; width: 3px; height: 3px; background: rgba(255,255,255,0.15); }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-30px) scale(1.5); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(46,184,75,0.12);
  border: 1px solid rgba(46,184,75,0.2);
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-light);
  margin-bottom: 30px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: fadeSlideDown 0.8s var(--ease) 0.2s both;
}

.hero-label::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46,184,75,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(46,184,75,0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  animation: fadeSlideUp 0.9s var(--ease) 0.3s both;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
  position: relative;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  opacity: 0.35;
}

.hero .hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 520px;
  animation: fadeSlideUp 0.9s var(--ease) 0.45s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.9s var(--ease) 0.6s both;
}

/* hero compact */
.hero-compact { padding: 160px 0 96px; }
.hero-compact .hero-content { max-width: 640px; }
.hero-compact h1 { font-size: clamp(30px, 4.2vw, 48px); }

/* hero centered */
.hero-center .hero-content {
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
}
.hero-center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-center .hero-actions { justify-content: center; }

/* ────────────────────────────────────────────────────
   ENTRANCE ANIMATIONS
   ──────────────────────────────────────────────────── */

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }

/* ────────────────────────────────────────────────────
   SECTIONS
   ──────────────────────────────────────────────────── */

.section { padding: 112px 0; }
.section-sm { padding: 80px 0; }

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 68px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section-title em {
  font-style: normal;
  color: var(--green);
}

.section-desc {
  font-size: 16.5px;
  color: var(--gray-500);
  line-height: 1.75;
}

/* dark sections */
.section-dark { background: var(--navy-dark); }
.section-dark .section-label { color: var(--green-light); }
.section-dark .section-label::before { background: var(--green-light); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-desc { color: rgba(255,255,255,0.5); }

/* gray sections */
.section-gray { background: var(--off-white); }

/* ────────────────────────────────────────────────────
   BADGE STRIP — compact dark bar
   ──────────────────────────────────────────────────── */

.badge-strip {
  background: var(--navy);
  position: relative;
  z-index: 3;
}

.badge-strip-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 28px;
  position: relative;
  color: var(--white);
  white-space: nowrap;
}

.badge-strip-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 30%;
  height: 40%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.badge-strip-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: rgba(255, 255, 255, 0.7);
}

.badge-strip-item span {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

/* ────────────────────────────────────────────────────
   CARDS
   ──────────────────────────────────────────────────── */

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 44px 34px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: transparent;
}

.card:hover::after { transform: scaleX(1); }

.card-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform var(--transition);
}

.card:hover .card-icon { transform: scale(1.05) rotate(-3deg); }

.card-icon svg {
  width: 28px; height: 28px;
  stroke: var(--green-light);
  fill: none;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.75;
}

.card-center { text-align: center; }
.card-center .card-icon { margin: 0 auto 24px; }

/* Scroll-triggered card animation */
.scroll-card {
  opacity: 0;
  transform: translateY(30px);
}

.scroll-card-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Hover/tap effect on cards */
.scroll-card.scroll-card-visible:hover,
.scroll-card.scroll-card-visible:active {
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

/* dark variant */
.card-dark {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}

.card-dark::after { background: linear-gradient(90deg, var(--green), var(--green-light)); }

.card-dark:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(46,184,75,0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.card-dark h3 { color: var(--white); }
.card-dark p { color: rgba(255,255,255,0.5); }

/* ────────────────────────────────────────────────────
   ¿A ÉXITO? — Premium redesign
   ──────────────────────────────────────────────────── */

.exito-section {
  background: #f8f9fa;
}

.exito-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.exito-highlight {
  position: relative;
  color: var(--green);
}

.exito-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green);
  opacity: 0.3;
  border-radius: 2px;
}

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

.exito-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-left: 4px solid var(--green);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 2px 12px rgba(14, 34, 69, 0.05);
  transition: box-shadow var(--transition), transform var(--transition);
}

.exito-card:hover {
  box-shadow: 0 12px 36px rgba(14, 34, 69, 0.1);
  transform: translateY(-4px);
}

.exito-card-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.exito-card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--green-light);
}

.exito-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.exito-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.75;
}

/* ────────────────────────────────────────────────────
   GRIDS
   ──────────────────────────────────────────────────── */

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

/* ────────────────────────────────────────────────────
   "¿A ÉXITO?" FEATURE ITEMS
   ──────────────────────────────────────────────────── */

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

.exito-item {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid transparent;
  transition: all var(--transition);
}

.exito-item:hover {
  background: var(--white);
  border-color: var(--gray-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.exito-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--green-dim), var(--green-glow));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  transition: transform var(--transition);
}

.exito-item:hover .exito-icon { transform: scale(1.1) rotate(5deg); }

.exito-icon svg {
  width: 28px; height: 28px;
  stroke: var(--green);
  fill: none;
}

.exito-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.exito-item p {
  font-size: 14.5px;
  color: var(--gray-500);
  line-height: 1.75;
}

/* ────────────────────────────────────────────────────
   CTA BANNER
   ──────────────────────────────────────────────────── */

.cta-banner {
  text-align: center;
  padding: 92px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46,184,75,0.06) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-banner .section-title { margin-bottom: 16px; }
.cta-banner .section-desc { margin-bottom: 40px; }

/* ────────────────────────────────────────────────────
   STEPS (cómo trabajamos)
   ──────────────────────────────────────────────────── */

.steps-list {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.steps-list::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 48px; bottom: 48px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--green), var(--green), transparent);
  border-radius: 2px;
}

.step-item {
  display: flex;
  gap: 32px;
  padding: 36px 0;
  position: relative;
}

.step-num {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--green-light);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-navy);
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-item:hover .step-num {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 16px 40px rgba(26,58,107,0.25);
}

.step-body { padding-top: 10px; }

.step-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.step-body p {
  font-size: 15.5px;
  color: var(--gray-500);
  line-height: 1.75;
  max-width: 540px;
}

/* ────────────────────────────────────────────────────
   STATS (casos de éxito)
   ──────────────────────────────────────────────────── */

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

.stat-card {
  text-align: center;
  padding: 48px 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.stat-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(46,184,75,0.2);
  transform: translateY(-4px);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 56px);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* ────────────────────────────────────────────────────
   HORIZONTAL TIMELINE (como-trabajamos)
   ──────────────────────────────────────────────────── */

.timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding: 0 20px;
}

.timeline-track {
  position: absolute;
  top: 26px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--navy);
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.timeline-circle {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(26, 58, 107, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-circle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(26, 58, 107, 0.3);
}

.timeline-circle > svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
}

.timeline-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.timeline-badge svg {
  width: 10px;
  height: 10px;
  stroke: var(--white);
}

.timeline-label {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  max-width: 120px;
}

/* ────────────────────────────────────────────────────
   STATS — redesigned cards (casos de éxito)
   ──────────────────────────────────────────────────── */

.stats-section {
  background: var(--navy);
  padding: 48px 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stats-card {
  background: var(--white);
  border: 1px solid #e0e6f0;
  border-top: 4px solid var(--navy);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.stats-card:hover {
  box-shadow: 0 12px 36px rgba(14, 34, 69, 0.12);
  transform: translateY(-3px);
}

.stats-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}

.stats-number-text {
  font-size: 32px;
}

.stats-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
}

/* ────────────────────────────────────────────────────
   TESTIMONIALS
   ──────────────────────────────────────────────────── */

.testimonials-grid {
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 48px 44px;
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--green-dim);
  position: absolute;
  top: 8px; left: 28px;
  line-height: 1;
  pointer-events: none;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.testimonial-card:hover::after { transform: scaleX(1); }

.testimonial-text {
  font-size: 17px;
  color: var(--gray-700);
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.testimonial-avatar {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  color: var(--green-light);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.testimonial-role {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 3px;
}

/* ────────────────────────────────────────────────────
   CONTACT FORM
   ──────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 18px;
}

.contact-info > p {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.contact-detail:hover { background: var(--gray-50); }

.contact-detail-icon {
  width: 50px; height: 50px;
  background: var(--green-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.contact-detail:hover .contact-detail-icon { transform: scale(1.05); }

.contact-detail-icon svg {
  width: 22px; height: 22px;
  stroke: var(--green);
  fill: none;
}

.contact-detail-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}

.contact-detail-text small {
  display: block;
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 400;
  margin-top: 3px;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--navy), var(--green));
  background-size: 200% 100%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.form-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
}

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-xs);
  font-size: 15px;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  transition: all 0.25s var(--ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238e96a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-dim);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-300);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}

.form-checkbox input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--green);
  flex-shrink: 0;
  appearance: auto;
  -webkit-appearance: auto;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.55;
  font-weight: 400;
  margin-bottom: 0;
  cursor: pointer;
}

.form-checkbox label a {
  color: var(--navy);
  text-decoration: underline;
  transition: color 0.2s;
}

.form-checkbox label a:hover { color: var(--green); }

.form-submit {
  width: 100%;
  padding: 18px;
  margin-top: 10px;
  border-radius: 60px;
  font-size: 16px;
}

.form-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--gray-400);
  margin-top: 16px;
}

/* Form validation & states */
.form-error {
  display: block;
  font-size: 12.5px;
  color: #dc3545;
  margin-top: 6px;
  min-height: 0;
}

.form-input-error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08) !important;
}

.form-error-global {
  text-align: center;
  font-size: 14px;
  color: #dc3545;
  background: rgba(220, 53, 69, 0.06);
  border: 1px solid rgba(220, 53, 69, 0.15);
  border-radius: var(--radius-xs);
  padding: 14px 18px;
  margin-top: 16px;
}

.form-error-global a {
  color: #dc3545;
  font-weight: 600;
  text-decoration: underline;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  animation: scaleIn 0.5s var(--ease-bounce);
}

.form-success-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--white);
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.form-success p {
  font-size: 16px;
  color: var(--gray-500);
}

/* ────────────────────────────────────────────────────
   CONTACT INFO CARDS (contacto.html)
   ──────────────────────────────────────────────────── */

.contact-cards-section {
  background: #f4f6f9;
  padding: 48px 0;
}

.contact-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border: 1px solid #e0e6f0;
  border-top: 4px solid var(--green);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.contact-card:hover {
  box-shadow: 0 12px 36px rgba(14, 34, 69, 0.08);
  transform: translateY(-3px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
}

.contact-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-card-sub {
  font-size: 13px;
  color: #888;
}

/* ────────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────────── */

.footer {
  background: var(--navy-dark);
  padding: 56px 0 44px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,184,75,0.3), transparent);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-brand:hover { opacity: 0.8; }

.footer-brand img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--green); }

/* ────────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────────── */

/* ────────────────────────────────────────────────────
   RESPONSIVE — Tablet (≤ 1024)
   ──────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .grid-3, .exito-grid, .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .exito-cards { grid-template-columns: 1fr 1fr; }

  .split {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px;
  }
  .split-text { order: 0 !important; width: 100%; text-align: center; }
  .split-img { order: 1 !important; width: 100%; }
  .split-img-left .split-img { order: 1 !important; }
  .split-img::after { display: none; }

  .split-text,
  .split-text .section-label,
  .split-text .section-title,
  .split-text .section-desc { text-align: center; }
  .split-text .section-label { display: flex; justify-content: center; }
  .split-text .btn { margin: 0 auto; }
}

/* ────────────────────────────────────────────────────
   RESPONSIVE — Mobile (≤ 768)
   ──────────────────────────────────────────────────── */

@media (max-width: 768px) {

  /* ── Base ── */
  .container { padding: 0 24px; }

  /* ── Nav ── */
  .nav-inner { height: 68px; }
  .nav.scrolled .nav-inner { height: 62px; }
  .nav-toggle { display: block; }
  .nav-menu { display: none; }
  .logo img { height: 34px; }
  .nav.scrolled .logo img { height: 30px; }

  /* ── Hero — full width, centered ── */
  .hero { padding: 116px 0 64px; text-align: center; }
  .hero h1 { font-size: 32px; letter-spacing: -0.03em; }
  .hero .hero-sub { font-size: 16px; line-height: 1.75; max-width: 100%; }
  .hero-label { font-size: 11px; padding: 8px 18px; }
  .hero-compact { padding: 112px 0 56px; }
  .hero-center .hero-content { max-width: 100%; }

  /* All hero buttons full width stacked */
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* ── Sections — generous spacing ── */
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 28px; text-align: center; }
  .section-desc { font-size: 16px; text-align: center; }
  .section-label { justify-content: center; font-size: 11px; }

  /* ── Badge strip — 2×2 on mobile ── */
  .badge-strip-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .badge-strip-item {
    padding: 16px 12px;
    gap: 8px;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .badge-strip-item:not(:last-child)::after { display: none; }

  .badge-strip-item svg { width: 18px; height: 18px; }
  .badge-strip-item span { font-size: 12px; }

  /* ── Éxito cards — stacked on mobile ── */
  .exito-title { font-size: 32px; }

  .exito-cards {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .exito-card {
    padding: 28px 24px;
    text-align: left !important;
  }

  .exito-card h3 { font-size: 18px; }
  .exito-card p { font-size: 15px; }

  /* ── Para quién cards — stacked vertically, full width ── */
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 16px;
    max-width: 100%;
  }
  .grid-3 .card {
    padding: 32px 24px;
    text-align: center;
  }
  .grid-3 .card .card-icon {
    width: 56px; height: 56px;
    margin: 0 auto 18px;
  }
  .grid-3 .card h3 { font-size: 20px; margin-bottom: 10px; }
  .grid-3 .card p { font-size: 15px; line-height: 1.7; }

  /* Other grids — single column */
  .grid-2, .exito-grid, .stats-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
  }

  /* ── Cards (non grid-3) — centered ── */
  .grid-2 .card { padding: 32px 24px; text-align: center; }
  .grid-2 .card .card-icon { margin: 0 auto 20px; }

  /* ── Exito items ── */
  .exito-item { padding: 28px 20px; text-align: center; }
  .exito-icon { width: 52px; height: 52px; margin: 0 auto 16px; }

  /* ── Split sections — stacked vertical, text on top, image below ── */
  .split {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }

  .split-text {
    width: 100% !important;
    order: 0 !important;
    text-align: center !important;
  }

  .split-text * {
    text-align: center !important;
  }

  .split-text .section-label {
    display: flex !important;
    justify-content: center !important;
  }

  .split-text .btn {
    width: 100%;
    margin: 0 auto;
  }

  .split-img {
    width: 100% !important;
    max-width: 100% !important;
    order: 1 !important;
    position: relative !important;
  }

  .split-img .img-frame {
    width: 100% !important;
    aspect-ratio: 16/10 !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-md) !important;
  }

  .split-img::before,
  .split-img::after {
    display: none !important;
  }

  .split-img-left .split-img {
    order: 1 !important;
  }

  /* ── Feature list — stacked, centered ── */
  .feature-list {
    margin: 0 auto;
    align-items: center;
  }

  .feature-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px;
  }

  .feature-item .exito-icon { margin: 0 auto; }
  .feature-item strong { font-size: 16px; text-align: center; }
  .feature-item p { font-size: 15px; line-height: 1.65; text-align: center; }

  /* ── Section label everywhere — force centered ── */
  .section-label {
    display: flex !important;
    justify-content: center !important;
  }

  /* ── Steps ── */
  .steps-list::before { left: 29px; }
  .step-item { gap: 20px; padding: 24px 0; }
  .step-num { width: 60px; height: 60px; font-size: 20px; border-radius: 14px; }
  .step-body h3 { font-size: 18px; }
  .step-body p { font-size: 15px; }

  /* ── Timeline — vertical on mobile ── */
  .timeline {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 0;
  }

  .timeline-track {
    top: 0;
    bottom: 0;
    left: 25px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline-item {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    width: 100%;
  }

  .timeline-circle {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
  }

  .timeline-label {
    margin-top: 0;
    text-align: left !important;
    font-size: 15px;
    max-width: none;
  }

  /* ── Stats (old) ── */
  .stat-card { padding: 32px 20px; text-align: center; }
  .stat-num { font-size: 40px; }
  .stat-label { font-size: 15px; }

  /* ── Stats (new cards) ── */
  .stats-section { padding: 36px 0; }
  .stats-row {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .stats-card { padding: 28px 24px; }
  .stats-number { font-size: 42px; }
  .stats-number-text { font-size: 24px; }
  .stats-label { font-size: 14px; }

  /* ── Testimonials ── */
  .testimonials-grid .grid-2 { grid-template-columns: 1fr; }
  .testimonial-card { padding: 32px 24px; text-align: center; }
  .testimonial-card::before { font-size: 80px; top: 4px; left: 50%; transform: translateX(-50%); }
  .testimonial-text { font-size: 16px; margin-bottom: 24px; }
  .testimonial-author { justify-content: center; }

  /* ── Team — stacked on mobile ── */
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
    max-width: 360px;
    margin: 0 auto;
  }

  /* ── Story — stacked on mobile ── */
  .story-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
    text-align: center;
  }
  .story-mark { left: 50%; transform: translateX(-50%); }
  .story-quote blockquote { font-size: 20px; }
  .story-stats { flex-direction: column; gap: 16px; }
  .story-stat-num { font-size: 34px; }

  /* ── Values — stacked on mobile ── */
  .values-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .values-card { padding: 28px 24px; text-align: center; }

  /* ── Contact info cards — stacked on mobile ── */
  .contact-cards-section { padding: 36px 0; }
  .contact-cards-row {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .contact-card { padding: 24px 20px; }
  .contact-card-title { font-size: 14px; }

  /* ── Contact form ── */
  .form-card { padding: 28px 24px; }
  .form-card-title { font-size: 20px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; padding: 14px 16px; }

  /* ── CTA — centered, button full width ── */
  .cta-banner { padding: 56px 0; text-align: center; }
  .cta-banner .section-title { font-size: 26px; }
  .cta-banner .section-desc { font-size: 16px; }
  .cta-banner .btn { width: 100%; }

  /* ── All buttons — full width ── */
  .btn { padding: 16px 28px; font-size: 16px; width: 100%; justify-content: center; }

  /* ── Footer ── */
  .footer { padding: 40px 0 28px; }
  .footer-row { flex-direction: column; text-align: center; gap: 16px; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 16px; }
  .footer-legal { justify-content: center; flex-wrap: wrap; gap: 12px; }
  .footer-copy { font-size: 13px; }

  /* ── Legal ── */
  .legal { padding: 0 24px; }
  .legal h2 { font-size: 19px; margin: 36px 0 12px; }
  .legal p, .legal ul, .legal ol { font-size: 15px; }

  /* ── Nuclear: force center on everything outside .legal ── */
  .section-header,
  .section-header *,
  .cta-banner,
  .cta-banner *,
  .exito-item,
  .exito-item * {
    text-align: center !important;
  }

  .section-header .section-label,
  .cta-banner .section-label {
    display: flex !important;
    justify-content: center !important;
  }
}

/* ────────────────────────────────────────────────────
   RESPONSIVE — Small mobile (≤ 420)
   ──────────────────────────────────────────────────── */

@media (max-width: 420px) {
  .container { padding: 0 20px; }

  .logo img { height: 30px; }
  .nav.scrolled .logo img { height: 28px; }
  .nav-inner { height: 60px; }
  .nav.scrolled .nav-inner { height: 56px; }
  .nav-menu { top: 60px; }

  .hero { padding: 100px 0 48px; }
  .hero h1 { font-size: 26px; }
  .hero .hero-sub { font-size: 15px; }
  .hero-label { font-size: 10px; padding: 6px 14px; }
  .hero-compact { padding: 96px 0 44px; }

  .section { padding: 48px 0; }
  .section-title { font-size: 23px; }
  .section-desc { font-size: 15px; }

  .grid-3 .card { padding: 28px 20px; }
  .grid-3 .card h3 { font-size: 18px; }
  .grid-3 .card p { font-size: 14px; }

  .split-img .img-frame { aspect-ratio: 4/3; }

  .step-num { width: 48px; height: 48px; font-size: 17px; border-radius: 12px; }
  .steps-list::before { left: 23px; }
  .step-body h3 { font-size: 16px; }
  .step-body p { font-size: 14px; }

  .stat-num { font-size: 34px; }

  .form-card { padding: 24px 18px; }

  .cta-banner { padding: 40px 0; }

  .testimonial-card { padding: 24px 18px; }
  .testimonial-text { font-size: 15px; }

  .footer-brand img { height: 26px; }
}

/* ────────────────────────────────────────────────────
   LEGAL PAGES
   ──────────────────────────────────────────────────── */

.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 28px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 48px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.legal h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
}

.legal p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal ul, .legal ol {
  margin: 12px 0 20px 24px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
}

.legal li { margin-bottom: 6px; }

.legal a {
  color: var(--green);
  text-decoration: underline;
  transition: color 0.2s;
}

.legal a:hover { color: var(--navy); }

.legal strong { color: var(--gray-700); }

.legal-update {
  display: inline-block;
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 32px;
}

/* ────────────────────────────────────────────────────
   PHOTO / IMAGE PLACEHOLDERS
   ──────────────────────────────────────────────────── */

.img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.img-frame:hover img { transform: scale(1.03); }

/* hero with side image */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-img {
  position: relative;
  z-index: 2;
}

.hero-img .img-frame {
  border-radius: 20px;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-xl);
}

/* decorative accent behind image */
.hero-img::before {
  content: '';
  position: absolute;
  top: -16px; right: -16px;
  width: 100%; height: 100%;
  border: 2px solid rgba(46,184,75,0.2);
  border-radius: 24px;
  z-index: -1;
}

/* split section (text + image side by side) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* On desktop: .split-img-left puts image on the left via order */
.split-img-left .split-img { order: -1; }

.split-img {
  position: relative;
}

.split-img .img-frame {
  aspect-ratio: 4/3;
  border-radius: 20px;
}

.split-img::after {
  content: '';
  position: absolute;
  bottom: -12px; left: -12px;
  width: 120px; height: 120px;
  background: var(--green-dim);
  border-radius: 20px;
  z-index: -1;
}

@media (min-width: 1025px) {
  .split-text .section-label { text-align: left; }
  .split-text .section-title { text-align: left; }
}

/* floating trust badges */
.trust-float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  z-index: 3;
  animation: floatBadge 4s ease-in-out infinite;
}

.trust-float svg {
  width: 20px; height: 20px;
  stroke: var(--green);
  fill: none;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* number counter with animated underline */
.counter-highlight {
  display: inline-block;
  position: relative;
}

.counter-highlight::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 3px;
  background: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.counter-highlight.visible::after { transform: scaleX(1); }

/* feature list items (used in split sections) */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-item .exito-icon {
  margin: 0;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.feature-item .exito-icon svg { width: 22px; height: 22px; }

.feature-item strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
}

.feature-item p {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 4px;
  line-height: 1.65;
}

/* parallax-ready wrappers */
.parallax-layer {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ────────────────────────────────────────────────────
   TEAM SECTION (quienes-somos)
   ──────────────────────────────────────────────────── */

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

.team-card {
  text-align: center;
}

.team-photo {
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
  aspect-ratio: 3/4;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.team-card:hover .team-photo img { transform: scale(1.03); }

.team-name {
  font-size: 20px;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 4px;
}

.team-name strong { font-weight: 700; }

.team-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 8px;
}

.team-bio {
  font-size: 13px;
  color: var(--gray-500);
  font-style: italic;
  line-height: 1.6;
}

/* ────────────────────────────────────────────────────
   OUR STORY SECTION (quienes-somos)
   ──────────────────────────────────────────────────── */

.story-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}

.story-quote {
  position: relative;
}

.story-mark {
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--green);
  opacity: 0.15;
  line-height: 1;
  position: absolute;
  top: -24px;
  left: -8px;
  pointer-events: none;
}

.story-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.story-quote cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
}

.story-stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.story-stat {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  text-align: center;
  border: 1px solid var(--gray-100);
}

.story-stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}

.story-stat-text {
  color: var(--green);
}

.story-stat-label {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
}

/* ────────────────────────────────────────────────────
   VALUES SECTION (quienes-somos)
   ──────────────────────────────────────────────────── */

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

.values-card {
  background: var(--white);
  border: 1px solid #e0e6f0;
  border-top: 4px solid var(--green);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 2px 12px rgba(14, 34, 69, 0.04);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.values-card:hover {
  box-shadow: 0 12px 36px rgba(14, 34, 69, 0.08);
  transform: translateY(-4px);
}

.values-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: transform var(--transition);
}

.values-card:hover .values-icon {
  transform: scale(1.08) rotate(-3deg);
}

.values-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
}

.values-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.values-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* ────────────────────────────────────────────────────
   FAQ ACCORDION
   ──────────────────────────────────────────────────── */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover { border-color: var(--gray-200); }

.faq-item.faq-open {
  border-color: var(--green);
  box-shadow: 0 4px 20px rgba(46, 184, 75, 0.08);
}

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: background var(--transition);
}

.faq-header:hover { background: var(--gray-50); }

.faq-open .faq-header { background: rgba(46, 184, 75, 0.04); }

.faq-arrow {
  width: 20px;
  height: 20px;
  stroke: var(--green);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-open .faq-arrow { transform: rotate(180deg); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-body-inner {
  padding: 0 24px 22px;
}

.faq-body-inner p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .faq-header {
    padding: 18px 20px;
    font-size: 15px;
  }
  .faq-body-inner {
    padding: 0 20px 18px;
  }
  .faq-body-inner p { font-size: 14.5px; }
}

/* ────────────────────────────────────────────────────
   WHATSAPP FLOATING BUTTON
   ──────────────────────────────────────────────────── */

.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: waPulse 2.5s ease-in-out infinite;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  animation: none;
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.wa-float::before {
  content: 'Escríbenos por WhatsApp';
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-800);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font);
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wa-float:hover::before {
  opacity: 1;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0.12); }
}

@media (max-width: 768px) {
  .wa-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .wa-float svg { width: 26px; height: 26px; }
  .wa-float::before { display: none; }
}

/* ────────────────────────────────────────────────────
   FOOTER — extended with legal row
   ──────────────────────────────────────────────────── */

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-row + .footer-row {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-legal {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal a:hover { color: rgba(255,255,255,0.6); }
