/* ============================================================
   EXTINTORES DE MÉXICO — styles.css
   Paleta y tipografía de marca. Edite los tokens en :root.
   ============================================================ */

:root {
  --carbon: #17171a;
  --grafito: #24242a;
  --acero: #4a4a52;
  --rojo: #d71920;
  --rojo-oscuro: #9e1118;
  --brasa: #ff5a1f;
  --amarillo: #ffc107;
  --marfil: #f7f4f1;
  --whatsapp: #25d366;
  --header-h: 4.5rem;
  --wrap: 76rem;
  --font-display: "Barlow Condensed", sans-serif;
  --font-sans: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  background: var(--carbon);
  color: var(--marfil);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  animation: page-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--rojo); color: #fff; }
:focus-visible { outline: 2px solid var(--amarillo); outline-offset: 2px; }

@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Utilidades ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .wrap { padding-inline: 1.5rem; } }
.section { padding-block: 5rem; }
@media (min-width: 768px) { .section { padding-block: 7rem; } }
.section--alt { background: var(--grafito); border-block: 1px solid rgba(255,255,255,0.08); }
.section--light { background: var(--marfil); color: var(--carbon); }
.center { text-align: center; }
.muted { color: rgba(247,244,241,0.65); }
.section--light .muted { color: var(--acero); }

/* ---------- Tipografía ---------- */
.h-display { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; line-height: 1.05; text-wrap: balance; }
.t-hero { font-size: clamp(2.6rem, 7.2vw, 5.4rem); }
.t-1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.t-2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.t-3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.eyebrow { font-weight: 600; letter-spacing: 0.04em; color: var(--amarillo); }
.lead { font-size: 1.15rem; color: rgba(247,244,241,0.78); max-width: 42rem; }

/* ---------- Línea de seguridad (firma visual) ---------- */
.safety-line {
  height: 4px;
  background: repeating-linear-gradient(-55deg,
    var(--amarillo) 0 14px, var(--carbon) 14px 18px,
    var(--rojo) 18px 32px, var(--carbon) 32px 36px);
}
.rule { height: 2px; width: 6rem; margin-top: 1rem; background: linear-gradient(90deg, var(--rojo) 0 62%, var(--amarillo) 62% 100%); }
.rule--center { margin-inline: auto; }

.metal-sheen {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0) 30%),
    radial-gradient(1200px 400px at 80% -10%, rgba(255,90,31,0.07), transparent 60%);
}
.mx-watermark {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background: url("../images/logo.webp") no-repeat right -12% center / min(60vw, 780px);
  filter: grayscale(1) brightness(4);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 0.4rem; border: 0; cursor: pointer;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.03em;
  text-decoration: none; position: relative; overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.985); }
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform 0.6s ease;
}
@media (hover: hover) { .btn:hover::after { transform: translateX(120%); } }
.btn-primary { background: linear-gradient(135deg, var(--rojo), var(--rojo-oscuro)); color: #fff; box-shadow: 0 10px 30px -12px rgba(215,25,32,0.7); }
.btn-secondary { background: transparent; color: var(--marfil); border: 1px solid rgba(247,244,241,0.28); }
.btn-secondary:hover { border-color: var(--amarillo); color: var(--amarillo); }
.btn-light { background: var(--marfil); color: var(--carbon); }
.btn-wa { background: var(--whatsapp); color: #073b1c; }
.btn-block { width: 100%; }
.btn svg { width: 1.25rem; height: 1.25rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--header-h);
  background: #ffffff;
  border-bottom: 1px solid rgba(23,23,26,0.08);
  transition: box-shadow 0.3s ease;
}
.site-header.is-solid { box-shadow: 0 12px 30px -18px rgba(0,0,0,0.35); }
.site-header .safety-line { opacity: 1; }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { height: 3rem; width: auto; }
@media (min-width: 768px) { .brand img { height: 3.5rem; } }

.nav-list { display: none; }
@media (min-width: 1024px) {
  .nav-list { display: flex; align-items: center; gap: 0.25rem; }
}
.nav-list > li { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 0.25rem; padding: 0.5rem 0.75rem; border-radius: 0.3rem;
  background: none; border: 0; cursor: pointer;
  font: 500 1rem var(--font-sans); color: #33333b; text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--rojo); }
.nav-link.is-active { color: var(--rojo); }
.nav-link .chev { width: 1rem; height: 1rem; transition: transform 0.25s ease; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-cta { margin-left: 0.5rem; padding-block: 0.6rem; font-size: 1rem; }

/* Mega menús */
.mega {
  display: none; position: absolute; inset-inline: 0; top: 100%;
  background: #ffffff;
  border-top: 1px solid rgba(23,23,26,0.08); border-bottom: 1px solid rgba(23,23,26,0.08);
  box-shadow: 0 30px 50px -30px rgba(0,0,0,0.35);
}
.mega .card { background: #faf8f6; border-color: rgba(23,23,26,0.08); }
@media (hover: hover) {
  .mega .card:hover { border-color: var(--rojo); box-shadow: 0 14px 30px -18px rgba(23,23,26,0.3); }
}
.mega.is-open { display: block; }
.mega-grid { display: grid; gap: 1rem; padding-block: 1.5rem; }
.mega-grid--4 { grid-template-columns: repeat(4, 1fr); }
.mega-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mega-item { display: flex; gap: 0.75rem; padding: 1rem; text-decoration: none; }
.mega-item img { width: 4rem; height: 4rem; object-fit: contain; background: rgba(23,23,26,0.05); border-radius: 0.5rem; padding: 0.25rem; }
.mega-item strong { color: var(--carbon); font-weight: 600; }
.mega-item:hover strong { color: var(--rojo); }
.mega-item small { color: var(--acero); line-height: 1.4; display: block; margin-top: 0.25rem; }
.mega-all { grid-column: 1 / -1; padding: 0 1rem 0.5rem; color: var(--rojo); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.mega-all:hover { text-decoration: underline; }

/* Menú móvil */
.burger { display: grid; place-items: center; background: none; border: 0; color: var(--carbon); padding: 0.5rem; border-radius: 0.3rem; cursor: pointer; }
.burger svg { width: 1.75rem; height: 1.75rem; }
@media (min-width: 1024px) { .burger { display: none; } }
.mobile-menu {
  display: none; position: fixed; inset-inline: 0; top: var(--header-h); bottom: 0; z-index: 40;
  overflow-y: auto; background: rgba(255,255,255,0.98); backdrop-filter: blur(8px); padding: 2rem 1.5rem;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a.mm-link {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--carbon);
  display: block; padding: 1rem 0; border-bottom: 1px solid rgba(23,23,26,0.08); text-decoration: none;
  animation: page-in 0.35s both;
}
.mobile-menu a.mm-link.is-active { color: var(--rojo); }
.mobile-menu .btn { margin-top: 2rem; }
body.menu-open { overflow: hidden; }

/* Barra de progreso de lectura */
#progress { position: fixed; left: 0; top: 0; z-index: 60; height: 3px; width: 100%; pointer-events: none; }
#progress span { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--rojo), var(--brasa), var(--amarillo)); }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--amarillo); color: var(--carbon); padding: 0.75rem 1.25rem; font-weight: 700; border-radius: 0 0 0.5rem 0; }
.skip-link:focus { left: 0; }

/* ---------- WhatsApp flotante (arriba a la izquierda, bajo el header) ---------- */
.wa-float {
  position: fixed; z-index: 70;
  right: clamp(14px, 2.5vw, 32px); bottom: clamp(16px, 3.5vh, 32px);
}
.wa-float a {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 999px;
  background: var(--whatsapp); color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}
.wa-float a svg { width: 2rem; height: 2rem; }
@media (hover: hover) { .wa-float a:hover { transform: scale(1.06); } }
.wa-float .tip {
  position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin-right: 0.75rem;
  background: var(--grafito); color: var(--marfil); font-size: 0.85rem; font-weight: 500;
  padding: 0.4rem 0.75rem; border-radius: 0.4rem; white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.1); opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.wa-float:hover .tip, .wa-float a:focus-visible + .tip { opacity: 1; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.wa-float a.pulse { animation: wa-pulse 1.4s ease-out 2; }

/* ---------- Hero de inicio ---------- */
.hero {
  position: relative; min-height: 92svh; display: flex; align-items: center; overflow: hidden;
  padding-top: calc(var(--header-h) + 3.5rem); padding-bottom: 6rem;
}
.hero-grid { display: grid; gap: 3rem; align-items: center; width: 100%; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero-art { position: relative; max-width: 32rem; margin-inline: auto; width: 100%; }
.hero-art::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px;
  background: rgba(255,90,31,0.1); filter: blur(64px);
}
.hero-art img { filter: drop-shadow(0 25px 45px rgba(0,0,0,0.55)); }
.hero .lead { font-size: 1.3rem; margin-top: 1.25rem; }
.hero .sub { margin-top: 0.75rem; max-width: 36rem; color: rgba(247,244,241,0.6); }
.hero .btn-group { margin-top: 2.25rem; }
.hero-fade { opacity: 0; transform: translateY(26px); animation: hero-in 0.9s cubic-bezier(0.16,0.8,0.3,1) both; }
@keyframes hero-in { to { opacity: 1; transform: none; } }
.scroll-hint {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  width: 1.5rem; height: 2.5rem; border: 1px solid rgba(247,244,241,0.3); border-radius: 999px;
  display: flex; justify-content: center; padding-top: 0.4rem;
  animation: hint 1.8s ease-in-out infinite;
}
.scroll-hint i { width: 0.25rem; height: 0.5rem; border-radius: 999px; background: var(--amarillo); }
@keyframes hint { 0%,100% { transform: translate(-50%,0); opacity: 0.9; } 50% { transform: translate(-50%,8px); opacity: 0.5; } }
.hero > .safety-line { position: absolute; inset-inline: 0; bottom: 0; }
canvas.sparks { position: absolute; inset: 0; pointer-events: none; }

/* ---------- Barra de confianza ---------- */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2.5rem; padding-block: 1.5rem; }
.trust li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; color: rgba(247,244,241,0.8); }
.trust svg { width: 1rem; height: 1rem; color: var(--amarillo); flex-shrink: 0; }

/* ---------- Tarjetas ---------- */
.card {
  position: relative; border-radius: 0.75rem; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(36,36,42,0.8);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px); border-color: rgba(255,193,7,0.55);
    box-shadow: 0 18px 40px -18px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,90,31,0.15);
  }
}
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid--3m { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3m { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 1279px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

.ext-card { display: flex; flex-direction: column; overflow: hidden; }
.ext-card .fig { display: grid; place-items: center; height: 13rem; padding: 1.5rem; background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent); }
.ext-card .fig img { height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0,0,0,0.5)); }
.ext-card .body { display: flex; flex-direction: column; flex-grow: 1; padding: 1.5rem; }
.ext-card .classes { color: var(--amarillo); font-weight: 600; font-size: 0.85rem; margin-top: 0.25rem; }
.ext-card p.desc { flex-grow: 1; font-size: 0.9rem; color: rgba(247,244,241,0.7); margin-top: 0.75rem; }
.ext-card p.apps { font-size: 0.75rem; color: rgba(247,244,241,0.5); margin-top: 0.75rem; }
.ext-card .actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.ext-card .actions .btn { flex: 1; padding: 0.5rem 0.75rem; font-size: 0.9rem; }

.svc-card { display: flex; flex-direction: column; height: 100%; padding: 1.5rem; text-decoration: none; }
.iconbox {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.5rem;
  background: rgba(215,25,32,0.15); color: var(--brasa); transition: transform 0.25s ease;
}
.iconbox svg { width: 1.75rem; height: 1.75rem; }
.svc-card:hover .iconbox { transform: scale(1.1); }
.svc-card h3 { margin-top: 1rem; color: var(--marfil); }
.svc-card:hover h3 { color: var(--amarillo); }
.svc-card p { flex-grow: 1; font-size: 0.9rem; color: rgba(247,244,241,0.7); margin-top: 0.5rem; }
.more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; color: var(--amarillo); font-weight: 600; font-size: 0.9rem; }
.more svg { width: 1rem; height: 1rem; transition: transform 0.2s ease; }
.svc-card:hover .more svg { transform: translateX(4px); }

/* Tarjeta grande de servicio (índice) */
.svc-big { display: flex; flex-direction: column; overflow: hidden; }
.svc-big .cover {
  position: relative; height: 15rem; display: grid; place-items: center; padding: 1.25rem;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255,90,31,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
}
.svc-big .cover img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 16px 26px rgba(0,0,0,0.5)); }
.svc-big .body { display: flex; flex-direction: column; flex-grow: 1; padding: 1.75rem; }
.svc-big ul { margin-top: 1rem; display: grid; gap: 0.4rem; font-size: 0.9rem; color: rgba(247,244,241,0.6); }
.svc-big ul li { display: flex; gap: 0.5rem; align-items: flex-start; }
.svc-big ul svg { width: 1rem; height: 1rem; color: var(--amarillo); flex-shrink: 0; margin-top: 0.2rem; }
.svc-big .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.svc-big .actions .btn { flex: 1; }

/* ---------- Estadísticas ---------- */
.stats { display: grid; gap: 2.5rem; text-align: center; padding-block: 4rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.5rem, 7vw, 4.5rem); color: var(--amarillo); line-height: 1; }
.stats p { margin-top: 0.5rem; font-size: 1.1rem; color: rgba(247,244,241,0.75); }

/* ---------- Héroe interior + breadcrumbs ---------- */
.int-hero { position: relative; overflow: hidden; background: var(--grafito); border-bottom: 1px solid rgba(255,255,255,0.1); }
.int-hero .wrap { position: relative; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 3.5rem; }
@media (min-width: 768px) { .int-hero .wrap { padding-bottom: 5rem; } }
.crumbs { font-size: 0.85rem; color: rgba(247,244,241,0.6); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--marfil); }
.crumbs [aria-current] { color: var(--amarillo); }
.crumbs .sep { color: rgba(247,244,241,0.3); }
.int-hero h1 { margin-top: 1.5rem; max-width: 48rem; }
.int-hero .lead { margin-top: 1.5rem; }

/* ---------- Página de detalle ---------- */
.detail { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .detail { grid-template-columns: 1fr 0.8fr; align-items: start; } .detail aside { position: sticky; top: 6rem; } }
.detail .col > * + * { margin-top: 2.5rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,193,7,0.4); background: rgba(255,193,7,0.1); color: var(--amarillo);
  font-size: 0.9rem; font-weight: 600;
}
.badge svg { width: 1rem; height: 1rem; }
.checks { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .checks--2 { grid-template-columns: repeat(2, 1fr); } }
.checks li { display: flex; gap: 0.5rem; align-items: flex-start; color: rgba(247,244,241,0.78); }
.checks svg { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.3rem; color: var(--amarillo); }
.checks--brasa svg { color: var(--brasa); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.chips li { border: 1px solid rgba(255,255,255,0.15); background: var(--grafito); padding: 0.35rem 1rem; border-radius: 999px; font-size: 0.9rem; color: rgba(247,244,241,0.8); }
.callout { border-radius: 0.75rem; border: 1px solid rgba(255,193,7,0.3); background: rgba(255,193,7,0.05); padding: 1.5rem; }
.callout h2, .callout h3 { color: var(--amarillo); }
.callout p, .callout li { font-size: 0.9rem; color: rgba(247,244,241,0.8); margin-top: 0.75rem; }
.callout .fine { color: rgba(247,244,241,0.55); }
.aside-card { overflow: hidden; }
.aside-card .fig { display: grid; place-items: center; padding: 2rem; background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent); }
.aside-card .fig img { height: 18rem; width: auto; object-fit: contain; filter: drop-shadow(0 20px 35px rgba(0,0,0,0.55)); }
.aside-card .cover {
  height: 15rem; display: grid; place-items: center; padding: 1.25rem;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255,90,31,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
}
.aside-card .cover img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 16px 26px rgba(0,0,0,0.5)); }
.aside-card .body { padding: 1.5rem; display: grid; gap: 0.75rem; }
.related { padding: 1.5rem; }
.related ul { margin-top: 1rem; display: grid; gap: 0.75rem; }
.related a { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; font-weight: 500; color: rgba(247,244,241,0.8); }
.related a:hover { color: var(--amarillo); }
.related img { width: 3rem; height: 3rem; object-fit: contain; background: rgba(255,255,255,0.05); border-radius: 0.5rem; padding: 0.25rem; }

/* Proceso numerado */
.steps { display: grid; gap: 1rem; margin-top: 1.5rem; counter-reset: paso; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li { display: flex; align-items: center; gap: 1rem; padding: 1rem; }
.steps .n {
  counter-increment: paso; display: grid; place-items: center; flex-shrink: 0;
  width: 2.75rem; height: 2.75rem; border-radius: 999px; background: var(--rojo); color: #fff;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
}
.steps .n::before { content: counter(paso); }

/* Fila alternada del catálogo de extintores */
.cat-row { overflow: hidden; }
.cat-row .inner { display: grid; gap: 2rem; align-items: center; padding: 1.5rem; }
@media (min-width: 768px) { .cat-row .inner { padding: 2.5rem; } }
@media (min-width: 1024px) {
  .cat-row .inner { grid-template-columns: 0.9fr 1.4fr; }
  .cat-row.flip .inner { grid-template-columns: 1.4fr 0.9fr; }
  .cat-row.flip .fig { order: 2; }
}
.cat-row .fig { display: grid; place-items: center; }
.cat-row .fig img { height: 16rem; width: auto; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.55)); }
@media (min-width: 768px) { .cat-row .fig img { height: 20rem; } }
.cat-row .classes { color: var(--amarillo); font-weight: 600; margin-top: 0.25rem; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; background: rgba(36,36,42,0.6); }
.faq-item + .faq-item { border-top: 1px solid rgba(255,255,255,0.1); }
.faq-btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem; background: none; border: 0; cursor: pointer; text-align: left;
  font: 600 1rem var(--font-sans); color: var(--marfil); transition: color 0.2s ease;
}
.faq-btn:hover { color: var(--amarillo); }
.faq-btn svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--amarillo); transition: transform 0.25s ease; }
.faq-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.faq-panel.is-open { grid-template-rows: 1fr; }
.faq-panel > div { overflow: hidden; }
.faq-panel p { padding: 0 1.25rem 1.25rem; color: rgba(247,244,241,0.75); }

/* ---------- Galería de certificaciones ---------- */
.cert-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
.cert-card { overflow: hidden; }
.cert-card button { width: 100%; background: none; border: 0; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.cert-card .doc { display: grid; place-items: center; height: 11rem; background: rgba(255,255,255,0.95); padding: 1rem; }
.cert-card .doc img { max-height: 9rem; width: auto; object-fit: contain; }
.cert-card .body { padding: 1.25rem; }
.cert-card .cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; color: var(--amarillo); }
.cert-card h3 { margin-top: 0.25rem; font-size: 1rem; }
.cert-card p { margin-top: 0.5rem; font-size: 0.85rem; color: rgba(247,244,241,0.65); }
.cert-card dl { margin-top: 0.75rem; font-size: 0.75rem; color: rgba(247,244,241,0.55); }
.cert-card dl div { display: flex; gap: 0.3rem; }
.cert-card dt { font-weight: 700; }
.cert-card .open { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 1rem; color: var(--amarillo); font-weight: 600; font-size: 0.85rem; }
.cert-card .open svg { width: 1rem; height: 1rem; }

dialog.lightbox {
  margin: auto;
  width: min(92vw, 900px); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem;
  background: var(--grafito); color: var(--marfil); padding: 0;
}
dialog.lightbox::backdrop { background: rgba(23,23,26,0.85); backdrop-filter: blur(4px); }
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.lb-head button { background: none; border: 0; color: var(--marfil); cursor: pointer; padding: 0.25rem; border-radius: 0.3rem; }
.lb-head button:hover { color: var(--amarillo); }
.lb-head svg { width: 1.5rem; height: 1.5rem; }
.lb-body { display: grid; place-items: center; max-height: 70vh; overflow: auto; background: #fff; padding: 1.5rem; }
.lb-desc { padding: 1rem 1.25rem; font-size: 0.9rem; color: rgba(247,244,241,0.7); }

/* ---------- Mapa de México ---------- */
.mx-map { display: block; width: 100%; height: auto; }

/* Canales de contacto */
.channel { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; text-decoration: none; }
.channel small { display: block; color: rgba(247,244,241,0.6); font-size: 0.85rem; }
.channel strong { color: var(--marfil); word-break: break-all; }
.channel.wa { border-color: rgba(37,211,102,0.4); }
.channel.wa .iconbox { background: rgba(37,211,102,0.15); color: var(--whatsapp); }

/* ---------- Valores / listas nosotros ---------- */
.values { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
.values li { border: 1px solid rgba(255,255,255,0.1); background: rgba(36,36,42,0.6); border-radius: 0.6rem; padding: 1rem; }
.values strong { display: flex; align-items: center; gap: 0.5rem; color: var(--marfil); }
.values svg { width: 1rem; height: 1rem; color: var(--amarillo); }
.values p { margin-top: 0.25rem; font-size: 0.85rem; color: rgba(247,244,241,0.65); }

/* ---------- CTA final ---------- */
.cta { position: relative; overflow: hidden; background: var(--grafito); }
.cta .wrap { position: relative; padding-block: 5rem; text-align: center; }
@media (min-width: 768px) { .cta .wrap { padding-block: 7rem; } }
.cta h2 { max-width: 48rem; margin-inline: auto; }
.cta .btn-group { justify-content: center; margin-top: 2.5rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255,255,255,0.1); }
.foot-grid { display: grid; gap: 3rem; padding-block: 4rem; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer img.logo { height: 4rem; width: auto; }
.site-footer p.about { margin-top: 1rem; max-width: 20rem; font-size: 0.9rem; color: rgba(247,244,241,0.65); }
.site-footer .cov { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.9rem; font-weight: 600; color: var(--amarillo); }
.site-footer .cov svg { width: 1rem; height: 1rem; }
.site-footer nav ul { margin-top: 1rem; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.site-footer nav a { color: rgba(247,244,241,0.65); text-decoration: none; }
.site-footer nav a:hover { color: var(--amarillo); }
.site-footer .contact-list { margin-top: 1rem; display: grid; gap: 0.75rem; font-size: 0.9rem; }
.site-footer .contact-list a { display: flex; align-items: center; gap: 0.5rem; color: rgba(247,244,241,0.8); text-decoration: none; }
.site-footer .contact-list a:hover { color: var(--amarillo); }
.site-footer .contact-list svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.foot-bottom { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 1.5rem 0 6rem; font-size: 0.85rem; color: rgba(247,244,241,0.5); }
@media (min-width: 768px) { .foot-bottom { padding-bottom: 2rem; padding-right: 6.5rem; } }
@media (min-width: 768px) { .foot-bottom { flex-direction: row; justify-content: space-between; } }
.foot-bottom a { color: inherit; }
.foot-bottom a:hover { color: var(--amarillo); }

/* ---------- Revelado en scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.2,0.7,0.2,1), transform 0.7s cubic-bezier(0.2,0.7,0.2,1); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Intro del logotipo ---------- */
#intro {
  position: fixed; inset: 0; z-index: 90; display: none; place-items: center;
  background: var(--carbon); pointer-events: none;
}
#intro.show { display: grid; animation: intro-fade 0.4s ease 1.15s forwards; }
#intro .box { position: relative; width: min(72vw, 520px); }
#intro svg.arc { position: absolute; left: 50%; top: 50%; height: 140%; width: auto; transform: translate(-50%, -50%); }
#intro svg.arc circle { stroke-dasharray: 640; stroke-dashoffset: 640; animation: intro-arc 0.9s ease-out forwards; }
#intro img { position: relative; opacity: 0; animation: intro-logo 0.7s ease 0.25s both; }
@keyframes intro-fade { to { opacity: 0; visibility: hidden; } }
@keyframes intro-arc { to { stroke-dashoffset: 0; } }
@keyframes intro-logo { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

/* ---------- 404 ---------- */
.nf { position: relative; min-height: 80svh; display: grid; place-items: center; overflow: hidden; padding-top: var(--header-h); text-align: center; }
.nf .code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 18vw, 9rem); color: var(--rojo); line-height: 1; }
.nf p { max-width: 28rem; margin: 1rem auto 0; color: rgba(247,244,241,0.7); }
.nf .btn-group { justify-content: center; margin-top: 2rem; }

/* ---------- Sección clara ---------- */
.section--light .rule { background: linear-gradient(90deg, var(--rojo) 0 62%, var(--amarillo) 62% 100%); }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem; margin-top: 2rem; }
.logos img { height: 3.5rem; width: auto; object-fit: contain; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .hero-fade { opacity: 1; transform: none; }
  .mx-path { stroke-dashoffset: 0; }
  #intro { display: none !important; }
}

/* ============================================================
   V3 — CORRECCIONES Y MEJORAS (header/footer blancos, imágenes
   contenidas, menú y logo más grandes, efectos de fuego)
   ============================================================ */

/* ---------- Tokens: header más alto y contenido más ancho ---------- */
:root { --header-h: 5rem; --wrap: 80rem; }
@media (min-width: 1200px) { :root { --header-h: 6.25rem; } }

/* ---------- Logotipo más grande ---------- */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 3.6rem; width: auto; }
@media (min-width: 768px) { .brand img { height: 4.1rem; } }
@media (min-width: 1200px) { .brand img { height: 5rem; } }

/* ---------- Menú de escritorio más grande (y aparece cuando cabe) ---------- */
.nav-list { display: none; }
.burger { display: grid; }
@media (min-width: 1240px) {
  .nav-list { display: flex; align-items: center; gap: 0.25rem; }
  .burger { display: none; }
}
.nav-link { padding: 0.7rem 0.85rem; font-size: 1.0625rem; border-radius: 0.4rem; white-space: nowrap; }
@media (min-width: 1400px) { .nav-link { padding-inline: 1rem; } .nav-list { gap: 0.35rem; } }
.nav-link:hover { background: rgba(215,25,32,0.06); }
.nav-cta { margin-left: 0.6rem; padding: 0.7rem 1.35rem; font-size: 1.05rem; white-space: nowrap; }

/* ---------- Botones: más presencia y mejor toque en móvil ---------- */
.btn { padding: 0.85rem 1.7rem; font-size: 1.1rem; border-radius: 0.5rem; min-height: 3rem; }
.btn svg { width: 1.3rem; height: 1.3rem; }

/* Brillo de brasa en el botón principal */
@keyframes ember-glow {
  0%, 100% { box-shadow: 0 10px 30px -12px rgba(215,25,32,0.7); }
  50% { box-shadow: 0 12px 36px -10px rgba(255,90,31,0.85), 0 0 22px -6px rgba(255,193,7,0.5); }
}
.btn-primary { animation: ember-glow 2.8s ease-in-out infinite; }

/* ============================================================
   IMÁGENES DE TARJETAS — contenidas, nunca encimadas al texto
   (posicionamiento absoluto dentro de un marco de altura fija)
   ============================================================ */
.ext-card .fig,
.svc-big .cover,
.aside-card .fig,
.aside-card .cover,
.cat-row .fig {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
}
.ext-card .fig img,
.svc-big .cover img,
.aside-card .fig img,
.aside-card .cover img,
.cat-row .fig img {
  position: absolute;
  left: 1.25rem; right: 1.25rem; top: 1.25rem; bottom: 1.25rem;
  width: calc(100% - 2.5rem);
  height: calc(100% - 2.5rem);
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,0.5));
}

.ext-card .fig { height: 13rem; background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent); }
@media (min-width: 1024px) { .ext-card .fig { height: 14.5rem; } }

.svc-big .cover {
  height: 13.5rem;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255,90,31,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
}
@media (min-width: 768px) { .svc-big .cover { height: 17rem; } }

.aside-card .fig { height: 19rem; background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent); }
.aside-card .fig img { left: 1.5rem; right: 1.5rem; top: 1.5rem; bottom: 1.5rem; width: calc(100% - 3rem); height: calc(100% - 3rem); }
.aside-card .cover {
  height: 15rem;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255,90,31,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
}

.cat-row .fig { height: 17rem; }
@media (min-width: 768px) { .cat-row .fig { height: 21rem; } }
.cat-row .fig img { left: 0.5rem; right: 0.5rem; top: 0.5rem; bottom: 0.5rem; width: calc(100% - 1rem); height: calc(100% - 1rem); }

/* Borde de brasa al pasar el cursor por cualquier tarjeta */
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  border-radius: 0.75rem 0.75rem 0 0;
  background: linear-gradient(90deg, transparent, var(--rojo), var(--brasa), var(--amarillo), var(--brasa), var(--rojo), transparent);
  background-size: 200% 100%;
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
  animation: rule-fire 2.2s linear infinite;
}
@media (hover: hover) { .card:hover::before { opacity: 1; } }

/* ---------- Acciones de tarjetas: apiladas en pantallas angostas ---------- */
@media (max-width: 560px) {
  .ext-card .actions, .svc-big .actions { flex-direction: column; }
  .ext-card .actions .btn, .svc-big .actions .btn { width: 100%; flex: none; }
  .hero .btn-group .btn, .cta .btn-group .btn, .cat-row .btn-group .btn { flex: 1 1 100%; }
  .mx-watermark { display: none; }
}

/* ============================================================
   PLACA BLANCA DEL LOGOTIPO EN EL HERO (el logo es oscuro)
   ============================================================ */
.hero-art {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 35px 70px -35px rgba(0,0,0,0.85);
}
.hero-art::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  border-radius: 0 0 1.25rem 1.25rem;
  background: repeating-linear-gradient(-55deg,
    var(--amarillo) 0 14px, var(--carbon) 14px 18px,
    var(--rojo) 18px 32px, var(--carbon) 32px 36px);
}
.hero-art img { filter: none; }

/* ============================================================
   EFECTOS DE FUEGO (CSS)
   ============================================================ */
/* Barrido de brasa sobre el titular del hero y del CTA final */
@keyframes fire-sweep { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero h1, .cta h2 {
    background: linear-gradient(100deg,
      var(--marfil) 0%, var(--marfil) 38%,
      var(--amarillo) 47%, var(--brasa) 55%, var(--rojo) 63%,
      var(--marfil) 74%, var(--marfil) 100%);
    background-size: 280% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
  }
  .hero h1 { animation: hero-in 0.9s cubic-bezier(0.16,0.8,0.3,1) both, fire-sweep 7s linear infinite; }
  .cta h2 { animation: fire-sweep 7s linear infinite; }
}

/* La regla decorativa ahora "arde" */
@keyframes rule-fire { from { background-position: 0% 0; } to { background-position: 200% 0; } }
.rule {
  background: linear-gradient(90deg, var(--rojo), var(--brasa), var(--amarillo), var(--brasa), var(--rojo));
  background-size: 200% 100%;
  animation: rule-fire 3s linear infinite;
}

/* ============================================================
   PIE DE PÁGINA EN BLANCO (logotipo oscuro)
   ============================================================ */
.site-footer { background: #ffffff; color: var(--carbon); border-top: 0; }
.site-footer img.logo { height: 5rem; }
@media (min-width: 768px) { .site-footer img.logo { height: 5.75rem; } }
.site-footer h2 { color: var(--carbon); }
.site-footer p.about { color: var(--acero); }
.site-footer .cov { color: var(--rojo-oscuro); }
.site-footer nav a { color: var(--acero); }
.site-footer nav a:hover { color: var(--rojo); }
.site-footer nav a strong { color: var(--carbon); }
.site-footer .contact-list a { color: #33333b; }
.site-footer .contact-list a:hover { color: var(--rojo); }
.foot-bottom { color: var(--acero); border-top: 1px solid rgba(23,23,26,0.08); }
.foot-bottom a:hover { color: var(--rojo); }

/* ---------- Burbuja de WhatsApp un poco mayor ---------- */
.wa-float a { width: 3.75rem; height: 3.75rem; }
.wa-float a svg { width: 2.1rem; height: 2.1rem; }

/* ---------- Movimiento reducido: apagar efectos de fuego ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .rule, .card::before { animation: none !important; }
  .hero h1, .cta h2 {
    background: none; color: var(--marfil);
    -webkit-text-fill-color: currentColor;
  }
}

/* ---------- Menú móvil: fondo blanco sólido (sin transparencias) ---------- */
.mobile-menu { background: #ffffff; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ============================================================
   V4 — Header amplio con logotipo sin comprimir, burbuja de
   WhatsApp con selector de canal y preguntas frecuentes a 2 columnas
   ============================================================ */

/* ---------- Header: abarca el ancho, el logo nunca se aplasta ---------- */
.site-header .header-inner { max-width: 112rem; padding-inline: clamp(1rem, 2.5vw, 3rem); }
.brand { flex-shrink: 0; }
.brand img { max-width: none; height: 3.6rem; width: auto; }
@media (min-width: 768px)  { .brand img { height: 4.1rem; } }
@media (min-width: 1200px) { .brand img { height: 5.25rem; } }
@media (min-width: 1600px) { .brand img { height: 5.75rem; } :root { --header-h: 6.75rem; } }
.header-inner > nav { flex: 1 1 auto; display: flex; justify-content: flex-end; min-width: 0; }
@media (min-width: 1240px) {
  .nav-list { gap: clamp(0.15rem, 0.7vw, 1.1rem); }
  .nav-link { font-size: clamp(1.0625rem, 0.8rem + 0.3vw, 1.25rem); padding-inline: clamp(0.7rem, 0.8vw, 1.1rem); }
  .nav-cta { font-size: clamp(1.05rem, 0.8rem + 0.3vw, 1.2rem); padding: 0.75rem clamp(1.3rem, 1.4vw, 1.9rem); margin-left: clamp(0.5rem, 1vw, 1.25rem); }
}

/* ---------- Burbuja de WhatsApp con selector de canal ---------- */
.edm-chat {
  position: fixed; z-index: 70;
  right: clamp(14px, 2.5vw, 32px); bottom: clamp(16px, 3.5vh, 32px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.85rem;
}
.edm-chat__btn {
  position: relative; display: grid; place-items: center;
  width: 3.9rem; height: 3.9rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}
.edm-chat__btn svg { width: 2.2rem; height: 2.2rem; display: block; }
.edm-chat__btn .ico-close { display: none; }
.edm-chat__btn .ico-close svg { width: 1.6rem; height: 1.6rem; }
.edm-chat.is-open .edm-chat__btn .ico-wa { display: none; }
.edm-chat.is-open .edm-chat__btn .ico-close { display: block; }
.edm-chat.is-open .edm-chat__btn { background: var(--carbon); }
@media (hover: hover) { .edm-chat__btn:hover { transform: scale(1.06); } }
@keyframes edm-pulse {
  0% { box-shadow: 0 12px 28px rgba(0,0,0,0.45), 0 0 0 0 rgba(37,211,102,0.6); }
  70% { box-shadow: 0 12px 28px rgba(0,0,0,0.45), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 12px 28px rgba(0,0,0,0.45), 0 0 0 0 rgba(37,211,102,0); }
}
.edm-chat__btn.pulse { animation: edm-pulse 1.4s ease-out 2; }
.edm-chat__tip {
  position: absolute; right: calc(100% + 0.75rem); bottom: 1.1rem;
  background: var(--carbon); color: var(--marfil); font-size: 0.85rem; font-weight: 500;
  padding: 0.45rem 0.8rem; border-radius: 0.4rem; white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.12); opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
@media (hover: hover) { .edm-chat:not(.is-open):hover .edm-chat__tip { opacity: 1; } }

.edm-chat__panel {
  width: min(92vw, 23rem); background: #ffffff; color: var(--carbon);
  border-radius: 1rem; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.65), 0 0 0 1px rgba(23,23,26,0.06);
  transform-origin: bottom right;
  animation: edm-pop 0.25s cubic-bezier(0.2,0.8,0.2,1) both;
}
.edm-chat__panel[hidden] { display: none; }
@keyframes edm-pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
.edm-chat__head { background: linear-gradient(135deg, #128c7e, #25d366); color: #fff; padding: 1.1rem 1.25rem; }
.edm-chat__head strong { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.edm-chat__head span { display: block; margin-top: 0.3rem; font-size: 0.85rem; opacity: 0.92; }
.edm-chat__list li + li { border-top: 1px solid rgba(23,23,26,0.08); }
.edm-chat__list a {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.95rem 1.1rem;
  color: var(--carbon); text-decoration: none; transition: background 0.2s ease;
}
.edm-chat__list a:hover, .edm-chat__list a:focus-visible { background: rgba(37,211,102,0.1); }
.edm-chat__ico {
  flex-shrink: 0; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 999px;
  background: rgba(37,211,102,0.16); color: #128c7e;
}
.edm-chat__ico svg { width: 1.35rem; height: 1.35rem; }
.edm-chat__txt { min-width: 0; }
.edm-chat__txt strong { display: block; font-size: 0.97rem; font-weight: 600; }
.edm-chat__txt small { display: block; margin-top: 0.15rem; font-size: 0.8rem; line-height: 1.35; color: var(--acero); }
.edm-chat__arrow { margin-left: auto; flex-shrink: 0; width: 1.1rem; height: 1.1rem; color: var(--acero); }
.edm-chat__foot { padding: 0.8rem 1.1rem; font-size: 0.82rem; color: var(--acero); background: #faf8f6; border-top: 1px solid rgba(23,23,26,0.08); }
.edm-chat__foot a { color: var(--rojo); font-weight: 600; text-decoration: none; }
.edm-chat__foot a:hover { text-decoration: underline; }
body.menu-open .edm-chat { display: none; }

/* ---------- Preguntas frecuentes en dos columnas ---------- */
@media (min-width: 900px) {
  .faq { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; background: none; border: 0; }
  .faq-item, .faq-item + .faq-item {
    border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; background: rgba(36,36,42,0.7);
  }
  .faq-btn { padding: 1.15rem 1.25rem; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .edm-chat__btn.pulse, .edm-chat__panel { animation: none !important; }
}

/* ---------- Corrección de raíz: position:fixed en toda la web ----------
   La animación de entrada del <body> usaba transform; Chrome conserva una
   matriz identidad al terminar y eso convierte al body en bloque contenedor
   de los elementos fijos (header, barra de progreso, menú móvil y burbuja de
   WhatsApp), que quedaban pegados a la página en vez de a la ventana.
   Ahora el body solo hace un fundido y el desplazamiento lo hace <main>. */
@keyframes page-fade { from { opacity: 0; } to { opacity: 1; } }
body { animation: page-fade 0.45s ease both; }
main { animation: page-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* ---------- Botones de tarjetas compactas: nunca en dos líneas ---------- */
.ext-card .actions .btn { flex: 1 1 auto; white-space: nowrap; padding: 0.6rem 0.7rem; font-size: 0.95rem; min-height: 2.7rem; }

/* ---------- Línea de créditos del pie de página ---------- */
.foot-bottom p { text-align: center; }
.foot-bottom p a { color: var(--carbon); font-weight: 600; text-decoration: none; }
.foot-bottom p a:hover { color: var(--rojo); text-decoration: underline; }
