/* ============================================================
   main.css — Estilos principales ANDESSA
   Versión: 1.0.0
   Estructura:
     1. Tokens / Variables
     2. Reset y base
     3. Topbar
     4. Navbar
     5. Hero
     6. Stats Bar
     7. Secciones comunes
     8. Nosotros (About)
     9. Timeline
    10. Productos
    11. Certificaciones
    12. Plan de Compensación
    13. Misión & Valores
    14. Contacto
    15. CTA Final
    16. Footer
    17. WhatsApp Float
    18. Animaciones Reveal
    19. Responsive (1024px / 768px)
============================================================ */

/* ─────────────────────────────────────────
   1. TOKENS / VARIABLES
───────────────────────────────────────── */
:root {
  --white:      #ffffff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-300:   #cbd5e1;
  --gray-500:   #64748b;
  --gray-700:   #334155;
  --gray-900:   #0f172a;

  --blue-900:   #0d3b6e;
  --blue-700:   #1b6ca8;
  --blue-500:   #2a7fc1;
  --blue-300:   #4fa8dc;
  --blue-100:   #dbeafe;
  --blue-50:    #eff6ff;

  --accent:     #1b6ca8;
  --accent-dk:  #0d3b6e;
  --accent-lt:  #4fa8dc;

  --border:     #e2e8f0;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.09), 0 4px 12px rgba(0,0,0,.05);
  --shadow-xl:  0 24px 60px rgba(0,0,0,.11);
  --r:          10px;
  --r-lg:       16px;
  --r-xl:       22px;
}

/* ─────────────────────────────────────────
   2. RESET Y BASE
───────────────────────────────────────── */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.65;
  overflow-x: hidden;
}

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

::-webkit-scrollbar              { width: 4px; }
::-webkit-scrollbar-track        { background: var(--gray-100); }
::-webkit-scrollbar-thumb        { background: var(--blue-300); border-radius: 2px; }

/* ─────────────────────────────────────────
   3. TOPBAR
───────────────────────────────────────── */
.topbar {
  background:   var(--blue-900);
  color:        rgba(255,255,255,.8);
  font-size:    .75rem;
  font-weight:  500;
  letter-spacing: .04em;
  padding:      8px 5%;
  display:      flex;
  justify-content: space-between;
  align-items:  center;
}
.topbar a      { color: rgba(255,255,255,.7); text-decoration: none; }
.topbar span   { color: var(--blue-300); margin: 0 6px; }

/* ─────────────────────────────────────────
   4. NAVBAR
───────────────────────────────────────── */
#main-nav {
  position:   sticky;
  top:        0;
  z-index:    1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width:  1280px;
  margin:     0 auto;
  display:    flex;
  align-items: center;
  justify-content: space-between;
  padding:    0 5%;
  height:     76px;
}

.nav-brand {
  display:     flex;
  align-items: center;
  gap:         14px;
  text-decoration: none;
}

.brand-logo {
  width:      auto;
  max-width:  155px;
  max-height: 50px;
  display:    block;
  flex-shrink: 0;
}

.nav-links {
  display:     flex;
  align-items: center;
  gap:         4px;
  list-style:  none;
}
.nav-links a {
  font-size:    .82rem;
  font-weight:  600;
  color:        var(--gray-700);
  text-decoration: none;
  padding:      8px 14px;
  border-radius: 8px;
  letter-spacing: .02em;
  transition:   color .18s, background .18s;
}
.nav-links a:hover  { color: var(--accent); background: var(--blue-50); }
.nav-links a.active { color: var(--accent); }

.nav-toggle {
  display:       none;
  width:         42px;
  height:        42px;
  border:        1px solid var(--border);
  border-radius: 10px;
  background:    var(--white);
  color:         var(--blue-900);
  align-items:   center;
  justify-content: center;
  cursor:        pointer;
}
.nav-toggle svg   { width: 20px; height: 20px; }
.nav-toggle:hover { background: var(--gray-50); }

.nav-cta {
  background:  var(--accent) !important;
  color:       var(--white)  !important;
  padding:     10px 22px     !important;
  border-radius: 8px         !important;
  box-shadow:  0 2px 8px rgba(27,108,168,.35);
  transition:  background .2s, box-shadow .2s !important;
}
.nav-cta:hover {
  background:  var(--blue-900) !important;
  box-shadow:  0 4px 16px rgba(27,108,168,.4) !important;
}

/* ─────────────────────────────────────────
   5. HERO
───────────────────────────────────────── */
#hero {
  background:  linear-gradient(160deg, #ffffff 42%, #eff6ff 100%);
  border-bottom: 1px solid var(--border);
  overflow:    hidden;
  position:    relative;
  padding:     0 5px;
}
#hero::before {
  content:  '';
  position: absolute;
  right:    0;
  top:      -180px;
  width:    680px;
  height:   680px;
  background: radial-gradient(circle, rgba(79,168,220,.09) 0%, transparent 70%);
  pointer-events: none;
  z-index:  0;
}

.hero-inner {
  max-width: 1280px;
  margin:    0 auto;
  display:   grid;
  grid-template-columns: 1fr 1fr;
  gap:       0;
  min-height: 580px;
}

/* Hero — lado izquierdo */
.hero-left {
  padding:  80px 60px 80px 5%;
  display:  flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero-left::after {
  content:  '';
  position: absolute;
  right:    0; top: 0; bottom: 0;
  width:    1px;
  background: linear-gradient(180deg, transparent, var(--border) 25%, var(--border) 75%, transparent);
}

.hero-logo {
  width:    min(320px, 72%);
  height:   auto;
  display:  block;
  margin-bottom: 20px;
}

@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0   rgba(27,108,168,.4); }
  50%     { box-shadow: 0 0 0 5px rgba(27,108,168, 0); }
}

.hero-eyebrow {
  display:    inline-flex;
  align-items: center;
  gap:        8px;
  background: var(--blue-50);
  border:     1px solid var(--blue-100);
  color:      var(--accent);
  font-size:  .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding:    5px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
  width:      fit-content;
}
.hero-eyebrow::before {
  content:      '';
  width:        6px;
  height:       6px;
  border-radius: 50%;
  background:   var(--accent);
  flex-shrink:  0;
  animation:    pulse-dot 2.2s ease infinite;
}

.hero-h1 {
  font-family:  'Playfair Display', serif;
  font-size:    clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight:  700;
  line-height:  1.12;
  letter-spacing: -.5px;
  color:        var(--gray-900);
  margin-bottom: 20px;
}
.hero-h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size:   1rem;
  color:       var(--gray-500);
  line-height: 1.75;
  max-width:   440px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  display:    inline-flex;
  align-items: center;
  gap:        8px;
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 100%);
  color:      var(--white);
  font-weight: 700;
  font-size:  .85rem;
  letter-spacing: .03em;
  padding:    13px 28px;
  border-radius: var(--r);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(27,108,168,.45);
  transition: background .2s, box-shadow .2s, transform .15s;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  transform:  translateY(-2px);
  box-shadow: 0 8px 28px rgba(27,108,168,.52);
}

.btn-outline {
  display:    inline-flex;
  align-items: center;
  gap:        8px;
  background: transparent;
  color:      var(--gray-700);
  font-weight: 600;
  font-size:  .85rem;
  padding:    13px 24px;
  border-radius: var(--r);
  text-decoration: none;
  border:     1.5px solid var(--border);
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--blue-300); color: var(--accent); }

/* Hero — lado derecho */
.hero-right {
  background: linear-gradient(145deg, var(--blue-900) 0%, #071d3a 100%);
  display:    flex;
  align-items: stretch;
  position:   relative;
  overflow:   hidden;
}
.hero-right::before {
  content:  '';
  position: absolute;
  top: -120px; left: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(79,168,220,.14) 0%, transparent 65%);
  pointer-events: none;
}
.hero-right::after {
  content:  '';
  position: absolute;
  bottom: -80px; right: -60px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(27,108,168,.2) 0%, transparent 65%);
  pointer-events: none;
}

.hero-stage      { width: 100%; height: 100%; position: relative; z-index: 1; }
.hero-art        { width: 100%; height: 100%; overflow: hidden; }
.hero-art picture { display: block; width: 100%; height: 100%; }
.hero-art img    { display: block; width: 100%; height: 100%; object-fit: cover; }

.hero-card {
  background:  rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border:      1px solid rgba(255,255,255,.75);
  border-radius: var(--r-xl);
  padding:     36px;
  box-shadow:  0 28px 70px rgba(0,0,0,.42), 0 0 0 1px rgba(79,168,220,.1);
  width:       calc(100% - 48px);
  max-width:   380px;
  position:    absolute;
  right:       32px;
  bottom:      32px;
}
.hero-card::before {
  content:  '';
  position: absolute;
  top: 0; left: 32px; right: 32px;
  height:   3px;
  background: linear-gradient(90deg, var(--blue-900), var(--blue-300));
  border-radius: 0 0 3px 3px;
}

.hc-logo-img  { width: 210px; height: auto; display: block; margin-bottom: 6px; }
.hc-tagline   { font-size: .78rem; color: var(--gray-500); margin-bottom: 28px; }
.hc-divider   { height: 1px; background: var(--border); margin-bottom: 24px; }

.hc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:     12px;
  margin-bottom: 24px;
}
.hc-stat {
  text-align:    center;
  padding:       14px 8px;
  background:    var(--blue-50);
  border-radius: var(--r);
  border:        1px solid var(--blue-100);
}
.hc-stat-num {
  font-weight:  800;
  font-size:    1.5rem;
  color:        var(--blue-900);
  letter-spacing: -.5px;
  line-height:  1;
}
.hc-stat-lbl { font-size: .65rem; color: var(--gray-500); margin-top: 3px; font-weight: 500; }

.hc-badges { display: flex; flex-direction: column; gap: 10px; }
.hc-badge {
  display:    flex;
  align-items: center;
  gap:        12px;
  padding:    12px 14px;
  border-radius: var(--r);
  border:     1px solid var(--border);
  background: var(--gray-50);
}
.hcb-icon {
  width:         36px;
  height:        36px;
  border-radius: 8px;
  background:    var(--blue-50);
  border:        1px solid var(--blue-100);
  display:       flex;
  align-items:   center;
  justify-content: center;
  color:         var(--accent);
  flex-shrink:   0;
  font-size:     18px;
  line-height:   1;
}
.hcb-title { font-size: .82rem; font-weight: 700; color: var(--gray-900); }
.hcb-sub   { font-size: .7rem;  color: var(--gray-500); }

/* ─────────────────────────────────────────
   6. STATS BAR
───────────────────────────────────────── */
#statsbar {
  background:    var(--blue-900);
  border-bottom: 4px solid var(--blue-700);
}
.stats-inner {
  max-width: 1280px;
  margin:    0 auto;
  display:   grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding:    36px 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
  transition: background .2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover      { background: rgba(255,255,255,.04); }
.stat-num {
  font-weight:  800;
  font-size:    2.4rem;
  color:        var(--white);
  letter-spacing: -1px;
  line-height:  1;
}
.stat-suf   { color: var(--blue-300); font-size: 1.4rem; }
.stat-label { font-size: .75rem; color: rgba(255,255,255,.6); margin-top: 6px; font-weight: 500; }
.stat-bar   { width: 32px; height: 2px; background: var(--blue-300); margin: 10px auto 0; border-radius: 1px; opacity: .6; }

/* ─────────────────────────────────────────
   7. SECCIONES COMUNES
───────────────────────────────────────── */
section  { padding: 90px 5%; }
.inner   { max-width: 1280px; margin: 0 auto; }

.eyebrow {
  display:   inline-flex;
  align-items: center;
  gap:       8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color:     var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; display: block; width: 20px; height: 2px; background: var(--accent); }

h2.section-title {
  font-family:   'Playfair Display', serif;
  font-size:     clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight:   700;
  line-height:   1.2;
  letter-spacing: -.3px;
  color:         var(--gray-900);
  margin-bottom: 16px;
}

.section-lead { font-size: 1rem; color: var(--gray-500); line-height: 1.75; max-width: 520px; }
.section-rule { height: 1px; background: var(--border); max-width: 1280px; margin: 0 auto; }

/* ─────────────────────────────────────────
   8. NOSOTROS (ABOUT)
───────────────────────────────────────── */
#about {
  background:  var(--gray-50);
  border-top:  3px solid var(--blue-100);
}

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

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:     14px;
  margin-top: 36px;
}

.af-card {
  background:    var(--white);
  border:        1px solid var(--border);
  border-radius: var(--r-lg);
  padding:       22px;
  box-shadow:    var(--shadow-sm);
  transition:    box-shadow .24s, transform .24s, border-color .24s;
}
.af-card:hover {
  box-shadow:    var(--shadow-md), -3px 0 0 var(--accent);
  transform:     translateY(-2px);
  border-color:  var(--blue-100);
}
.af-icon {
  width:         40px;
  height:        40px;
  border-radius: 9px;
  background:    var(--blue-50);
  border:        1px solid var(--blue-100);
  display:       flex;
  align-items:   center;
  justify-content: center;
  color:         var(--accent);
  margin-bottom: 12px;
  font-size:     18px;
  line-height:   1;
}
.af-title { font-size: .88rem; font-weight: 700; color: var(--gray-900); margin-bottom: 5px; }
.af-desc  { font-size: .78rem; color: var(--gray-500); line-height: 1.6; }

/* Panel de pilares */
.about-panel {
  background:    var(--white);
  border:        1px solid var(--blue-100);
  border-radius: var(--r-xl);
  overflow:      hidden;
  box-shadow:    0 16px 48px rgba(13,59,110,.1), 0 2px 8px rgba(0,0,0,.04);
}
.about-panel-visual {
  padding:    20px;
  background: linear-gradient(180deg, #e4f2fb 0%, #c9e8f5 100%);
  border-bottom: 1px solid var(--blue-100);
}
.about-panel-visual img {
  display:       block;
  width:         100%;
  height:        auto;
  border-radius: 20px;
  box-shadow:    0 8px 24px rgba(13,59,110,.14);
}
.ap-header {
  background: linear-gradient(135deg, var(--blue-900) 0%, #0d4d8a 100%);
  color:      white;
  padding:    28px 32px;
  position:   relative;
  overflow:   hidden;
}
.ap-header::after {
  content:  '';
  position: absolute;
  right: -30px; top: -30px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(79,168,220,.28) 0%, transparent 70%);
  pointer-events: none;
}
.ap-header-title { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; }
.ap-header-sub   { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: 4px; }
.ap-item {
  display:    flex;
  align-items: center;
  gap:        16px;
  padding:    18px 32px;
  border-bottom: 1px solid var(--border);
  transition: background .18s;
}
.ap-item:last-child { border-bottom: none; }
.ap-item:hover      { background: var(--gray-50); }
.ap-num {
  width:         32px;
  height:        32px;
  border-radius: 50%;
  background:    var(--blue-900);
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-weight:   800;
  font-size:     .72rem;
  color:         white;
  flex-shrink:   0;
}
.ap-title { font-size: .88rem; font-weight: 700; color: var(--gray-900); }
.ap-sub   { font-size: .73rem; color: var(--gray-500); margin-top: 2px; }
.ap-year {
  margin-left:   auto;
  font-size:     .72rem;
  font-weight:   700;
  color:         var(--accent);
  background:    var(--blue-50);
  padding:       3px 10px;
  border-radius: 50px;
  flex-shrink:   0;
}

/* ─────────────────────────────────────────
   9. TIMELINE
───────────────────────────────────────── */
#timeline { background: var(--white); }

.tl-header {
  display:       flex;
  justify-content: space-between;
  align-items:   flex-end;
  margin-bottom: 56px;
  flex-wrap:     wrap;
  gap:           20px;
}

.tl-grid {
  display:  grid;
  grid-template-columns: repeat(7, 1fr);
  gap:      16px;
  position: relative;
}
.tl-connector {
  position:   absolute;
  top: 28px; left: 28px; right: 28px;
  height:     2px;
  background: linear-gradient(90deg, var(--blue-900), var(--blue-300), var(--blue-900));
  z-index:    0;
}

.tl-item {
  display:    flex;
  flex-direction: column;
  align-items: center;
  position:   relative;
  z-index:    1;
}
.tl-dot {
  width:         18px;
  height:        18px;
  border-radius: 50%;
  background:    var(--white);
  border:        3px solid var(--blue-300);
  margin-bottom: 20px;
  flex-shrink:   0;
  position:      relative;
  z-index:       2;
  transition:    border-color .2s, box-shadow .2s;
}
.tl-item:last-child .tl-dot { border-color: var(--blue-900); background: var(--blue-900); }
.tl-item:hover .tl-dot      { border-color: var(--accent); box-shadow: 0 0 0 4px var(--blue-100); }

.tl-card {
  background:    var(--gray-50);
  border:        1px solid var(--border);
  border-radius: var(--r);
  padding:       18px 14px;
  text-align:    center;
  width:         100%;
  transition:    border-color .2s, box-shadow .2s, transform .2s;
}
.tl-item:hover .tl-card      { border-color: #bfdbfe; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tl-item:last-child .tl-card { background: var(--blue-900); border-color: var(--blue-700); color: white; }

.tl-year { font-weight: 800; font-size: .9rem; color: var(--accent); margin-bottom: 8px; }
.tl-item:last-child .tl-year { color: var(--blue-300); }

.tl-icon {
  width:    22px;
  height:   22px;
  margin:   0 auto 8px;
  display:  flex;
  align-items: center;
  justify-content: center;
  color:    var(--accent);
  font-size: 20px;
  line-height: 1;
}
.tl-item:last-child .tl-icon { color: var(--blue-300); }
.tl-desc { font-size: .7rem; color: var(--gray-500); line-height: 1.55; }
.tl-item:last-child .tl-desc { color: rgba(255,255,255,.7); }

/* ─────────────────────────────────────────
   10. PRODUCTOS
───────────────────────────────────────── */
#productos-info { background: var(--gray-50); }

.prod-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap:     26px;
  align-items: stretch;
}
.prod-panel {
  background: var(--white);
  border:     1px solid var(--border);
  border-radius: var(--r-xl);
  padding:    32px;
  box-shadow: var(--shadow-sm);
  position:   relative;
  overflow:   hidden;
}
.prod-panel::after {
  content:  '';
  position: absolute;
  top: -120px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,168,220,.18) 0%, transparent 68%);
  pointer-events: none;
}
.prod-kicker {
  display:      inline-flex;
  align-items:  center;
  gap:          8px;
  padding:      7px 14px;
  border-radius: 999px;
  background:   var(--blue-50);
  border:       1px solid var(--blue-100);
  color:        var(--accent);
  font-size:    .72rem;
  font-weight:  800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.prod-kicker::before {
  content:      '';
  width:        8px;
  height:       8px;
  border-radius: 50%;
  background:   var(--accent);
  box-shadow:   0 0 0 5px rgba(27,108,168,.12);
}
.prod-panel p { font-size: .95rem; color: var(--gray-500); line-height: 1.75; margin-bottom: 18px; }

.prod-highlight {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap:     14px;
  margin:  24px 0 20px;
}
.prod-highlight-card {
  background: linear-gradient(180deg, #fbfdff 0%, #f2f8fd 100%);
  border:     1px solid var(--blue-100);
  border-radius: 16px;
  padding:    18px;
}
.prod-highlight-label {
  font-size:   .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color:       var(--accent);
  margin-bottom: 8px;
}
.prod-highlight-text { font-size: .86rem; color: var(--gray-700); line-height: 1.65; }

.prod-list {
  list-style: none;
  display:    grid;
  grid-template-columns: 1fr 1fr;
  gap:        12px;
}
.prod-list li {
  display:       flex;
  align-items:   flex-start;
  gap:           10px;
  font-size:     .9rem;
  color:         var(--gray-700);
  padding:       14px 14px 14px 12px;
  background:    var(--gray-50);
  border:        1px solid var(--border);
  border-radius: 14px;
}
.prod-item-icon {
  width:         24px;
  height:        24px;
  border-radius: 8px;
  background:    var(--blue-50);
  border:        1px solid var(--blue-100);
  color:         var(--accent);
  flex-shrink:   0;
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     14px;
  line-height:   1;
}
.prod-list li span:last-child { line-height: 1.55; }

.prod-note-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.prod-note {
  display:      inline-flex;
  align-items:  center;
  gap:          8px;
  padding:      10px 14px;
  border-radius: 999px;
  background:   #f8fbff;
  border:       1px solid var(--blue-100);
  color:        var(--gray-700);
  font-size:    .78rem;
  font-weight:  600;
}
.prod-visual {
  border-radius: var(--r-xl);
  overflow:      hidden;
  box-shadow:    0 20px 48px rgba(13,59,110,.22);
}
.prod-image-frame {
  position:  relative;
  height:    100%;
  min-height: 460px;
}
.prod-image {
  width:        100%;
  height:       100%;
  min-height:   460px;
  object-fit:   cover;
  object-position: center;
}

/* ─────────────────────────────────────────
   11. CERTIFICACIONES
───────────────────────────────────────── */
#certificaciones {
  background:
    radial-gradient(1200px 320px at 10% -8%, rgba(79,168,220,.12) 0%, transparent 58%),
    radial-gradient(900px 260px at 95% 105%, rgba(13,59,110,.07) 0%, transparent 58%),
    var(--white);
}
.cert-intro {
  max-width:   760px;
  font-size:   .95rem;
  color:       var(--gray-500);
  line-height: 1.75;
  margin:      -2px 0 14px;
}
.cert-slider {
  --cert-per-view: 2;
  margin-top:   20px;
  position:     relative;
  overflow:     hidden;
  border:       1px solid var(--blue-100);
  border-radius: 24px;
  background:   linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
  box-shadow:   0 18px 50px rgba(13,59,110,.10);
}
.cert-track {
  display:    flex;
  align-items: stretch;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.cert-slide {
  min-width: calc(100% / var(--cert-per-view));
  padding:   22px;
  display:   flex;
}
.cert-slide-inner {
  background:    var(--white);
  border:        1px solid #d9e9f8;
  border-radius: 18px;
  padding:       20px;
  display:       grid;
  grid-template-columns: 240px 1fr;
  gap:           20px;
  align-items:   center;
  width:         100%;
  min-height:    236px;
  box-shadow:    0 6px 20px rgba(13,59,110,.07);
  transition:    transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cert-slide-inner:hover {
  transform:    translateY(-2px);
  box-shadow:   0 12px 28px rgba(13,59,110,.14);
  border-color: #b8d8f2;
}
.cert-logo-wrap {
  background:    linear-gradient(180deg, #0f4e88, #0a3f70);
  border:        1px solid #135892;
  border-radius: 14px;
  padding:       14px;
  min-height:    144px;
  display:       flex;
  align-items:   center;
  justify-content: center;
}
.cert-logo {
  width:     100%;
  max-width: 170px;
  max-height: 108px;
  height:    auto;
  display:   block;
  object-fit: contain;
  filter:    drop-shadow(0 3px 8px rgba(27,108,168,.15));
}
.cert-cat {
  display:      inline-flex;
  align-items:  center;
  gap:          8px;
  font-size:    .64rem;
  font-weight:  800;
  letter-spacing: .11em;
  text-transform: uppercase;
  color:        var(--blue-900);
  background:   var(--blue-50);
  border:       1px solid var(--blue-100);
  padding:      6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.cert-cat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cert-name { font-size: 1.18rem; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; letter-spacing: -.2px; }
.cert-desc { font-size: .88rem; color: var(--gray-500); line-height: 1.75; min-height: 6.2em; }
.cert-dots { display: flex; justify-content: center; gap: 10px; padding: 12px 0 20px; }
.cert-dot {
  width:         9px;
  height:        9px;
  border-radius: 50%;
  background:    #bfd5ea;
  border:        none;
  cursor:        pointer;
  transition:    all .2s ease;
}
.cert-dot:hover    { background: #8ab8dc; }
.cert-dot.is-active {
  width:         28px;
  border-radius: 999px;
  background:    linear-gradient(90deg, var(--blue-900), var(--blue-300));
}

/* ─────────────────────────────────────────
   12. PLAN DE COMPENSACIÓN
───────────────────────────────────────── */
#plan { background: var(--gray-50); }

.plan-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:     72px;
  align-items: center;
  margin-bottom: 56px;
}
.plan-headline {
  font-family:   'Playfair Display', serif;
  font-size:     clamp(2rem, 4vw, 3rem);
  font-weight:   700;
  line-height:   1.15;
  letter-spacing: -.3px;
  color:         var(--gray-900);
}
.plan-headline strong { color: var(--accent); }
.plan-label {
  display:        inline-block;
  background:     var(--accent);
  color:          white;
  font-size:      .7rem;
  font-weight:    700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding:        5px 14px;
  border-radius:  4px;
  margin-bottom:  16px;
}
.plan-right-text { font-size: .95rem; color: var(--gray-500); line-height: 1.75; }

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

.plan-card {
  background:    var(--white);
  border:        1px solid var(--border);
  border-radius: var(--r-xl);
  padding:       36px 28px;
  box-shadow:    var(--shadow-sm);
  position:      relative;
  overflow:      hidden;
  transition:    box-shadow .25s, transform .25s, border-color .25s;
}
.plan-card:hover         { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--blue-300); }
.plan-card.featured      { border-color: var(--accent); box-shadow: 0 8px 30px rgba(27,108,168,.18); }
.plan-card.featured::before {
  content:  '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height:   4px;
  background: linear-gradient(90deg, var(--blue-900), var(--blue-300));
}
.featured-badge {
  position:      absolute;
  top: 20px; right: 20px;
  background:    var(--blue-50);
  color:         var(--accent);
  font-size:     .62rem;
  font-weight:   800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding:       4px 10px;
  border-radius: 50px;
  border:        1px solid var(--blue-100);
}
.pc-icon {
  width:         52px;
  height:        52px;
  border-radius: 12px;
  background:    var(--blue-50);
  border:        1px solid var(--blue-100);
  display:       flex;
  align-items:   center;
  justify-content: center;
  color:         var(--accent);
  margin-bottom: 20px;
  font-size:     24px;
  line-height:   1;
}
.plan-card.featured .pc-icon { background: var(--blue-900); border-color: var(--blue-700); color: var(--white); }
.pc-title { font-weight: 800; font-size: 1.05rem; color: var(--gray-900); margin-bottom: 10px; }
.pc-desc  { font-size: .84rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 22px; }

.pc-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pc-list li {
  display:    flex;
  align-items: flex-start;
  gap:        10px;
  font-size:  .81rem;
  color:      var(--gray-700);
}
.pc-list li::before {
  content:       '';
  width:         16px;
  height:        16px;
  border-radius: 50%;
  flex-shrink:   0;
  margin-top:    1px;
  background:    var(--blue-50);
  border:        1px solid var(--blue-300);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%231b6ca8' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:   no-repeat;
  background-position: center;
  background-size:     9px;
}

/* ─────────────────────────────────────────
   13. MISIÓN & VALORES
───────────────────────────────────────── */
#mission { background: var(--white); }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px; }

.mv-block {
  border:        1px solid var(--border);
  border-radius: var(--r-xl);
  padding:       44px 40px;
  position:      relative;
  overflow:      hidden;
  transition:    box-shadow .25s, border-color .25s;
  background:    var(--white);
}
.mv-block:hover { box-shadow: var(--shadow-md); border-color: #bfdbfe; }
.mv-block::after {
  content:  '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width:    4px;
  background: linear-gradient(to bottom, var(--blue-900), var(--blue-300));
  border-radius: 0 2px 2px 0;
}
.mv-num      { font-weight: 800; font-size: 4.5rem; color: var(--gray-100); line-height: 1; margin-bottom: 14px; letter-spacing: -4px; }
.mv-eyebrow  { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.mv-h3       { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.35rem; margin-bottom: 14px; color: var(--gray-900); }
.mv-p        { font-size: .88rem; color: var(--gray-500); line-height: 1.78; }

/* Valores */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap:     14px;
  margin-top: 50px;
}
.val-card {
  border:        1px solid var(--border);
  border-radius: var(--r-lg);
  padding:       26px 18px;
  text-align:    center;
  background:    var(--white);
  box-shadow:    var(--shadow-sm);
  transition:    box-shadow .2s, transform .2s, border-color .2s;
}
.val-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--blue-300); }
.val-icon  { height: 24px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 22px; line-height: 1; }
.val-title { font-weight: 700; font-size: .86rem; color: var(--gray-900); margin-bottom: 7px; }
.val-desc  { font-size: .74rem; color: var(--gray-500); line-height: 1.6; }

/* ─────────────────────────────────────────
   14. CONTACTO
───────────────────────────────────────── */
#contacto { background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap:     24px;
  margin-top: 14px;
}
.contact-panel {
  background:    var(--white);
  border:        1px solid var(--blue-100);
  border-radius: var(--r-xl);
  padding:       30px;
  box-shadow:    0 14px 38px rgba(13,59,110,.10);
}
.contact-panel h3 {
  font-family:   'Playfair Display', serif;
  font-size:     1.55rem;
  color:         var(--gray-900);
  line-height:   1.2;
  margin-bottom: 10px;
}
.contact-panel p { color: var(--gray-500); font-size: .92rem; line-height: 1.75; margin-bottom: 22px; }

.contact-wa-head   { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.contact-wa-badge  {
  width:         44px;
  height:        44px;
  border-radius: 12px;
  background:    linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color:         #fff;
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     22px;
  box-shadow:    0 8px 20px rgba(18,140,126,.28);
}
.contact-wa-kicker {
  display:      inline-flex;
  align-items:  center;
  gap:          7px;
  font-size:    .68rem;
  font-weight:  800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color:        var(--accent);
  background:   var(--blue-50);
  border:       1px solid var(--blue-100);
  padding:      6px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.contact-wa-kicker::before { content: '🟢'; font-size: .65rem; }

.contact-wa-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.contact-chip {
  display:      inline-flex;
  align-items:  center;
  gap:          8px;
  padding:      8px 11px;
  border-radius: 999px;
  background:   #f8fbff;
  border:       1px solid var(--blue-100);
  color:        var(--gray-700);
  font-size:    .76rem;
  font-weight:  700;
}
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.contact-list li {
  display:       flex;
  gap:           10px;
  align-items:   flex-start;
  color:         var(--gray-700);
  font-size:     .88rem;
  line-height:   1.65;
  background:    #fbfdff;
  border:        1px solid var(--blue-100);
  border-radius: 12px;
  padding:       10px 12px;
}

/* Formulario */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-field { display: flex; flex-direction: column; gap: 7px; }
.contact-field.full { grid-column: 1 / -1; }
.contact-field label {
  font-size:    .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight:  700;
  color:        var(--gray-500);
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  width:         100%;
  border:        1px solid var(--border);
  border-radius: 12px;
  padding:       12px 14px;
  font-family:   inherit;
  font-size:     .9rem;
  color:         var(--gray-900);
  background:    #fbfdff;
  outline:       none;
  transition:    border-color .2s, box-shadow .2s;
}
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--blue-300);
  box-shadow:   0 0 0 4px rgba(79,168,220,.16);
}
.contact-field textarea { resize: vertical; min-height: 118px; }

.contact-submit {
  grid-column:    1 / -1;
  display:        inline-flex;
  align-items:    center;
  justify-content: center;
  gap:            8px;
  background:     linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
  color:          #fff;
  border:         none;
  border-radius:  12px;
  padding:        14px 18px;
  font-weight:    800;
  font-size:      .88rem;
  letter-spacing: .03em;
  cursor:         pointer;
  box-shadow:     0 8px 22px rgba(13,59,110,.30);
  transition:     transform .15s, box-shadow .2s;
}
.contact-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(13,59,110,.38); }
.contact-note { grid-column: 1 / -1; font-size: .78rem; color: var(--gray-500); }

/* ─────────────────────────────────────────
   15. CTA FINAL
───────────────────────────────────────── */
#cta-final {
  background: var(--blue-900);
  padding:    96px 5%;
  text-align: center;
  position:   relative;
  overflow:   hidden;
}
#cta-final::before {
  content:  '';
  position: absolute;
  inset:    0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
}
.cta-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.cta-badge {
  display:      inline-flex;
  align-items:  center;
  gap:          8px;
  background:   rgba(255,255,255,.1);
  border:       1px solid rgba(255,255,255,.18);
  color:        var(--blue-300);
  font-size:    .72rem;
  font-weight:  700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding:      6px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
}
.cta-h2 {
  font-family:   'Playfair Display', serif;
  font-size:     clamp(2rem, 4.5vw, 3.5rem);
  font-weight:   700;
  color:         var(--white);
  line-height:   1.15;
  margin-bottom: 18px;
  letter-spacing: -.3px;
}
.cta-p       { font-size: 1rem; color: rgba(255,255,255,.65); line-height: 1.75; margin-bottom: 44px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-white {
  display:    inline-flex;
  align-items: center;
  gap:        8px;
  background: var(--white);
  color:      var(--blue-900);
  font-weight: 700;
  font-size:  .88rem;
  padding:    14px 32px;
  border-radius: var(--r);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: transform .18s, box-shadow .18s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.28); }

.btn-white-outline {
  display:    inline-flex;
  align-items: center;
  gap:        8px;
  background: transparent;
  color:      rgba(255,255,255,.8);
  font-weight: 600;
  font-size:  .88rem;
  padding:    14px 28px;
  border-radius: var(--r);
  text-decoration: none;
  border:     1.5px solid rgba(255,255,255,.25);
  transition: border-color .2s, color .2s;
}
.btn-white-outline:hover { border-color: rgba(255,255,255,.5); color: white; }

/* ─────────────────────────────────────────
   16. FOOTER
───────────────────────────────────────── */
footer { background: var(--gray-900); border-top: 1px solid rgba(255,255,255,.06); }

.footer-top {
  max-width: 1280px;
  margin:    0 auto;
  padding:   52px 5% 40px;
  display:   grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap:       48px;
}
.footer-logo { width: 230px; max-width: 100%; height: auto; display: block; margin-bottom: 12px; }
.footer-brand-col .fb-tag { font-size: .8rem; color: rgba(255,255,255,.4); line-height: 1.7; max-width: 260px; }
.footer-col-title { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer-col ul   { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { font-size: .82rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color .18s; }
.footer-col ul a:hover { color: var(--blue-300); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding:    20px 5%;
  max-width:  1280px;
  margin:     0 auto;
  display:    flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap:  wrap;
  gap:        10px;
}
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.3); }

/* ─────────────────────────────────────────
   17. WHATSAPP FLOAT
───────────────────────────────────────── */
.wa-float {
  position:      fixed;
  right:         20px;
  bottom:        20px;
  z-index:       1200;
  width:         58px;
  height:        58px;
  border-radius: 50%;
  background:    #25d366;
  color:         #fff;
  display:       flex;
  align-items:   center;
  justify-content: center;
  text-decoration: none;
  box-shadow:    0 10px 24px rgba(37,211,102,.42);
  transition:    transform .18s, box-shadow .2s;
}
.wa-float:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 30px rgba(37,211,102,.48); }
.wa-float svg  { width: 30px; height: 30px; display: block; }

/* ─────────────────────────────────────────
   18. ANIMACIONES REVEAL (scroll)
───────────────────────────────────────── */
.reveal       { opacity: 0; transform: translateY(22px);   transition: opacity .65s ease, transform .65s ease; }
.reveal-left  { opacity: 0; transform: translateX(-22px);  transition: opacity .65s ease, transform .65s ease; }
.reveal-right { opacity: 0; transform: translateX(22px);   transition: opacity .65s ease, transform .65s ease; }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible { opacity: 1; transform: none; }

/* ─────────────────────────────────────────
   19. RESPONSIVE
───────────────────────────────────────── */

/* ── 1024px ── */
@media (max-width: 1024px) {
  .nav-inner   { height: 72px; }
  .nav-toggle  { display: inline-flex; }
  .nav-links {
    position:   absolute;
    top: 72px; left: 5%; right: 5%;
    display:    flex;
    flex-direction: column;
    align-items: stretch;
    gap:        8px;
    padding:    14px;
    background: var(--white);
    border:     1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    opacity:    0;
    transform:  translateY(-8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  #main-nav.is-open .nav-links { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a   { display: block; padding: 11px 12px; }
  .nav-cta       { text-align: center; }

  .hero-inner    { grid-template-columns: 1fr; }
  .hero-left::after { display: none; }
  .hero-right    { display: none; }
  .about-grid    { grid-template-columns: 1fr; }
  .plan-top      { grid-template-columns: 1fr; gap: 24px; }
  .plan-cards    { grid-template-columns: 1fr 1fr; }

  .tl-grid            { grid-template-columns: 1fr; gap: 14px; }
  .tl-connector       { display: none; }
  .tl-item            { flex-direction: row; gap: 16px; align-items: flex-start; }
  .tl-dot             { margin-bottom: 0; flex-shrink: 0; }
  .tl-card            { text-align: left; }

  .prod-grid          { grid-template-columns: 1fr; }
  .cert-slide-inner   { grid-template-columns: 1fr; }
  .cert-logo-wrap     { min-height: 132px; }
  .valores-grid       { grid-template-columns: repeat(3, 1fr); }
  .mv-grid            { grid-template-columns: 1fr; }
  .contact-grid       { grid-template-columns: 1fr; }
  .footer-top         { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ── 768px ── */
@media (max-width: 768px) {
  .cert-slider { --cert-per-view: 1; }

  .nav-inner       { height: 68px; }
  .nav-links       { top: 68px; }
  .brand-logo      { max-width: 130px; max-height: 42px; }

  .stats-inner     { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(even) { border-right: none; }

  .plan-cards      { grid-template-columns: 1fr; }
  .prod-panel      { padding: 24px; }
  .prod-highlight,
  .prod-list       { grid-template-columns: 1fr; }
  .prod-image      { min-height: 420px; }

  .cert-slide        { padding: 18px; }
  .cert-slide-inner  { padding: 16px; min-height: 0; }
  .cert-name         { font-size: 1.04rem; }
  .cert-desc         { min-height: 0; }

  .contact-form      { grid-template-columns: 1fr; }
  .contact-panel     { padding: 22px; }
  .contact-wa-head   { align-items: flex-start; }
  .contact-wa-badge  { width: 40px; height: 40px; font-size: 20px; }
  .contact-chip      { font-size: .72rem; }

  .wa-float          { width: 54px; height: 54px; right: 14px; bottom: 14px; }
  .wa-float svg      { width: 28px; height: 28px; }

  .about-features    { grid-template-columns: 1fr; }
  .valores-grid      { grid-template-columns: 1fr 1fr; }
  .topbar            { display: none; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 18px 14px;
    padding: 30px 5% 24px;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
  .footer-logo     { width: 170px; margin-bottom: 8px; }
  .footer-brand-col .fb-tag { max-width: none; font-size: .74rem; line-height: 1.5; }
  .footer-col-title  { margin-bottom: 10px; font-size: .68rem; }
  .footer-col ul     { gap: 6px; }
  .footer-col ul a   { font-size: .76rem; line-height: 1.35; }
  .footer-bottom {
    padding:        14px 5% 16px;
    gap:            6px;
    flex-direction: column;
    text-align:     center;
  }
  .footer-bottom p   { font-size: .7rem; line-height: 1.45; }
}
