/* ============================================================
   HOSPITAL SAN MARCOS — SISTEMA DE DISEÑO COMPARTIDO
   "Te queremos bien, te queremos sano."
   Paleta anclada en el logo institucional (azules + slate)
   con un acento cálido para humanizar la experiencia.
============================================================ */

:root {
  /* --- Azules del logo --- */
  --azul-900: #14242F;   /* navy slate más oscuro */
  --azul-800: #1E3243;   /* texto del logo */
  --azul-700: #2A4A60;
  --azul-600: #3F6686;   /* azul medio (primario) */
  --azul-500: #5A87A8;
  --azul-400: #6EAACD;   /* celeste del logo */
  --azul-300: #A5C7D9;   /* azul claro del logo */
  --azul-200: #C9DEEA;
  --azul-100: #E6F0F6;   /* tinte muy suave */

  /* --- Acentos cálidos --- */
  --verde:      #2E9C7E;  /* verde salud (laboratorio / sano) */
  --verde-dark: #1F7C62;
  --verde-soft: #E4F4EF;
  --coral:      #1683C4;  /* acento azul del logo para CTA */
  --coral-dark: #0F6699;
  --coral-soft: #E2F1FB;
  --amarillo:   #F4B740;

  /* --- Neutros --- */
  --gris-bg:    #F4F8FB;
  --gris-mid:   #E1E9F0;
  --gris-texto: #51606E;
  --gris-suave: #7C8A96;
  --negro:      #14242F;
  --blanco:     #FFFFFF;

  /* --- Sistema --- */
  --rojo:       #D64545;
  --whatsapp:   #25D366;
  --radio:      12px;
  --radio-lg:   18px;
  --sombra:     0 6px 24px rgba(20,36,47,.10);
  --sombra-sm:  0 2px 10px rgba(20,36,47,.07);
  --sombra-lg:  0 18px 50px rgba(20,36,47,.18);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   BOTONES
============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  border: none; transition: all .2s ease; line-height: 1;
  font-family: inherit;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,131,196,.32); }
.btn-secondary { background: var(--azul-600); color: #fff; }
.btn-secondary:hover { background: var(--azul-700); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--azul-600); border: 2px solid var(--azul-300); }
.btn-outline:hover { background: var(--azul-100); border-color: var(--azul-600); }
.btn-white { background: #fff; color: var(--azul-700); }
.btn-white:hover { background: var(--gris-bg); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1eb858; transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 15.5px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   BARRA DE EMERGENCIAS
============================================================ */
.emergency-bar {
  background: linear-gradient(90deg, var(--azul-800), var(--azul-700));
  color: #fff; text-align: center;
  padding: 9px 16px; font-size: 13px; font-weight: 500;
}
.emergency-bar strong { font-weight: 700; }
.emergency-bar a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.emergency-bar .sep { opacity: .4; margin: 0 8px; }

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gris-mid);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(20,36,47,.05);
}
.navbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 24px; display: flex; align-items: center;
  justify-content: space-between; height: 74px; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 46px; width: auto; }
.logo-fallback { line-height: 1.15; }
.logo-fallback strong { display: block; font-size: 16px; font-weight: 800; color: var(--azul-800); letter-spacing: -.2px; }
.logo-fallback span { font-size: 11px; color: var(--gris-suave); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--gris-texto); transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--azul-600); }
.nav-links a.active { color: var(--azul-700); font-weight: 700; }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -26px; left: 0; right: 0;
  height: 3px; background: var(--coral); border-radius: 3px;
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 26px; line-height: 1; color: var(--azul-700); padding: 4px 6px; }
.nav-toggle::before { content: "\2630"; }  /* ☰ */
.navbar:has(.mobile-menu.open) .nav-toggle::before { content: "\2715"; }  /* ✕ al abrir */

/* Menú móvil */
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  background: #fff; border-bottom: 1px solid var(--gris-mid);
  padding: 12px 24px 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 11px 8px; font-size: 15px; font-weight: 600; color: var(--azul-800); border-bottom: 1px solid var(--gris-bg); }
.mobile-menu .btn { margin-top: 12px; }

/* ============================================================
   CONTENEDORES Y SECCIONES
============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }
.section-sm { padding: 48px 24px; }
.bg-soft { background: var(--gris-bg); }
.bg-azul { background: var(--azul-800); color: #fff; }
.bg-blue-tint { background: var(--azul-100); }

.section-header { text-align: center; margin-bottom: 48px; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-header.left { text-align: left; margin-left: 0; }
.eyebrow {
  display: inline-block; background: var(--verde-soft); color: var(--verde-dark);
  border-radius: 30px; padding: 6px 16px; font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px;
}
.eyebrow.coral { background: var(--coral-soft); color: var(--coral-dark); }
.eyebrow.azul { background: var(--azul-100); color: var(--azul-600); }
.section-header h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--azul-800); letter-spacing: -.5px; line-height: 1.18; }
.section-header p { font-size: 16px; color: var(--gris-texto); margin-top: 14px; }

/* ============================================================
   HERO INTERIOR (páginas internas)
============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--azul-800) 0%, var(--azul-600) 100%);
  color: #fff; padding: 60px 24px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.page-hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.12; letter-spacing: -.6px; max-width: 760px; }
.page-hero p { margin-top: 16px; font-size: 16.5px; color: rgba(255,255,255,.85); max-width: 620px; line-height: 1.7; }
.page-hero .hero-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   TARJETAS GENÉRICAS
============================================================ */
.card {
  background: #fff; border: 1px solid var(--gris-mid);
  border-radius: var(--radio); padding: 26px 24px; box-shadow: var(--sombra-sm);
  transition: all .25s ease;
}
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--sombra); border-color: var(--azul-300); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ============================================================
   TARJETAS DE SERVICIO / ESPECIALIDAD
============================================================ */
.service-card {
  border-radius: var(--radio); border: 1px solid var(--gris-mid);
  padding: 28px 22px; background: #fff; box-shadow: var(--sombra-sm);
  transition: all .25s ease; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--sombra); border-color: var(--azul-300); }
.service-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--azul-100); display: flex; align-items: center;
  justify-content: center; font-size: 28px; margin-bottom: 16px;
}
.service-icon.verde { background: var(--verde-soft); }
.service-icon.coral { background: var(--coral-soft); }
.service-card h3, .service-card h4 { font-size: 17px; font-weight: 700; color: var(--azul-800); margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--gris-texto); margin: 0 0 14px; flex-grow: 1; }
.service-card .link { font-size: 13.5px; color: var(--coral-dark); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.service-card .link:hover { gap: 8px; }

/* ============================================================
   STATS / CIFRAS
============================================================ */
.stats-bar { background: var(--azul-100); border-top: 1px solid var(--gris-mid); border-bottom: 1px solid var(--gris-mid); }
.stats-inner { max-width: var(--maxw); margin: 0 auto; padding: 34px 24px; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; text-align: center; }
.stat-item { padding: 0 16px; border-right: 1px solid var(--azul-200); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 36px; font-weight: 800; color: var(--azul-600); letter-spacing: -1px; }
.stat-label { font-size: 13px; color: var(--gris-texto); margin-top: 4px; }

/* ============================================================
   MÉDICOS
============================================================ */
.doctor-card { background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra-sm); border: 1px solid var(--gris-mid); transition: all .25s ease; }
.doctor-card:hover { transform: translateY(-5px); box-shadow: var(--sombra); }
.doctor-photo {
  height: 200px; background: linear-gradient(135deg, var(--azul-400), var(--azul-600));
  display: flex; align-items: center; justify-content: center; font-size: 76px;
}
.doctor-info { padding: 20px 18px; }
.doctor-info h4 { font-size: 16px; font-weight: 700; color: var(--azul-800); }
.doctor-info .specialty { font-size: 13px; color: var(--coral-dark); font-weight: 700; margin: 4px 0 8px; }
.doctor-info .schedule { font-size: 12.5px; color: var(--gris-texto); display: flex; align-items: center; gap: 6px; }
.doctor-info .btn { margin-top: 14px; width: 100%; justify-content: center; }

/* ============================================================
   FORMULARIOS
============================================================ */
.form-card { background: #fff; border-radius: var(--radio-lg); padding: 32px 28px; box-shadow: var(--sombra-lg); }
.form-card h3 { font-size: 20px; font-weight: 800; color: var(--azul-800); margin-bottom: 6px; }
.form-card .sub { font-size: 13.5px; color: var(--gris-texto); margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 600; color: var(--azul-700); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gris-mid);
  border-radius: 9px; font-size: 14.5px; color: var(--negro);
  background: var(--gris-bg); outline: none; font-family: inherit; transition: all .2s;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--azul-400); background: #fff; box-shadow: 0 0 0 3px rgba(110,170,205,.18); }
.form-hint { text-align: center; margin-top: 14px; font-size: 13px; color: var(--gris-texto); }
.form-hint a { color: var(--verde-dark); font-weight: 700; }

/* ============================================================
   LISTA DE CHEQUEO / FEATURES
============================================================ */
.feature-list { display: flex; flex-direction: column; gap: 16px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-item .fi-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; background: var(--azul-100); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.feature-item .fi-icon.verde { background: var(--verde-soft); }
.feature-item div strong { display: block; font-size: 15px; font-weight: 700; color: var(--azul-800); margin-bottom: 2px; }
.feature-item div span { font-size: 13.5px; color: var(--gris-texto); }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 14.5px; color: var(--gris-texto); }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--verde); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ============================================================
   TARJETAS DE CONFIANZA
============================================================ */
.trust-card { background: var(--gris-bg); border: 1px solid var(--gris-mid); border-radius: var(--radio); padding: 26px 24px; }
.trust-card .t-icon { font-size: 34px; margin-bottom: 14px; }
.trust-card h4 { font-size: 16px; font-weight: 700; color: var(--azul-800); margin-bottom: 8px; }
.trust-card p { font-size: 14px; color: var(--gris-texto); }

/* ============================================================
   TESTIMONIOS
============================================================ */
.testimonial-card { background: #fff; border: 1px solid var(--gris-mid); border-radius: var(--radio); padding: 26px 24px; box-shadow: var(--sombra-sm); }
.testimonial-card.on-blue { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.stars { color: var(--amarillo); font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { font-size: 14.5px; color: var(--gris-texto); line-height: 1.7; font-style: italic; }
.testimonial-card.on-blue p { color: rgba(255,255,255,.9); }
.testimonial-card .author { margin-top: 16px; font-size: 13px; color: var(--gris-suave); }
.testimonial-card .author strong { display: block; color: var(--azul-800); font-style: normal; }
.testimonial-card.on-blue .author { color: rgba(255,255,255,.6); }
.testimonial-card.on-blue .author strong { color: #fff; }

/* ============================================================
   ACENTO / BLOQUE CTA
============================================================ */
.cta-band { background: linear-gradient(135deg, var(--azul-800), var(--azul-600)); padding: 70px 24px; text-align: center; color: #fff; }
.cta-band h2 { font-size: clamp(24px,3vw,34px); font-weight: 800; letter-spacing: -.5px; }
.cta-band p { font-size: 16px; color: rgba(255,255,255,.85); margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Banda con acento verde (lab) */
.band-verde { background: linear-gradient(135deg, var(--verde-dark), var(--verde)); color: #fff; padding: 70px 24px; }
.band-verde .band-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.band-verde h2 { font-size: clamp(24px,3vw,34px); font-weight: 800; }
.band-verde p { color: rgba(255,255,255,.88); margin-top: 12px; line-height: 1.7; }

/* ============================================================
   ACORDEÓN (FAQ)
============================================================ */
.accordion { max-width: 800px; margin: 0 auto; }
.acc-item { border: 1px solid var(--gris-mid); border-radius: var(--radio); margin-bottom: 12px; overflow: hidden; background: #fff; }
.acc-head { width: 100%; text-align: left; padding: 18px 22px; font-size: 15.5px; font-weight: 600; color: var(--azul-800); background: #fff; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-family: inherit; }
.acc-head:hover { background: var(--gris-bg); }
.acc-head .acc-ico { color: var(--coral); font-size: 22px; transition: transform .2s; flex-shrink: 0; }
.acc-item.open .acc-ico { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; padding: 0 22px; }
.acc-item.open .acc-body { max-height: 400px; padding: 0 22px 20px; }
.acc-body p { font-size: 14.5px; color: var(--gris-texto); line-height: 1.7; }

/* ============================================================
   BLOG
============================================================ */
.blog-card { background: #fff; border: 1px solid var(--gris-mid); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra-sm); transition: all .25s ease; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--sombra); }
.blog-thumb { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 60px; background: linear-gradient(135deg, var(--azul-300), var(--azul-500)); }
.blog-body { padding: 22px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--verde-dark); background: var(--verde-soft); padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; align-self: flex-start; }
.blog-body h3 { font-size: 17px; font-weight: 700; color: var(--azul-800); line-height: 1.3; margin-bottom: 8px; }
.blog-body p { font-size: 13.5px; color: var(--gris-texto); flex-grow: 1; }
.blog-meta { margin-top: 14px; font-size: 12.5px; color: var(--gris-suave); display: flex; gap: 12px; }

/* ============================================================
   TABLAS DE PRECIOS / EXÁMENES
============================================================ */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra-sm); }
.price-table th { background: var(--azul-700); color: #fff; padding: 14px 18px; text-align: left; font-size: 14px; font-weight: 600; }
.price-table td { padding: 13px 18px; border-bottom: 1px solid var(--gris-mid); font-size: 14px; color: var(--gris-texto); }
.price-table tr:nth-child(even) td { background: var(--gris-bg); }
.price-table td:first-child { font-weight: 600; color: var(--azul-800); }
.price-table .precio { color: var(--verde-dark); font-weight: 700; }

/* ============================================================
   BADGES / PILLS
============================================================ */
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--azul-100); color: var(--azul-700); border-radius: 30px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; }
.pill.verde { background: var(--verde-soft); color: var(--verde-dark); }
.pill.coral { background: var(--coral-soft); color: var(--coral-dark); }
.pill.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   ALERTAS / AVISOS
============================================================ */
.notice { border-radius: var(--radio); padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; line-height: 1.6; }
.notice .n-ico { font-size: 22px; flex-shrink: 0; }
.notice-red { background: #FDECEC; border-left: 4px solid var(--rojo); color: #8a2b2b; }
.notice-verde { background: var(--verde-soft); border-left: 4px solid var(--verde); color: var(--verde-dark); }
.notice-azul { background: var(--azul-100); border-left: 4px solid var(--azul-400); color: var(--azul-700); }

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
============================================================ */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; box-shadow: 0 8px 24px rgba(37,211,102,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ============================================================
   FOOTER
============================================================ */
footer { background: var(--azul-900); color: rgba(255,255,255,.72); padding: 56px 24px 26px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo img { height: 44px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; margin-top: 14px; max-width: 320px; }
.footer-slogan { font-style: italic; color: var(--azul-300); font-weight: 600; margin-top: 12px; font-size: 14px; }
.footer-contact { margin-top: 16px; font-size: 13.5px; }
.footer-contact div { margin-bottom: 9px; display: flex; align-items: center; gap: 9px; }
footer h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
footer ul li { margin-bottom: 10px; font-size: 13.5px; }
footer ul li a { color: rgba(255,255,255,.65); transition: color .2s; }
footer ul li a:hover { color: #fff; }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,.55); }
.social-links { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 17px; transition: background .2s; }
.social-link:hover { background: var(--azul-600); }

/* ============================================================
   ÍCONOS VACÍOS (tras retirar emojis) — se ocultan para mantener
   las tarjetas limpias y bien alineadas.
============================================================ */
[class*="icon"]:empty { display: none; }

/* ============================================================
   UTILIDADES
============================================================ */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.center-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.lead { font-size: 17px; line-height: 1.8; color: var(--gris-texto); }
.prose p { font-size: 15.5px; line-height: 1.85; color: var(--gris-texto); margin-bottom: 18px; }
.prose h3 { font-size: 21px; font-weight: 700; color: var(--azul-800); margin: 32px 0 14px; }
.prose ul { padding-left: 4px; margin-bottom: 18px; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15px; color: var(--gris-texto); }
.prose ul li::before { content: '•'; position: absolute; left: 8px; color: var(--coral); font-weight: 700; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .band-verde .band-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--azul-200); padding: 14px 0; }
  .stat-item:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section { padding: 52px 24px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
}

/* ============ CONVENIOS Y ALIANZAS ============ */
.alianzas-section { background: var(--gris-bg); overflow: hidden; }
.marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: alianzas-scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-chip {
  flex: 0 0 auto;
  width: 210px;
  height: 120px;
  margin-right: 28px;
  background: #fff;
  border: 1px solid var(--azul-100);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(16, 96, 128, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.logo-chip:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(16, 96, 128, .16); }
.logo-chip img { max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes alianzas-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.alianza-cta {
  text-align: center;
  max-width: 640px;
  margin: 48px auto 0;
  background: #fff;
  border: 1px solid var(--azul-100);
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: 0 8px 24px rgba(16, 96, 128, .08);
}
.alianza-cta h3 { margin: 0 0 10px; color: var(--azul-700); }
.alianza-cta p { margin: 0 0 22px; color: var(--gris-text, #51606E); }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}
@media (max-width: 640px) {
  .logo-chip { width: 160px; height: 96px; margin-right: 18px; padding: 18px; }
}

/* ============ POLÍTICA DE CALIDAD (laboratorio) ============ */
.calidad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.calidad-logo { max-width: 230px; height: auto; display: block; margin-bottom: 22px; }
.calidad-text h2 { margin-top: 6px; }
.calidad-version {
  font-size: .85rem;
  color: #7C8A97;
  margin-top: 18px;
  font-style: italic;
}
.calidad-video video {
  width: 100%;
  display: block;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 14px 34px rgba(16, 96, 128, .18);
}
@media (max-width: 860px) {
  .calidad-grid { grid-template-columns: 1fr; gap: 30px; }
  .calidad-logo { margin-left: auto; margin-right: auto; }
}

/* ============ TEMA LABORATORIO (verde del logo + pasteles) ============ */
.lab-theme {
  --verde:      #A7C44B;  /* verde EXACTO del logo SM */
  --verde-dark: #5C751B;  /* verde oscuro para texto/contraste */
  --verde-soft: #EFF3DD;  /* tinte lima suave */
}
.lab-theme .page-hero {
  background: linear-gradient(135deg, #56791A 0%, #88B033 55%, #A7C44B 100%);
}
.lab-theme .band-verde {
  background: linear-gradient(135deg, #41611A, #7C9C2A);
}
/* Logo del laboratorio en el hero (blanco, sin fondo) */
.lab-hero-logo { display: inline-block; margin-bottom: 22px; }
.lab-hero-logo img { display: block; height: 74px; width: auto; }
/* Pill "Certificado ISO" legible sobre el hero verde */
.lab-theme .page-hero .pill.ghost {
  background: #fff; color: var(--verde-dark);
  border-color: rgba(255,255,255,.7); font-weight: 700;
}

/* Acreditaciones */
.acred-section { background: #EDEFF2; }
.acred-grid {
  display: flex; flex-wrap: wrap; gap: 28px;
  justify-content: center; align-items: stretch;
  margin-top: 8px;
}
.acred-card {
  background: #fff; border-radius: 18px; padding: 26px 32px;
  box-shadow: 0 8px 24px rgba(60,72,90,.12);
  display: flex; align-items: center; justify-content: center;
  flex: 0 1 auto;
}
.acred-card img { max-height: 91px; max-width: 238px; width: auto; height: auto; object-fit: contain; display: block; }
@media (max-width: 640px) { .acred-card { padding: 20px; } .acred-card img { max-width: 168px; max-height: 70px; } }

/* Wordmark "SM for kids" */
.smkids-present {
  text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--azul-700); margin-bottom: 8px;
}
.smkids-wordmark {
  text-align: center; font-weight: 900; letter-spacing: -1px; line-height: 1;
  font-size: clamp(30px, 5vw, 46px); margin-bottom: 22px;
}
.smkids-wordmark .sm  { color: #A7C44B; }
.smkids-wordmark .c1 { color: #E5388A; }
.smkids-wordmark .c2 { color: #00A9E0; }
.smkids-wordmark .c3 { color: #F4B740; }
.smkids-wordmark .c4 { color: #7E57C2; }

/* ============ TEMA SM IMÁGENES (colores del logo: periwinkle + celeste + cian) ============ */
.img-theme {
  --coral:      #5C76BE;  /* periwinkle "sm" del logo (acento/CTA) */
  --coral-dark: #41549A;
  --coral-soft: #E7ECF8;
}
.img-theme .page-hero {
  background: linear-gradient(135deg, #3C4E94 0%, #6078C0 55%, #8FC0D8 100%);
}
.img-theme .eyebrow.azul { background: #E7ECF8; color: #41549A; }
.img-theme .eyebrow { background: #E2F1F6; color: #2E7C93; }
.img-theme .service-icon        { background: #E7ECF8; }  /* periwinkle */
.img-theme .service-icon.verde  { background: #E2F1F6; }  /* cian/celeste */
.img-theme .service-icon.coral  { background: #DCEAF7; }  /* celeste */
.img-theme .notice-verde { background: #E2F1F6; border-left-color: #6FC3D6; color: #2E7C93; }

/* Logo de SM Imágenes en el hero */
.img-hero-logo { margin-bottom: 20px; }
.img-hero-logo img { display: block; height: 58px; width: auto; }
