/* ============================================================
   APEXMED INTERNATIONAL — Sistema de diseño
   Estilo corporativo, sobrio y profesional
   Paleta: violeta institucional + turquesa de acento
   ============================================================ */

:root {
  /* Marca */
  --azul-profundo: #0a2a5c;   /* titulares y secciones oscuras */
  --azul: #0b62d6;            /* azul institucional (primario), del logotipo */
  --azul-claro: #2f9bfd;
  --cian: #40affe;            /* acento (subrayados), azul claro del logotipo */
  --verde: #0d9488;           /* turquesa sobrio (acentos finos) */
  --verde-claro: #14b8a6;
  --menta: #e7f1fe;           /* fondo tenue de etiquetas */
  --prod-fondo: #dfdfdf;      /* gris de los renders de empaque (img/productos/) */
  --portada-fondo: #011f46;   /* azul del borde derecho de img/portada-inicio.jpg */

  --blanco: #ffffff;
  --gris-50: #f6f9fc;
  --gris-100: #eaf0f7;
  --gris-200: #dde6f0;
  --gris-300: #c8d4e3;
  --gris-400: #8d9db4;
  --gris-600: #52627c;
  --gris-800: #24344f;
  --texto: #263449;

  /* Gradientes (sobrios) */
  --grad-hero: linear-gradient(160deg, #04142e 0%, #0a3a7a 52%, #0b62d6 100%);
  --grad-accent: linear-gradient(135deg, #0b62d6 0%, #0a3f95 100%);
  --grad-suave: linear-gradient(135deg, #eef5fe 0%, #eef6f5 100%);

  /* Sombras discretas */
  --sombra-sm: 0 1px 3px rgba(10, 42, 92, 0.07), 0 1px 2px rgba(10, 42, 92, 0.05);
  --sombra: 0 6px 20px rgba(10, 42, 92, 0.09);
  --sombra-lg: 0 18px 44px rgba(10, 42, 92, 0.15);

  /* Tipografía (sobria y profesional) */
  --fuente: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fuente-titulo: "Lora", "Georgia", "Times New Roman", serif;

  --radio: 14px;
  --radio-sm: 10px;
  --contenedor: 1200px;
  --nav-alto: 78px;
}

/* ============================================================ Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Base tipográfica: 17px de raíz (en vez de los 16px del navegador) para que
   todo lo definido en `rem` suba de forma proporcional. El interlineado es
   ajustado (1.58) para que los bloques de texto se lean compactos. */
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--fuente);
  color: var(--texto);
  background: var(--blanco);
  font-size: 1rem;
  line-height: 1.58;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
p { line-height: 1.6; }
/* El `strong` dentro de párrafos sobre fondo oscuro (hero, page-hero, footer)
   se refuerza en blanco para que el dato destacado no quede apagado. */
.hero p strong, .page-hero p strong, .footer p strong, .cta-final p strong { color: #fff; font-weight: 700; }
.encabezado p strong { color: var(--azul-profundo); font-weight: 700; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* Títulos y cifras (incluye los de las tarjetas con ícono) con tipografía seria */
h1, h2, h3, h4,
.banda-stats .num, .paso .n, .num {
  font-family: var(--fuente-titulo);
  letter-spacing: -0.2px;
}
.contenedor { width: 100%; max-width: var(--contenedor); margin: 0 auto; padding: 0 26px; }
section { position: relative; }

/* ============================================================ Preloader */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: #04142e;
  display: grid; place-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.oculto { opacity: 0; visibility: hidden; }
.loader-mol { width: 62px; height: 62px; position: relative; animation: girar 2s linear infinite; }
.loader-mol span { position: absolute; inset: 0; border: 3px solid transparent; border-radius: 50%; }
.loader-mol span:nth-child(1) { border-top-color: #2f9bfd; }
.loader-mol span:nth-child(2) { border-right-color: #14b8a6; animation: girar 1.4s linear infinite reverse; }
.loader-mol span:nth-child(3) { border-bottom-color: #40affe; inset: 11px; }
.loader-txt { margin-top: 22px; color: #b9b3d8; letter-spacing: 4px; font-size: 12.5px; text-transform: uppercase; text-align: center; font-weight: 600; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ============================================================ Navbar */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-alto); z-index: 1000;
  display: flex; align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease, border-color 0.35s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--sombra-sm);
  border-bottom-color: var(--gris-200);
  height: 66px;
}
.nav .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: -0.3px; color: #fff; transition: color 0.35s ease; }
.nav.scrolled .logo { color: var(--azul-profundo); }
.logo-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--grad-accent); border-radius: 11px;
  box-shadow: 0 6px 16px rgba(11, 98, 214, 0.3); flex-shrink: 0;
}
.logo-icon svg { width: 23px; height: 23px; }
.logo-img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 3px 6px rgba(10, 42, 92, 0.18)); }
.logo span b { color: #40affe; font-weight: 800; }
.nav.scrolled .logo span b { color: var(--azul); }
.logo small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; color: rgba(255,255,255,0.55); text-transform: uppercase; margin-top: -2px; }
.nav.scrolled .logo small { color: var(--gris-400); }

.menu { display: flex; align-items: center; gap: 2px; }
.menu a {
  position: relative; padding: 9px 15px; font-size: 15.5px; font-weight: 600;
  color: rgba(255, 255, 255, 0.86); border-radius: 8px;
  transition: color 0.25s ease;
}
.nav.scrolled .menu a { color: var(--gris-600); }
.menu a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px;
  height: 2px; background: var(--verde-claro); transform: scaleX(0);
  transform-origin: left; transition: transform 0.28s ease;
}
.menu a:hover { color: #fff; }
.nav.scrolled .menu a:hover { color: var(--azul); }
.menu a:hover::after, .menu a.activo::after { transform: scaleX(1); }
.menu a.activo { color: #fff; }
.nav.scrolled .menu a.activo { color: var(--azul); }
.menu a.destacado {
  background: var(--azul); color: #fff; margin-left: 10px; padding: 10px 20px;
  border-radius: 8px; box-shadow: 0 6px 16px rgba(11, 98, 214, 0.28);
}
.menu a.destacado::after { display: none; }
.menu a.destacado:hover { background: var(--azul-claro); color: #fff; }
/* El botón Contacto mantiene la letra siempre blanca (aun con scroll o activo) */
.nav.scrolled .menu a.destacado,
.nav.scrolled .menu a.destacado.activo,
.menu a.destacado.activo { color: #fff; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 2.5px; background: #fff; border-radius: 3px; transition: 0.3s ease; }
.nav.scrolled .burger span { background: var(--azul-profundo); }
.burger.abierto span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.abierto span:nth-child(2) { opacity: 0; }
.burger.abierto span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================ Botones */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; font-family: inherit; font-size: 15.5px; font-weight: 700;
  border-radius: var(--radio-sm); border: 1px solid transparent; cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primario { background: var(--azul); color: #fff; box-shadow: 0 8px 20px rgba(11, 98, 214, 0.26); }
.btn-primario:hover { background: var(--azul-claro); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11, 98, 214, 0.34); }
.btn-blanco { background: #fff; color: var(--azul); box-shadow: var(--sombra); }
.btn-blanco:hover { transform: translateY(-2px); box-shadow: var(--sombra-lg); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255,255,255,0.7); }
.btn-ghost { background: var(--menta); color: var(--azul); border-color: var(--gris-200); }
.btn-ghost:hover { background: #e5e8fa; transform: translateY(-2px); }

/* ============================================================ Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--grad-hero); position: relative;
  padding: calc(var(--nav-alto) + 50px) 0 80px; overflow: hidden;
}
/* Malla sutil de fondo */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.25), transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(20, 184, 166, 0.14), transparent 42%);
  pointer-events: none;
}
/* ---------- Portada institucional sobre fotografía (index.html) ----------
   La foto (img/portada-inicio.jpg) ocupa todo el hero y el texto se apoya a la
   derecha, sobre un degradado violeta que va de casi transparente a opaco para
   que la fotografía siga leyéndose a la izquierda. */
.hero-portada {
  min-height: min(90vh, 780px);
  /* La foto se escala por ALTURA (`auto 100%`) anclada arriba a la izquierda, NO con
     `cover`: el gorro del operario está pegado al borde superior de la imagen, así que
     cualquier recorte vertical le cortaba la cabeza en pantallas anchas. Lo que sobra a
     la derecha lo rellena `--portada-fondo`, que es el mismo azul del borde derecho de
     la fotografía, de modo que la unión no se nota bajo el degradado. */
  background: var(--portada-fondo) url("../img/portada-inicio.jpg") left top / auto 100% no-repeat;
  padding: calc(var(--nav-alto) + 40px) 0 60px;
}
/* Pantallas grandes: más alto de hero = fotografía más grande, para que no quede una
   banda de color demasiado ancha a la derecha del operario. */
@media (min-width: 1600px) {
  .hero-portada { min-height: min(92vh, 900px); }
}
@media (min-width: 2100px) {
  .hero-portada { min-height: min(94vh, 1040px); }
}
.hero-portada::before {
  background-image: linear-gradient(
    100deg,
    rgba(4, 20, 46, 0.18) 0%,
    rgba(4, 20, 46, 0.45) 30%,
    rgba(4, 31, 70, 0.88) 52%,
    rgba(4, 31, 70, 0.97) 100%
  );
}
/* Velo superior: la barra de navegación es transparente y el logo caía sobre la
   zona clara de la fotografía. */
.hero-portada::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 190px; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 6, 30, 0.55) 0%, rgba(10, 6, 30, 0) 100%);
  pointer-events: none;
}
.hero-portada .contenedor { position: relative; z-index: 2; }
.hero-panel { max-width: 560px; margin-left: auto; }
.hero-marca { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.hero-logo {
  width: 96px; height: 96px; flex-shrink: 0; object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(10, 6, 30, 0.45));
}
.hero-portada h1 {
  font-size: clamp(2.1rem, 3.8vw, 3.05rem); line-height: 1.12;
  font-weight: 800; color: #fff; letter-spacing: -1px; margin-bottom: 0;
}
.hero-portada h1 span { font-weight: 500; color: rgba(255, 255, 255, 0.94); }
.hero-linea {
  display: block; width: 128px; height: 2px; margin-bottom: 24px;
  background: var(--verde-claro); border-radius: 2px;
}
.hero-portada p {
  font-size: 1.08rem; line-height: 1.65; color: rgba(255, 255, 255, 0.86);
  max-width: 520px; margin-bottom: 34px;
}
.hero-portada p strong { color: #fff; font-weight: 600; }

/* Sello inferior con las certificaciones */
.hero-sello {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 15px 26px;
  background: rgba(10, 6, 30, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12.5px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase;
}
.hero-sello i { width: 4px; height: 4px; border-radius: 50%; background: var(--verde-claro); }

/* Botón claro sobre fondo oscuro */
.btn-claro {
  background: rgba(255, 255, 255, 0.1); color: #fff;
  border-color: rgba(255, 255, 255, 0.34); backdrop-filter: blur(6px);
}
.btn-claro:hover { background: rgba(255, 255, 255, 0.19); border-color: rgba(255, 255, 255, 0.55); }

@media (max-width: 960px) {
  /* En vertical la foto queda detrás del texto, así que el velo sube de opacidad.
     Aquí sí conviene `cover` (la foto llena el bloque), pero anclada arriba para no
     recortar la cabeza del operario. */
  .hero-portada {
    background-position: 62% top; background-size: cover;
    text-align: left; min-height: 0;
  }
  .hero-portada::before {
    background-image: linear-gradient(
      170deg, rgba(4, 20, 46, 0.62) 0%, rgba(4, 31, 70, 0.93) 55%, rgba(4, 31, 70, 0.97) 100%
    );
  }
  .hero-panel { max-width: 100%; margin-left: 0; }
  .hero-marca { gap: 16px; }
  .hero-logo { width: 74px; height: 74px; }
}
@media (max-width: 560px) {
  .hero-marca { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-logo { width: 64px; height: 64px; }
  .hero-sello { gap: 11px; font-size: 11px; letter-spacing: 1.6px; padding: 12px 18px; }
  .hero-portada .btn { width: 100%; justify-content: center; }
}

/* ============================================================ Secciones */
.seccion { padding: 88px 0; }
.seccion-alt { background: var(--gris-50); }
/* Evita que la barra fija tape el inicio de las secciones ancladas */
section[id], [id="form-fv"] { scroll-margin-top: 92px; }
.encabezado { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.etiqueta {
  display: inline-block; padding: 6px 15px; background: var(--menta); color: var(--azul);
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  border-radius: 6px; margin-bottom: 18px;
}
.encabezado h2 { font-size: clamp(1.8rem, 3.2vw, 2.35rem); font-weight: 800; color: var(--azul-profundo); letter-spacing: -0.8px; line-height: 1.2; margin-bottom: 14px; }
.encabezado p { color: var(--gris-600); font-size: 1.05rem; line-height: 1.6; }

/* Encabezado de página interna */
.page-hero { padding: calc(var(--nav-alto) + 78px) 0 82px; background: var(--grad-hero); position: relative; overflow: hidden; text-align: center; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 78% 25%, rgba(124, 58, 237, 0.22), transparent 45%);
  pointer-events: none;
}
.page-hero .contenedor { position: relative; z-index: 2; }
.page-hero .miga { color: #b7aee2; font-size: 14px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.3px; }
.page-hero .miga a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(2.05rem, 4.1vw, 2.9rem); font-weight: 800; color: #fff; letter-spacing: -0.9px; margin-bottom: 16px; }
.page-hero p { color: rgba(255, 255, 255, 0.8); font-size: 1.08rem; line-height: 1.6; max-width: 640px; margin: 0 auto; }

/* ============================================================ Grids / Tarjetas */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.tarjeta {
  background: #fff; border: 1px solid var(--gris-200); border-radius: var(--radio);
  padding: 32px 28px; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.tarjeta:hover { transform: translateY(-5px); box-shadow: var(--sombra-lg); border-color: var(--gris-300); }
.tarjeta .ico-caja {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: var(--menta); margin-bottom: 22px; transition: background 0.3s ease;
}
.tarjeta:hover .ico-caja { background: var(--azul); }
.tarjeta .ico-caja svg { width: 28px; height: 28px; color: var(--azul); transition: color 0.3s ease; }
.tarjeta:hover .ico-caja svg { color: #fff; }
.tarjeta h3 { font-size: 1.18rem; font-weight: 700; color: var(--azul-profundo); line-height: 1.3; margin-bottom: 10px; }
.tarjeta p { color: var(--gris-600); font-size: 1rem; line-height: 1.6; }
/* Valores corporativos: viñetas dentro de la tarjeta de #nosotros */
.lista-valores { display: grid; gap: 11px; }
.lista-valores li {
  position: relative; padding-left: 20px;
  color: var(--gris-600); font-size: 0.98rem; line-height: 1.5;
}
.lista-valores li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--verde-claro);
}
.lista-valores li b { color: var(--azul-profundo); font-weight: 700; }

/* Bloque visual institucional */
/* Fotografía institucional de #nosotros (sustituyó a la marca de agua SVG).
   El JPG ya trae el fondo en --gris-50, así que encaja con .seccion-alt. */
.bloque-foto { border-radius: var(--radio); overflow: hidden; }
.bloque-foto img { width: 100%; height: auto; display: block; }

.lista-check { margin-top: 24px; display: grid; gap: 14px; }
.lista-check li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; color: var(--gris-800); }
.lista-check .tick { width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; background: var(--menta); display: grid; place-items: center; margin-top: 3px; }
.lista-check .tick svg { width: 13px; height: 13px; color: var(--azul); }

/* ============================================================ Banda de indicadores */
.banda-stats { background: var(--azul-profundo); padding: 70px 0; color: #fff; }
.banda-stats .grid-4, .banda-stats .grid-3 { text-align: center; }
.banda-stats .grid-4 > div, .banda-stats .grid-3 > div { position: relative; }
.banda-stats .grid-4 > div:not(:last-child)::after,
.banda-stats .grid-3 > div:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 12%; height: 76%; width: 1px; background: rgba(255,255,255,0.12); }
.banda-stats .num { font-size: 2.7rem; font-weight: 800; color: #fff; }
.banda-stats .num span { color: #7cc4ff; }
.banda-stats .lbl { color: rgba(255, 255, 255, 0.68); font-size: 15px; margin-top: 6px; }

/* ============================================================ Páginas legales */
.legal { max-width: 800px; margin: 0 auto; }
.legal-fecha { color: var(--gris-400); font-size: 0.92rem; margin-bottom: 34px; }
.legal h2 {
  font-size: 1.32rem; color: var(--azul-profundo); font-weight: 700;
  margin: 38px 0 12px; line-height: 1.3;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--gris-600); margin-bottom: 14px; }
.legal strong { color: var(--gris-800); font-weight: 700; }
.legal a { color: var(--azul); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal blockquote {
  border-left: 3px solid var(--verde-claro);
  background: var(--gris-50);
  border-radius: 0 var(--radio-sm) var(--radio-sm) 0;
  padding: 20px 24px; margin: 18px 0 22px;
}
.legal blockquote p:last-child { margin-bottom: 0; }
.legal-lista { display: grid; gap: 10px; margin-top: 6px; }
.legal-lista li { position: relative; padding-left: 20px; color: var(--gris-600); }
.legal-lista li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--verde-claro);
}

/* ============================================================ Productos */
.prod-filtros { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 46px; }
.prod-filtros button {
  padding: 9px 20px; border-radius: 8px; border: 1.5px solid var(--gris-200); background: #fff;
  font-family: inherit; font-weight: 600; font-size: 15px; color: var(--gris-600); cursor: pointer; transition: 0.22s ease;
}
.prod-filtros button:hover { border-color: var(--azul-claro); color: var(--azul); }
.prod-filtros button.activo { background: var(--azul); color: #fff; border-color: var(--azul); }
.prod-card { background: #fff; border: 1px solid var(--gris-200); border-radius: var(--radio); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--sombra-lg); border-color: var(--gris-300); }
.prod-cab { height: 138px; display: grid; place-items: center; position: relative; }
.prod-cab svg { width: 60px; height: 60px; color: #fff; opacity: 0.95; }
.prod-cab .tag { position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 6px; backdrop-filter: blur(4px); }
.prod-body { padding: 24px; }
.prod-body h3 { font-size: 1.18rem; line-height: 1.3; color: var(--azul-profundo); margin-bottom: 8px; }
.prod-body p { color: var(--gris-600); font-size: 1rem; line-height: 1.6; margin-bottom: 16px; }
.prod-body .ver { color: var(--azul); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.22s ease; }
.prod-body .ver:hover { gap: 11px; }

/* Tarjeta de producto con foto de empaque.
   El fondo coincide con el de los renders (--prod-fondo) para que la imagen
   se funda con la tarjeta sin recortes ni transparencias. */
.prod-foto { position: relative; background: var(--prod-fondo); aspect-ratio: 4 / 3; overflow: hidden; }
.prod-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.prod-card:hover .prod-foto img { transform: scale(1.045); }
/* Producto sin foto disponible: conserva el mismo espacio 4:3 para no
   desalinear la grilla, y avisa explícitamente de que la imagen está en
   preparación (en vez de dejar el hueco en blanco). */
.prod-foto.sin-imagen {
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(
    135deg, var(--prod-fondo), var(--prod-fondo) 12px, #d6d6d6 12px, #d6d6d6 24px
  );
}
.prod-foto.sin-imagen .aviso-foto {
  display: grid; justify-items: center; gap: 9px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed var(--gris-300);
  border-radius: var(--radio-sm);
  padding: 18px 22px;
  max-width: 78%;
  backdrop-filter: blur(2px);
}
.prod-foto.sin-imagen .aviso-foto svg { width: 34px; height: 34px; color: var(--azul); opacity: 0.75; }
.prod-foto.sin-imagen .aviso-foto b {
  font-family: var(--fuente); font-size: 0.88rem; font-weight: 700;
  color: var(--gris-800); letter-spacing: 0.2px; line-height: 1.3;
}
.prod-foto.sin-imagen .aviso-foto small { font-size: 0.78rem; color: var(--gris-600); line-height: 1.3; }
.prod-foto .tag {
  position: absolute; top: 13px; left: 13px; background: var(--azul); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 6px; box-shadow: var(--sombra-sm);
}
.prod-body h3 sup { font-size: 0.55em; top: -0.6em; position: relative; }
.prod-dci { color: var(--azul); font-weight: 600; font-size: 1rem; margin-bottom: 14px; }
.prod-datos { display: grid; gap: 8px; margin-bottom: 18px; font-size: 0.95rem; }
.prod-datos li { display: flex; gap: 8px; color: var(--gris-800); line-height: 1.45; }
.prod-datos li span { color: var(--gris-400); flex: 0 0 96px; font-weight: 600; }
/* Cabeceras dentro de la paleta institucional */
.c-azul { background: linear-gradient(135deg, #0a3f95, #0b62d6); }
.c-verde { background: linear-gradient(135deg, #0f766e, #0d9488); }
.c-cian { background: linear-gradient(135deg, #0b62d6, #2f9bfd); }
.c-morado { background: linear-gradient(135deg, #0a3a7a, #0b62d6); }
.c-naranja { background: linear-gradient(135deg, #334155, #475569); }
.c-rosa { background: linear-gradient(135deg, #2f9bfd, #40affe); }

/* ============================================================ Certificados */
.cert-card { background: #fff; border: 1px solid var(--gris-200); border-radius: var(--radio); padding: 34px 28px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; position: relative; overflow: hidden; }
.cert-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--azul); transform: scaleX(0); transition: transform 0.35s ease; }
.cert-card:hover { transform: translateY(-5px); box-shadow: var(--sombra-lg); border-color: var(--gris-300); }
.cert-card:hover::before { transform: scaleX(1); }
.cert-sello { width: 82px; height: 82px; margin: 0 auto 20px; border-radius: 50%; background: var(--menta); display: grid; place-items: center; border: 1.5px solid var(--gris-200); }
.cert-sello svg { width: 38px; height: 38px; color: var(--azul); }
.cert-card h3 { color: var(--azul-profundo); font-size: 1.15rem; margin-bottom: 8px; }
.cert-card p { color: var(--gris-600); font-size: 0.98rem; line-height: 1.58; }
.cert-card .estado { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 12px; font-weight: 700; color: var(--verde); background: #e6f6f4; padding: 5px 13px; border-radius: 6px; }

/* --- Certificados con insignia dorada oficial (zoom sutil al pasar el cursor) --- */
.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 30px; justify-content: center; }
.cert-badge {
  background: #fff; border: 1px solid var(--gris-200); border-radius: var(--radio);
  padding: 44px 34px 36px; text-align: center; position: relative; overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.cert-badge:hover { transform: translateY(-4px); box-shadow: var(--sombra-lg); border-color: var(--gris-300); }
.cert-badge .sello {
  width: 152px; height: 152px; margin: 0 auto 24px; object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(120, 90, 10, 0.16));
  transition: transform 0.45s ease, filter 0.45s ease;
}
.cert-badge:hover .sello {
  transform: scale(1.06);
  filter: drop-shadow(0 12px 22px rgba(120, 90, 10, 0.26));
}
.cert-badge h3 { color: var(--azul-profundo); font-size: 1.16rem; margin-bottom: 6px; }
.cert-badge .sigla { color: var(--gris-400); font-weight: 600; font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.cert-badge p { color: var(--gris-600); font-size: 0.98rem; line-height: 1.58; }
.cert-badge .emisor { color: var(--gris-400); font-size: 0.85rem; margin-top: 8px; }
.cert-badge .estado {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 12px; font-weight: 700; color: var(--verde); background: #e6f6f4;
  padding: 5px 13px; border-radius: 6px;
}

/* ============================================================ Farmacovigilancia */
.fv-alerta { display: flex; gap: 18px; align-items: flex-start; background: #fbfaff; border: 1px solid var(--gris-200); border-left: 4px solid var(--azul); border-radius: var(--radio); padding: 26px 28px; margin-bottom: 42px; }
.fv-alerta .ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px; background: var(--menta); display: grid; place-items: center; }
.fv-alerta .ico svg { width: 24px; height: 24px; color: var(--azul); }
.fv-alerta h3 { color: var(--azul-profundo); margin-bottom: 6px; font-size: 1.12rem; }
.fv-alerta p { color: var(--gris-600); font-size: 1rem; line-height: 1.58; }
.paso { display: flex; gap: 20px; padding: 26px; background: #fff; border: 1px solid var(--gris-200); border-radius: var(--radio); transition: transform 0.28s ease, box-shadow 0.28s ease; }
.paso:hover { transform: translateX(5px); box-shadow: var(--sombra); }
.paso .n { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: var(--menta); color: var(--azul); font-weight: 800; font-size: 1.15rem; display: grid; place-items: center; }
.paso h3 { color: var(--azul-profundo); font-size: 1.1rem; margin-bottom: 5px; }
.paso p { color: var(--gris-600); font-size: 1rem; line-height: 1.55; }

/* ============================================================ Formularios */
.form-card { background: #fff; border: 1px solid var(--gris-200); border-radius: var(--radio); padding: 40px; box-shadow: var(--sombra); }
.campo { margin-bottom: 20px; }
.campo label { display: block; font-weight: 600; font-size: 14.5px; color: var(--gris-800); margin-bottom: 8px; }
.campo label .req { color: var(--azul); }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--gris-200); border-radius: var(--radio-sm);
  font-family: inherit; font-size: 15.5px; color: var(--texto); background: var(--gris-50);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--azul-claro); background: #fff; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12); }
.campo textarea { resize: vertical; min-height: 130px; }
.fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-ok { display: none; align-items: center; gap: 12px; background: #e6f6f4; color: var(--verde); border-radius: var(--radio-sm); padding: 14px 18px; font-weight: 600; margin-top: 18px; }
.form-ok.visible { display: flex; }
/* Aviso de fallo de envío: solo aparece si la petición al backend falla. */
.form-error {
  display: none; background: #fdeaef; color: #c11c48; border-radius: var(--radio-sm);
  padding: 14px 18px; font-weight: 600; font-size: 0.95rem; line-height: 1.5; margin-top: 18px;
}
.form-error.visible { display: block; }
/* Trampa antispam: fuera de la vista pero accesible para los bots. */
.campo-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Mapa embebido de Google Maps (contacto.html) */
.mapa-caja {
  border-radius: 24px; overflow: hidden; box-shadow: var(--sombra);
  height: 380px; background: var(--gris-100);
}
.mapa-caja iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 560px) { .mapa-caja { height: 300px; } }

.info-contacto { display: grid; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .ico { width: 48px; height: 48px; flex-shrink: 0; border-radius: 11px; background: var(--menta); display: grid; place-items: center; }
.info-item .ico svg { width: 23px; height: 23px; color: var(--azul); }
.info-item h4 { color: var(--azul-profundo); font-size: 1.05rem; margin-bottom: 3px; }
.info-item p { color: var(--gris-600); font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }

/* ============================================================
   Farmacovigilancia — formulario multipaso
   ============================================================ */
.fv-stepper { display: flex; align-items: flex-start; margin-bottom: 34px; }
.fv-stepper .paso-n { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.fv-stepper .paso-n:not(:last-child)::after {
  content: ""; position: absolute; top: 18px; left: 50%; width: 100%; height: 2px;
  background: var(--gris-200); z-index: 0;
}
.fv-stepper .paso-n.done::after { background: var(--verde); }
.fv-stepper .bola {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--gris-400); font-weight: 700; font-size: 14px;
  position: relative; z-index: 1; border: 2px solid var(--gris-200); transition: 0.25s ease;
}
.fv-stepper .paso-n.activo .bola { background: var(--azul); color: #fff; border-color: var(--azul); }
.fv-stepper .paso-n.done .bola { background: var(--verde); color: #fff; border-color: var(--verde); }
.fv-stepper .lbl { font-size: 12.5px; color: var(--gris-600); margin-top: 8px; font-weight: 600; }
.fv-stepper .paso-n.activo .lbl { color: var(--azul); }
@media (max-width: 640px) { .fv-stepper .lbl { display: none; } }

.fv-panel { display: none; }
.fv-panel.activo { display: block; animation: fadeUp 0.4s ease; }
.fv-panel h3 { color: var(--azul-profundo); font-size: 1.15rem; margin-bottom: 18px; }

.fila-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.campo input[readonly] { background: var(--gris-100); color: var(--gris-600); cursor: default; }
.campo .ayuda { font-size: 12.5px; color: var(--gris-400); margin-top: 6px; }
.fv-tel { display: flex; gap: 10px; }
.fv-tel select { max-width: 145px; }

.fv-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 6px; }
.fv-checks label, .fv-consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--gris-800); font-weight: 500; cursor: pointer; line-height: 1.5; }
.fv-checks input, .fv-consent input { width: auto; margin-top: 3px; flex-shrink: 0; accent-color: var(--azul); }
.fv-consent { display: grid; gap: 14px; }

.fv-controles { display: flex; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.fv-controles .sp { flex: 1; }
.fv-nota { font-size: 13.5px; color: var(--gris-600); margin-top: 14px; }
@media (max-width: 640px) {
  .fila-3 { grid-template-columns: 1fr; }
  .fv-checks { grid-template-columns: 1fr; }
  .fv-controles .btn { width: 100%; justify-content: center; }
}

/* ============================================================ CTA final */
.cta-final { background: var(--grad-hero); border-radius: var(--radio); padding: 62px; text-align: center; color: #fff; box-shadow: var(--sombra-lg); position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 30%, rgba(124,58,237,0.3), transparent 50%); }
.cta-final > * { position: relative; z-index: 2; }
.cta-final h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 14px; letter-spacing: -0.5px; }
.cta-final p { font-size: 1.05rem; line-height: 1.6; opacity: 0.85; max-width: 560px; margin: 0 auto 30px; }

/* ============================================================ Footer */
.footer { background: #04142e; color: rgba(255, 255, 255, 0.62); padding: 72px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 48px; }
.footer .logo { color: #fff; margin-bottom: 18px; }
.footer-col h4 { color: #fff; font-size: 14.5px; margin-bottom: 18px; letter-spacing: 0.4px; text-transform: uppercase; }
/* `overflow-wrap` evita que un correo largo (ventas@apexmedinternational.com)
   se salga de la columna del pie en pantallas estrechas. */
.footer-col a { display: block; padding: 6px 0; font-size: 15px; overflow-wrap: anywhere; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-col a:hover { color: #40affe; padding-left: 5px; }
/* Dato de contacto que no es enlace (dirección) */
.footer-col .dato { display: block; padding: 6px 0; font-size: 15px; }
.footer p.desc { font-size: 15px; max-width: 320px; margin-bottom: 20px; line-height: 1.62; }
.redes { display: flex; gap: 11px; }
.redes a { width: 38px; height: 38px; border-radius: 9px; background: rgba(255, 255, 255, 0.07); display: grid; place-items: center; transition: 0.22s ease; }
.redes a:hover { background: var(--azul); transform: translateY(-3px); }
.redes a svg { width: 17px; height: 17px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.09); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; }

/* ============================================================
   Catálogo vacío — estado provisional de productos.html
   ============================================================ */
.catalogo-vacio { max-width: 620px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--gris-200); border-radius: var(--radio); padding: 54px 40px; box-shadow: var(--sombra-sm); }
.catalogo-vacio .ico { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--menta); color: var(--azul); }
.catalogo-vacio .ico svg { width: 34px; height: 34px; }
.catalogo-vacio h2 { font-family: var(--fuente-titulo); font-size: 1.7rem; font-weight: 600; color: var(--azul-profundo); margin-bottom: 12px; }
.catalogo-vacio p { color: var(--gris-600); font-size: 1rem; }
.catalogo-vacio-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.catalogo-vacio .nota { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--gris-100); font-size: 0.88rem; color: var(--gris-400); }
@media (max-width: 560px) { .catalogo-vacio { padding: 38px 22px; } }

/* ============================================================
   CHAT DE AYUDA — respuestas precargadas (sustituye al antiguo
   robot "Codexito"). Lanzador flotante + panel con guion cerrado.
   ============================================================ */
.chat-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }

/* --- Lanzador --- */
.chat-btn {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer; position: relative;
  background: var(--grad-accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 30px rgba(10, 63, 149, 0.42); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.chat-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(10, 63, 149, 0.5); }
.chat-btn:focus-visible { outline: 3px solid var(--verde-claro); outline-offset: 3px; }
.chat-btn .ico { width: 27px; height: 27px; grid-area: 1 / 1; transition: transform 0.25s ease, opacity 0.2s ease; }
.chat-btn .ico-cerrar { transform: rotate(-45deg) scale(0.6); opacity: 0; }
.chat-wrap.abierto .chat-btn .ico-chat { transform: rotate(45deg) scale(0.6); opacity: 0; }
.chat-wrap.abierto .chat-btn .ico-cerrar { transform: none; opacity: 1; }
.chat-punto {
  position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--verde-claro); border: 2.5px solid #fff; animation: latido 2.2s infinite;
}
.chat-wrap.abierto .chat-punto { display: none; }

/* --- Panel --- */
.chat-panel {
  width: 340px; max-width: calc(100vw - 40px); background: #fff; border: 1px solid var(--gris-200);
  border-radius: 18px; box-shadow: var(--sombra-lg); overflow: hidden; display: flex; flex-direction: column;
  transform: translateY(14px) scale(0.97); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s;
}
.chat-wrap.abierto .chat-panel { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }

.chat-cab { background: var(--grad-accent); color: #fff; padding: 15px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chat-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.chat-id img { width: 36px; height: 36px; border-radius: 50%; background: #fff; padding: 4px; object-fit: contain; flex-shrink: 0; }
.chat-id strong { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -0.2px; }
.chat-id span { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: 0.85; margin-top: 1px; }
.chat-id .en-linea { width: 7px; height: 7px; border-radius: 50%; background: #6ee7b7; animation: latido 2.2s infinite; }
.chat-cerrar { background: none; border: none; color: #fff; opacity: 0.8; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 2px; }
.chat-cerrar:hover { opacity: 1; }

.chat-cuerpo { padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 310px; overflow-y: auto; background: var(--gris-50); font-size: 14px; line-height: 1.55; overscroll-behavior: contain; }
.chat-cuerpo::-webkit-scrollbar { width: 6px; }
.chat-cuerpo::-webkit-scrollbar-thumb { background: var(--gris-300); border-radius: 3px; }

.chat-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; animation: chatEntra 0.28s ease both; }
.chat-msg p + p { margin-top: 8px; }
.chat-msg.bot { background: #fff; border: 1px solid var(--gris-200); border-bottom-left-radius: 5px; color: var(--texto); align-self: flex-start; }
.chat-msg.yo { background: var(--azul); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; font-weight: 500; }
.chat-msg.bot b, .chat-msg.bot strong { color: var(--azul-profundo); }
.chat-msg a { color: var(--azul); font-weight: 600; text-decoration: underline; }
@keyframes latido { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: 0.72; } }
@keyframes chatEntra { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* Enlaces de accion dentro de una respuesta */
.chat-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.chat-links a { font-size: 12.5px; font-weight: 700; padding: 7px 11px; border-radius: 8px; background: var(--menta); color: var(--azul); text-decoration: none; transition: 0.2s ease; }
.chat-links a:hover { background: var(--azul); color: #fff; }
.chat-links a.wa { background: #25d366; color: #fff; }
.chat-links a.wa:hover { filter: brightness(0.94); }

/* Preguntas precargadas */
.chat-opciones { display: flex; flex-wrap: wrap; gap: 7px; padding: 13px 16px; border-top: 1px solid var(--gris-100); background: #fff; max-height: 168px; overflow-y: auto; }
.chat-opciones:empty { display: none; }
.chat-opciones button {
  font-family: inherit; font-size: 12.8px; font-weight: 600; line-height: 1.3; cursor: pointer;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--gris-300);
  background: #fff; color: var(--azul-profundo); transition: 0.18s ease; text-align: left;
}
.chat-opciones button:hover { border-color: var(--azul); background: var(--menta); color: var(--azul); }
.chat-opciones button.reinicio { border-style: dashed; color: var(--gris-600); }

.chat-pie { padding: 11px 16px 13px; border-top: 1px solid var(--gris-100); background: #fff; }
.chat-wa { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #25d366; color: #fff; font-weight: 700; font-size: 13.5px; padding: 11px; border-radius: 10px; text-decoration: none; transition: 0.2s ease; }
.chat-wa:hover { filter: brightness(0.94); }
.chat-wa svg { width: 18px; height: 18px; }

/* Indicador "escribiendo" */
.typing { display: inline-flex; gap: 4px; align-items: center; height: 14px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--azul-claro); animation: typ 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typ { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }

@media (max-width: 560px) {
  .chat-wrap { bottom: 16px; right: 16px; }
  .chat-panel { width: calc(100vw - 32px); }
  .chat-cuerpo { max-height: 46vh; }
}

/* ============================================================ Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ============================================================ Responsive */
@media (max-width: 960px) {
  .menu {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 300px; max-width: 82vw;
    background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: calc(var(--nav-alto) + 20px) 24px 24px; box-shadow: -12px 0 40px rgba(10, 42, 92, 0.15);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); gap: 4px;
  }
  .menu.abierto { right: 0; }
  .menu a { color: var(--gris-800); padding: 14px 16px; font-size: 16px; }
  .nav.scrolled .menu a { color: var(--gris-800); }
  .menu a::after { display: none; }
  .menu a.destacado { text-align: center; justify-content: center; margin: 10px 0 0; }
  .burger { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .banda-stats .grid-4 > div::after, .banda-stats .grid-3 > div::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  /* En pantallas pequeñas la raíz vuelve a 16px: con 17px los títulos y las
     tarjetas quedaban demasiado grandes para el ancho disponible. */
  html { font-size: 16px; }
  .seccion { padding: 72px 0; }
  .cta-final { padding: 40px 24px; }
  .form-card { padding: 28px 22px; }
  .fila-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
