/* ════════════════════════════════════════════════════════════════════
   CERTI-REDES S.A.S — styles.css
   Sitio web corporativo · certiredes.com
   Paleta extraída pixel a pixel del logo oficial (1024×1024)
   ════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════
   1. VARIABLES — DESIGN TOKENS
   ════════════════════════════════════════════════════════════════════ */
:root {

  /* ══ COLORES PRIMARIOS DEL LOGO ══════════════════════════════════ */
  --navy:            #153F62;
  --navy-dark:       #0E2D4A;
  --navy-light:      #1E5280;
  --navy-xlight:     #2A6496;
  --green:           #8DBE5D;
  --green-dark:      #6A9940;
  --green-light:     #B5D98A;
  --green-pale:      #EEF7E4;

  /* ══ COLORES DE SISTEMA ══════════════════════════════════════════ */
  --white:           #FFFFFF;
  --off-white:       #FAFAFA;
  --gray-apple:      #F5F5F7;
  --gray-light:      #E8E8ED;
  --gray-border:     #D2D2D7;
  --gray-mid:        #6E6E73;
  --gray-dark:       #3A3A3C;
  --alert-red:       #C62828;
  --alert-red-bg:    #FFEBEE;
  --success:         #2E7D32;

  /* ══ GRADIENTES CORPORATIVOS ═════════════════════════════════════ */
  --grad-hero:       linear-gradient(160deg, #0A2138 0%, #0E2D4A 40%, #153F62 100%);
  --grad-cta:        linear-gradient(135deg, #153F62 0%, #1E6B3C 50%, #8DBE5D 100%);
  --grad-text:       linear-gradient(135deg, #153F62 0%, #8DBE5D 100%);
  --grad-footer:     linear-gradient(180deg, #0E2D4A 0%, #0A2138 100%);
  --grad-card-hover: linear-gradient(160deg, #EEF7E4 0%, #FFFFFF 100%);
  --grad-section-green: linear-gradient(135deg, #EEF7E4 0%, #F5F5F7 100%);

  /* ══ TIPOGRAFÍA ══════════════════════════════════════════════════ */
  --font:            'DM Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:    'DM Sans', system-ui, sans-serif;

  /* ══ TAMAÑOS TIPOGRÁFICOS ════════════════════════════════════════ */
  --text-xs:         0.75rem;
  --text-sm:         0.875rem;
  --text-base:       1rem;
  --text-lg:         1.125rem;
  --text-xl:         1.25rem;
  --text-2xl:        1.5rem;
  --text-3xl:        1.875rem;
  --text-4xl:        2.25rem;
  --text-5xl:        3rem;
  --text-6xl:        3.75rem;
  --text-7xl:        4.5rem;
  --text-hero:       clamp(3rem, 8vw, 5.5rem);
  --text-section:    clamp(2rem, 4vw, 3.25rem);

  /* ══ FORMAS Y ESPACIADO ══════════════════════════════════════════ */
  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       18px;
  --radius-xl:       24px;
  --radius-2xl:      32px;
  --radius-pill:     9999px;

  --shadow-sm:       0 1px 8px rgba(21,63,98,0.08);
  --shadow-card:     0 2px 20px rgba(21,63,98,0.10);
  --shadow-hover:    0 12px 48px rgba(21,63,98,0.20);
  --shadow-cta:      0 4px 24px rgba(141,190,93,0.40);
  --shadow-navy:     0 8px 32px rgba(14,45,74,0.30);

  --section-py:      clamp(72px, 10vw, 120px);
  --container:       1200px;
  --container-sm:    900px;
  --gutter:          clamp(16px, 4vw, 32px);
  --navbar-h:        78px;

  --transition:      all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ════════════════════════════════════════════════════════════════════
   2. RESET + BASE
   ════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--gray-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ════════════════════════════════════════════════════════════════════
   3. TIPOGRAFÍA GLOBAL
   ════════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: var(--text-hero); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--text-section); letter-spacing: -0.02em; }
h3 { font-size: var(--text-2xl); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: var(--text-xl); font-weight: 600; }
p  { color: var(--gray-dark); }
strong { color: var(--navy); font-weight: 600; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ════════════════════════════════════════════════════════════════════
   4. LAYOUT BASE
   ════════════════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-sm {
  width: 100%;
  max-width: var(--container-sm);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: var(--section-py); }

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--gray-mid); font-size: var(--text-lg); }

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 16px;
}

/* ════════════════════════════════════════════════════════════════════
   5. NAVBAR
   ════════════════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--gray-light);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-h);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 52px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-menu > li > a,
.nav-menu .dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}
.header.scrolled .nav-menu > li > a,
.header.scrolled .nav-menu .dropdown-toggle {
  color: var(--navy);
}
.nav-menu > li > a:hover,
.nav-menu .dropdown-toggle:hover {
  color: var(--green);
  background: rgba(141, 190, 93, 0.10);
}
.nav-menu > li > a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

/* Dropdown Normatividad */
.dropdown { position: relative; }
.dropdown-toggle .chev {
  width: 12px; height: 12px;
  transition: transform 0.25s ease;
}
.dropdown.open .chev,
.dropdown:hover .chev { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-light);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition-fast);
}
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.4;
}
.dropdown-menu a:hover { background: var(--green-pale); color: var(--navy-dark); }
.dropdown-menu a .pdf-ico {
  flex-shrink: 0; width: 18px; height: 18px; color: var(--alert-red);
}

/* CTA Agendar + WhatsApp en navbar */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-pill) !important;
  transition: var(--transition-fast);
}
.nav-cta:hover {
  background: var(--green-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta);
}
.nav-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.12);
  margin-left: 6px;
  position: relative;
}
.nav-wa svg { width: 22px; height: 22px; fill: #25D366; }
.nav-wa:hover { background: rgba(37, 211, 102, 0.22); transform: scale(1.05); }

/* Hamburger mobile */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.header.scrolled .nav-toggle span { background: var(--navy); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 100vw);
    height: 100dvh;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(var(--navbar-h) + 24px) 24px 32px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a,
  .nav-menu .dropdown-toggle {
    color: var(--white) !important;
    font-size: 1.125rem;
    padding: 16px 18px;
    width: 100%;
    justify-content: flex-start;
  }
  .nav-menu > li > a:hover,
  .nav-menu .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--green) !important;
  }
  .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    background: rgba(0, 0, 0, 0.18);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
    margin-top: 4px;
    max-height: 0;
    overflow: hidden;
    padding: 0 8px;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .dropdown.open .dropdown-menu {
    max-height: 320px;
    padding: 8px;
  }
  .dropdown-menu a { color: var(--white); font-size: var(--text-sm); }
  .dropdown-menu a:hover { background: rgba(141, 190, 93, 0.15); color: var(--green-light); }
  .nav-cta { width: 100%; justify-content: center; margin-top: 12px; }
  .nav-wa {
    width: 100%;
    height: auto;
    border-radius: var(--radius-pill);
    padding: 14px 18px;
    margin-left: 0;
    margin-top: 8px;
    background: #25D366;
    gap: 10px;
  }
  .nav-wa::after {
    content: 'Escribir por WhatsApp';
    color: var(--white);
    font-weight: 600;
  }
  .nav-wa svg { fill: var(--white); }
  .nav-toggle { display: flex; }
}

/* Backdrop al abrir menú mobile */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 33, 56, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-backdrop.show { opacity: 1; visibility: visible; }

/* ════════════════════════════════════════════════════════════════════
   6. BOTONES
   ════════════════════════════════════════════════════════════════════ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  border: 2px solid transparent;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-navy);
}
.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(14, 45, 74, 0.4);
}

.btn-green {
  background: var(--green);
  color: var(--navy);
  box-shadow: var(--shadow-cta);
}
.btn-green:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(106, 153, 64, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--green);
  color: var(--green-light);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-wa {
  background: #25D366;
  color: var(--white);
}
.btn-wa:hover {
  background: #1FB855;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.45);
}

.btn-lg { padding: 20px 40px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* Ripple en botones */
.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(141, 190, 93, 0.40);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
}
@keyframes rippleAnim {
  to { transform: scale(2.5); opacity: 0; }
}

/* ════════════════════════════════════════════════════════════════════
   7. BADGES
   ════════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-onac {
  background: rgba(141, 190, 93, 0.10);
  border: 1.5px solid var(--green);
  color: var(--white);
}
.badge-onac.on-light { color: var(--navy); }
.badge-onac svg { width: 18px; height: 18px; color: var(--green); }

.badge-cat {
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
}

/* ════════════════════════════════════════════════════════════════════
   8. HERO
   ════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--grad-hero);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: calc(var(--navbar-h) + 48px) clamp(48px, 8vw, 72px);
  overflow: hidden;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
}
.hero-logo-big {
  margin: 0 auto 28px;
  max-width: 200px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.35));
}
.hero-logo-big img { width: 100%; height: auto; }
.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.035em;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #B5D98A 60%, #8DBE5D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 40px;
  min-height: 4em;
}
.typer-cursor {
  display: inline-block;
  width: 2px;
  background: var(--green);
  margin-left: 2px;
  animation: cursorBlink 0.8s steps(2) infinite;
}
@keyframes cursorBlink { 50% { opacity: 0; } }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero-stat-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 3vw, 36px);
  padding: 20px clamp(20px, 4vw, 32px);
  margin-top: clamp(56px, 8vw, 80px);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: max-content;
  margin-inline: auto;
}
.hero-stat-bar span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hero-stat-bar strong { color: var(--white); font-weight: 700; }
.hero-stat-bar .dot { color: var(--green); opacity: 0.6; }
@media (max-width: 640px) {
  .hero-stat-bar {
    border-radius: var(--radius-xl);
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
    width: 100%;
    max-width: 100%;
  }
  .hero-stat-bar .dot { display: none; }
}

.hero-mini {
  position: relative;
  background: var(--grad-hero);
  color: var(--white);
  padding-block: calc(var(--navbar-h) + 60px) 60px;
  overflow: hidden;
}
.hero-mini h1 { color: var(--white); font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 12px; }
.hero-mini .breadcrumb {
  display: flex; gap: 8px; font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}
.hero-mini .breadcrumb a:hover { color: var(--green); }
.hero-mini .breadcrumb-sep { opacity: 0.5; }

/* ════════════════════════════════════════════════════════════════════
   9. ALERTA URGENCIA
   ════════════════════════════════════════════════════════════════════ */
.alert-urgent {
  background: var(--alert-red-bg);
  border-left: 4px solid var(--alert-red);
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-block: 60px;
}
.alert-urgent .alert-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--alert-red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.alert-urgent .alert-body { flex: 1 1 320px; }
.alert-urgent h3 { color: var(--alert-red); margin-bottom: 6px; font-size: var(--text-xl); }
.alert-urgent p { color: var(--gray-dark); margin: 0; }
.alert-urgent .alert-cta {
  display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════
   10. CARDS GENÉRICAS
   ════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid var(--gray-light);
  height: 100%;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--gray-mid); font-size: 0.95rem; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: var(--green-pale);
  color: var(--green-dark);
  margin-bottom: 20px;
  font-size: 28px;
}
.card-icon.navy { background: rgba(21, 63, 98, 0.08); color: var(--navy); }

/* ════════════════════════════════════════════════════════════════════
   11. PROCESO 4 PASOS
   ════════════════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.step {
  position: relative;
  text-align: left;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}
.step:hover {
  border-color: var(--green-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem;
  margin-bottom: 20px;
}
.step h3 { color: var(--navy); margin-bottom: 8px; font-size: var(--text-xl); }
.step p { color: var(--gray-mid); font-size: 0.95rem; }
.step-emoji { font-size: 28px; margin-bottom: 8px; display: block; }

/* ════════════════════════════════════════════════════════════════════
   12. COBERTURA
   ════════════════════════════════════════════════════════════════════ */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
  max-width: 960px;
  margin-inline: auto;
}
@media (max-width: 640px) {
  .coverage-grid { grid-template-columns: 1fr; }
}
.coverage-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}
.coverage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.coverage-img { aspect-ratio: 16/10; }
.coverage-body { padding: 20px 24px; }
.coverage-body h3 { margin-bottom: 4px; font-size: var(--text-xl); }
.coverage-body p {
  margin: 0;
  color: var(--gray-mid);
  font-size: var(--text-sm);
  display: flex; align-items: center; gap: 6px;
}

/* ════════════════════════════════════════════════════════════════════
   13. FEATURES (POR QUÉ ELEGIR)
   ════════════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.feature {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}
.feature:hover {
  background: var(--grad-card-hover);
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.feature-ico {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: var(--green-pale);
  color: var(--green-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.feature h3 { font-size: var(--text-lg); margin-bottom: 6px; color: var(--navy); }
.feature p { color: var(--gray-mid); font-size: 0.9375rem; margin: 0; }

/* ════════════════════════════════════════════════════════════════════
   14. NOTICIAS CARDS
   ════════════════════════════════════════════════════════════════════ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.news-img { aspect-ratio: 16/9; }
.news-body { padding: 24px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.news-meta {
  display: flex; gap: 12px;
  font-size: var(--text-xs);
  color: var(--gray-mid);
  align-items: center;
}
.news-card h3 {
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--navy);
  margin: 0;
}
.news-card p { color: var(--gray-mid); font-size: 0.9375rem; margin: 0; flex: 1; }
.news-card .read-more {
  color: var(--green-dark);
  font-weight: 600;
  font-size: var(--text-sm);
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 4px;
}
.news-card .read-more:hover { color: var(--navy); gap: 8px; }

/* ════════════════════════════════════════════════════════════════════
   15. FAQ ACORDEÓN
   ════════════════════════════════════════════════════════════════════ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item.active {
  border-color: var(--green);
  box-shadow: var(--shadow-card);
}
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.25s ease;
}
.faq-q:hover { background: var(--green-pale); }
.faq-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: transform 0.35s ease, background 0.25s ease, color 0.25s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--green);
  color: var(--white);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-a-inner {
  padding: 0 24px 24px;
  color: var(--gray-dark);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════════════
   16. ESTADÍSTICAS
   ════════════════════════════════════════════════════════════════════ */
.stats-section {
  background: var(--grad-hero);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.stats-section .container { position: relative; z-index: 2; }
.stats-section h2 { color: var(--white); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  text-align: center;
  margin-bottom: 64px;
}
.stat {
  padding: 20px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testi {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.testi-quote {
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 20px;
  line-height: 1.7;
}
.testi-author {
  display: flex; align-items: center; gap: 14px;
}
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: var(--navy-light);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--green);
  font-weight: 700;
}
.testi-info strong { display: block; color: var(--white); font-size: 0.95rem; }
.testi-info span { color: rgba(255, 255, 255, 0.65); font-size: var(--text-sm); }

/* ════════════════════════════════════════════════════════════════════
   17. CTA FINAL
   ════════════════════════════════════════════════════════════════════ */
.cta-final {
  background: var(--grad-cta);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final h2 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
}
.cta-final p {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--text-lg);
  margin-bottom: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cta-final .btn-row {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.cta-final .wa-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px;
  color: var(--white);
  font-size: var(--text-sm);
}
.cta-final .wa-link strong { color: var(--white); }

/* ════════════════════════════════════════════════════════════════════
   18. PLACEHOLDERS DE IMAGEN (+ versiones <img> reales)
   ════════════════════════════════════════════════════════════════════ */
.img-placeholder {
  border: 2px dashed var(--gray-border);
  border-radius: var(--radius-lg);
  background: var(--gray-apple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-size: var(--text-sm);
  font-weight: 500;
  width: 100%;
  text-align: center;
  padding: 24px;
}
.img-placeholder.featured {
  background: var(--green-pale);
  border-color: var(--green);
  color: var(--green-dark);
  font-weight: 600;
}

/* Aplica los mismos aspect-ratios a imágenes reales que usan estas clases */
img.coverage-img,
img.news-img,
img.article-img,
img.service-img,
img.map-placeholder {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
  border: none;
  background: var(--gray-apple);
  padding: 0;
}
img.coverage-img { aspect-ratio: 16/10; }
img.news-img    { aspect-ratio: 16/9; }
img.service-img { aspect-ratio: 4/3; border-radius: var(--radius-xl); }
img.map-placeholder { aspect-ratio: 4/3; border-radius: var(--radius-md); }

/* Iframe de Google Maps embebido */
.map-wrap {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(141, 190, 93, 0.3);
  background: var(--gray-apple);
  margin-top: 24px;
}
.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
}
.map-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: var(--text-sm);
  color: var(--green-light);
  font-weight: 500;
}
.map-action:hover { color: var(--green); }
.map-action svg { width: 16px; height: 16px; }
img.article-img { height: 100%; min-height: 260px; }
@media (max-width: 720px) {
  img.article-img { min-height: 0; aspect-ratio: 16/9; }
}
img.about-img-real {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}
img.cert-img-real {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* ════════════════════════════════════════════════════════════════════
   19. FORMULARIOS — FLOAT LABEL
   ════════════════════════════════════════════════════════════════════ */
.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
}
.field label {
  position: absolute;
  top: 16px;
  left: 0;
  font-size: 1rem;
  color: var(--gray-mid);
  pointer-events: none;
  transition: transform 0.22s ease, color 0.22s ease, font-size 0.22s ease;
  transform-origin: left top;
  background: var(--white);
  padding: 0 4px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--gray-light);
  padding: 16px 0 10px;
  font-size: 1rem;
  color: var(--gray-dark);
  background: transparent;
  outline: none;
  transition: border-color 0.25s ease;
  font-family: inherit;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 120px; padding-top: 18px; }
.field select { appearance: none; cursor: pointer; }
.field::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.field.focused::after,
.field input:focus ~ ::after { transform: scaleX(1); }
.field.focused label,
.field.has-value label {
  transform: translateY(-22px) scale(0.78);
  color: var(--navy);
  font-weight: 500;
}
.field.invalid::after { background: var(--alert-red); transform: scaleX(1); }
.field.valid::after   { background: var(--green); transform: scaleX(1); }
.field .field-icon {
  position: absolute;
  right: 4px; top: 14px;
  width: 22px; height: 22px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.field.valid .field-icon.check   { opacity: 1; color: var(--green); }
.field.invalid .field-icon.cross { opacity: 1; color: var(--alert-red); }
.field-error {
  font-size: var(--text-xs);
  color: var(--alert-red);
  margin-top: 6px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.field.invalid .field-error { max-height: 40px; }

.field select.has-arrow,
.field-select-wrap { position: relative; }
.field-select-wrap::after {
  content: '';
  position: absolute;
  right: 8px; top: 22px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--gray-mid);
  border-bottom: 2px solid var(--gray-mid);
  transform: rotate(45deg);
  pointer-events: none;
}

.checkbox-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--gray-mid);
  line-height: 1.6;
  cursor: pointer;
}
.checkbox-field input[type="checkbox"] {
  flex-shrink: 0;
  appearance: none;
  width: 22px; height: 22px;
  border: 2px solid var(--gray-border);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  position: relative;
  margin-top: 1px;
  transition: var(--transition-fast);
}
.checkbox-field input[type="checkbox"]:checked {
  background: var(--green);
  border-color: var(--green);
}
.checkbox-field input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}
.checkbox-field a { color: var(--navy); text-decoration: underline; }

/* Submit + estados */
.form-submit {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.btn-submit {
  background: var(--navy);
  color: var(--white);
  padding: 18px 32px;
  border-radius: var(--radius-lg);
  width: 100%;
  font-weight: 600;
  font-size: 1.0625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-submit:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-navy); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.form-status {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: var(--text-sm);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.form-status.show { display: inline-flex; }
.form-status.success { background: rgba(46, 125, 50, 0.10); color: var(--success); }
.form-status.error   { background: var(--alert-red-bg); color: var(--alert-red); }

.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════════════
   20. WHATSAPP FLOTANTE
   ════════════════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.50);
  z-index: 9998;
  transition: var(--transition);
  animation: waPulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.65);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}
.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: var(--navy-dark);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.50); }
  50%      { box-shadow: 0 4px 36px rgba(37, 211, 102, 0.80); }
}
@media (max-width: 640px) {
  .whatsapp-float { bottom: 20px; right: 20px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
  .whatsapp-tooltip { display: none; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 100px;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-navy);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy-dark); transform: translateY(-3px); }
.back-to-top svg { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .back-to-top { bottom: 20px; right: 84px; width: 44px; height: 44px; }
}

/* ════════════════════════════════════════════════════════════════════
   21. FOOTER
   ════════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--grad-footer);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: clamp(56px, 8vw, 80px) 0 48px;
}
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-main { grid-template-columns: 1fr; } }

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.footer-logo {
  filter: drop-shadow(0 0 16px rgba(141, 190, 93, 0.25));
  background: rgba(255, 255, 255, 0.96);
  display: inline-block;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.footer-logo img { height: 60px; width: auto; display: block; }
.footer-tag {
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
  font-size: 1.0625rem;
}
.footer-onac {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: var(--transition-fast);
}
.footer-socials a:hover { background: var(--green); color: var(--navy-dark); transform: translateY(-2px); }
.footer-socials svg { width: 18px; height: 18px; }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: rgba(255, 255, 255, 0.85); font-size: 0.9375rem; }
.footer-nav a:hover { color: var(--green); padding-left: 4px; }

.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 0.9375rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255, 255, 255, 0.85); }
.footer-contact li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--green); margin-top: 2px; }
.footer-contact a:hover { color: var(--green); }
.footer-contact .wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366;
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-top: 6px;
  align-self: flex-start;
}
.footer-contact .wa-btn svg { color: var(--white); }
.footer-contact .wa-btn:hover { background: #1FB855; transform: translateY(-1px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 24px 0 28px;
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.60);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.80); }
.footer-bottom a:hover { color: var(--green); }
.footer-bottom .sep { margin-inline: 10px; opacity: 0.5; }

.footer-accent-bar {
  height: 4px;
  background: var(--grad-cta);
}

.dev-credit {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}
.dev-credit strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════
   22. PÁGINAS ESPECÍFICAS — Layouts
   ════════════════════════════════════════════════════════════════════ */

/* Agendamiento + Contacto — split layout */
.split-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 0;
  align-items: stretch;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
}
@media (max-width: 900px) { .split-layout { grid-template-columns: 1fr; } }

.split-info {
  background: var(--navy-dark);
  color: var(--white);
  padding: clamp(32px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.split-info h2 { color: var(--white); margin-bottom: 16px; font-size: clamp(1.5rem, 3vw, 2rem); }
.split-info p { color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; }
.split-info .info-list {
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 28px;
}
.split-info .info-list li {
  display: flex; align-items: flex-start; gap: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.split-info .info-list svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--green);
  margin-top: 2px;
}
.split-info .info-list strong { color: var(--white); display: block; margin-bottom: 2px; }
.split-info .map-placeholder {
  aspect-ratio: 4/3;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(141, 190, 93, 0.5);
  color: var(--green-light);
}

.split-form {
  padding: clamp(32px, 5vw, 56px);
  background: var(--white);
}
.split-form h2 { margin-bottom: 8px; }
.split-form .form-intro {
  color: var(--gray-mid);
  margin-bottom: 32px;
}

/* PQRS selector */
.pqrs-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .pqrs-selector { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pqrs-selector { grid-template-columns: 1fr; } }

/* Badge tipo seleccionado en el formulario */
.pqrs-selected {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--green-pale);
  border: 1.5px solid var(--green);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  font-size: 0.9375rem;
  color: var(--navy);
}
.pqrs-selected.show { display: inline-flex; }
.pqrs-selected svg { width: 22px; height: 22px; color: var(--green-dark); flex-shrink: 0; }
.pqrs-selected strong { color: var(--navy); font-weight: 700; }
.pqrs-selected .change-link {
  margin-left: auto;
  color: var(--navy);
  text-decoration: underline;
  font-size: var(--text-sm);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.pqrs-selected .change-link:hover { color: var(--green-dark); }

/* Captcha field */
.captcha-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  background: var(--gray-apple);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-light);
  margin-top: 8px;
}
.captcha-row .field { flex: 1; margin: 0; }
.captcha-row .field label { background: var(--gray-apple); }
.captcha-q {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.125rem;
  white-space: nowrap;
}
.captcha-hint {
  font-size: var(--text-xs);
  color: var(--gray-mid);
  display: flex;
  align-items: center;
  gap: 6px;
}
.captcha-hint svg { width: 14px; height: 14px; }

/* Honeypot anti-spam (invisible) */
.hp-trap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.pqrs-type {
  padding: 28px 24px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-light);
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.pqrs-type:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.pqrs-type.active {
  border-color: var(--navy);
  background: var(--green-pale);
}
.pqrs-type .pqrs-emoji { font-size: 32px; }
.pqrs-type h3 { color: var(--navy); margin: 0; font-size: var(--text-lg); }
.pqrs-type p { font-size: var(--text-sm); color: var(--gray-mid); margin: 0; line-height: 1.5; }

.radicado-box {
  display: none;
  text-align: center;
  padding: 24px;
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  background: var(--green-pale);
  margin-top: 24px;
}
.radicado-box.show { display: block; }
.radicado-box small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-mid);
  font-weight: 600;
  margin-bottom: 8px;
}
.radicado-num {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}

/* Noticias layout */
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.news-layout > * { min-width: 0; }
@media (max-width: 900px) { .news-layout { grid-template-columns: 1fr; } }

.news-layout .news-main {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
}
.news-layout .article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  min-width: 0;
}
.news-layout .article-card > * { min-width: 0; }
@media (max-width: 720px) { .news-layout .article-card { grid-template-columns: 1fr; } }
.news-layout .article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.news-layout .article-img {
  height: 100%;
  min-height: 260px;
  border-radius: 0;
  border: none;
  border-right: 2px dashed var(--gray-border);
}
@media (max-width: 720px) {
  .news-layout .article-img {
    min-height: 0;
    aspect-ratio: 16/9;
    border-right: none;
    border-bottom: 2px dashed var(--gray-border);
  }
}
.news-layout .article-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.news-layout .article-body h3 { font-size: 1.25rem; color: var(--navy); line-height: 1.35; margin: 0; word-wrap: break-word; }
.news-layout .article-body p { color: var(--gray-mid); font-size: 0.9375rem; flex: 1; }

aside.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--navbar-h) + 16px);
  align-self: start;
}
aside.news-sidebar .sb-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}
aside.news-sidebar .sb-card.cta {
  background: var(--grad-cta);
  color: var(--white);
  border: none;
}
aside.news-sidebar .sb-card.cta h4 { color: var(--white); margin-bottom: 8px; }
aside.news-sidebar .sb-card.cta p { color: rgba(255, 255, 255, 0.92); font-size: var(--text-sm); margin-bottom: 16px; }
aside.news-sidebar h4 { margin-bottom: 14px; color: var(--navy); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
aside.news-sidebar ul { display: flex; flex-direction: column; gap: 8px; }
aside.news-sidebar ul a {
  font-size: var(--text-sm);
  color: var(--navy);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}
aside.news-sidebar ul a:hover { color: var(--green-dark); }
aside.news-sidebar ul a .count {
  color: var(--gray-mid);
  background: var(--gray-apple);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
}
aside.news-sidebar .sb-card.wa {
  background: #25D366;
  color: var(--white);
  text-align: center;
}
aside.news-sidebar .sb-card.wa h4 { color: var(--white); }
aside.news-sidebar .sb-card.wa p { color: rgba(255, 255, 255, 0.92); font-size: var(--text-sm); }

.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--navy);
  z-index: 99999;
  transition: width 0.1s ease;
}

/* Normativa cards (servicios + quienes-somos) */
.norm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.norm-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
  display: flex; flex-direction: column; gap: 14px;
}
.norm-card:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.norm-card .norm-ico {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: rgba(198, 40, 40, 0.08);
  color: var(--alert-red);
  display: inline-flex; align-items: center; justify-content: center;
}
.norm-card h3 { font-size: 1.125rem; color: var(--navy); margin: 0; }
.norm-card p { color: var(--gray-mid); font-size: 0.9375rem; margin: 0; flex: 1; }
.norm-card a {
  color: var(--green-dark);
  font-weight: 600;
  font-size: var(--text-sm);
  display: inline-flex; align-items: center; gap: 6px;
}
.norm-card a:hover { color: var(--navy); }

/* Servicio individual block */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: clamp(40px, 6vw, 64px) 0;
  border-bottom: 1px solid var(--gray-light);
}
@media (max-width: 820px) { .service-block { grid-template-columns: 1fr; } }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.service-block .service-img { aspect-ratio: 4/3; }
.service-block h2 { margin-bottom: 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.service-block p { color: var(--gray-mid); margin-bottom: 14px; }
.service-block ul {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 24px;
}
.service-block ul li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--gray-dark);
  font-size: 0.9375rem;
}
.service-block ul li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23153F62'%3E%3Cpath d='M6.5 10.5L4 8l-1 1 3.5 3.5L13 6 12 5z'/%3E%3C/svg%3E") center/14px no-repeat;
  margin-top: 3px;
}

/* Quienes somos — secciones */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid h2 { margin-bottom: 16px; }
.about-grid p { color: var(--gray-mid); margin-bottom: 14px; }

.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Video card "lite" — sin iframe pesado, abre YouTube al hacer clic */
.video-card {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: var(--navy-dark);
  cursor: pointer;
  text-decoration: none;
  isolation: isolate;
}
.video-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.4s ease;
}
.video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(14,45,74,0.55) 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
}
.video-card:hover img { transform: scale(1.04); filter: brightness(1.05); }

.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: clamp(72px, 10vw, 96px);
  height: clamp(72px, 10vw, 96px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, background 0.3s ease;
}
.video-play-btn::after {
  content: '';
  display: block;
  width: 0; height: 0;
  border-left: 24px solid var(--alert-red);
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  margin-left: 6px;
}
.video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--white);
}

.video-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 20px 24px;
  color: var(--white);
}
.video-meta strong {
  display: block;
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.video-meta small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.video-meta small::before {
  content: '▶';
  color: var(--alert-red);
  font-size: 14px;
}

/* ════════════════════════════════════════════════════════════════════
   23. ANIMATIONS / REVEAL UTILITIES
   ════════════════════════════════════════════════════════════════════ */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.96); }
.reveal-up.in,
.reveal-left.in,
.reveal-right.in,
.reveal-scale.in {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   23b. UTILITIES DE GRID OVERRIDE
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .features-grid[style*="repeat(2"] { grid-template-columns: 1fr !important; }
}

/* ════════════════════════════════════════════════════════════════════
   24. BACKGROUNDS DE SECCIÓN UTILITARIOS
   ════════════════════════════════════════════════════════════════════ */
.bg-gray    { background: var(--gray-apple); }
.bg-green   { background: var(--green-pale); }
.bg-grad    { background: var(--grad-section-green); }
.bg-white   { background: var(--white); }

/* ════════════════════════════════════════════════════════════════════
   25. RESPONSIVE TYPE TWEAKS
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  body { font-size: 0.9375rem; }
  .hero-cta-row .btn { width: 100%; }
  .alert-urgent .alert-cta .btn { width: 100%; }
}
