/* GENERADO por tools/build-css.php (style, header, footer, index/hero, seo-pages, typography). No editar a mano: editar los CSS fuente y regenerar. */
/* ==== style.css ==== */
/* Poppins (cuerpo) y Barlow Condensed (titulos y botones) se cargan via <link> en head.php; ver typography.css */

.visually-hidden{
    display: none !important;
}

:root {
    --celeste: #0097C4;
    --celeste-dark: #006F8E;
    --celeste-light: #E0F4FA;
    --naranja: #f60507;
    --naranja-dark: #c40406;
    --naranja-light: #fde0e1;
    --blanco: #FFFFFF;
    --gris-claro: #F5F7F9;
    --gris-medio: #DEE4EA;
    --gris-texto: #4A5568;
    --negro: #1A202C;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0); /* Transparente */
}

::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0); /* Transparente */
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* anchors no quedan tapados por el navbar fijo */
}

body{
    width: 100%;
    background-color: var(--bg);
}

/* ---- Spacer para navbar fijo en paginas sin hero ---- */
.navbar-spacer {
    height: 72px;
}

body.has-hero .navbar-spacer {
    display: none;
}

@media (min-width: 768px) {
    .navbar-spacer {
        height: 78px;
    }
    html {
        scroll-padding-top: 90px;
    }
}

*{
    box-sizing: border-box;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    margin: 0px;
    padding: 0px;
    list-style: none;
    text-decoration: none;
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 300,
  'GRAD' 0,
  'opsz' 24
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.32), 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wa-float i {
  color: inherit;
  font-size: 2rem;
  line-height: 1;
}

.wa-float:hover,
.wa-float:focus-visible {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.38), 0 10px 22px rgba(0, 0, 0, 0.22);
}

/* ---- Bubble de estado al lado del boton flotante ---- */
.wa-float-bubble {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: #1f2937;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  padding: 7px 13px 7px 11px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  pointer-events: none;
  animation: wa-bubble-hide 4s ease-in forwards;
}

@keyframes wa-bubble-hide {
  0%, 75%  { opacity: 1; visibility: visible; }
  100%     { opacity: 0; visibility: hidden; }
}

.wa-float-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wa-float.is-online .wa-float-dot {
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: wa-pulse 1.8s ease-out infinite;
}

.wa-float.is-offline .wa-float-dot {
  background: #9ca3af;
}

.wa-float.is-offline .wa-float-text {
  color: #4b5563;
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float.is-online .wa-float-dot { animation: none; }
}

@media (max-width: 640px) {
  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .wa-float i {
    font-size: 1.85rem;
  }

  .wa-float-bubble {
    font-size: 12px;
    padding: 6px 11px 6px 10px;
    right: calc(100% + 8px);
  }
}

/* ==== header.css ==== */
/* ===========================
   NAVBAR — HN Contra Incendios
   Mobile-first. Drawer minimal blanco.
   En páginas con .has-hero arranca transparente; al scrollear
   o abrir el menu vuelve al fondo blanco.
   =========================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #F65F01;
  box-shadow: 0 2px 16px rgba(15, 18, 22, 0.10);
  border-bottom: 2px solid #A03B00;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

body.has-hero .navbar {
  background: transparent;
  box-shadow: none;
  border-bottom-color: transparent;
}

body.has-hero.is-scrolled .navbar,
body.has-hero.menu-open .navbar {
  background: #F65F01;
  box-shadow: 0 2px 16px rgba(15, 18, 22, 0.10);
  border-bottom-color: #A03B00;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ---- Logo ---- */
.navbar-logo {
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.navbar-logo-img {
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

/* ---- Hamburger ---- */
.navbar-toggle {
  position: relative;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 11px 9px;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.3s ease;
}

/* El drawer mobile abierto sigue con fondo naranja, así que el X
   queda blanco como en estado normal */
body.menu-open .navbar-toggle span {
  background: #fff;
}

.navbar-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.navbar-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   MENU DRAWER MOBILE — minimal
   Fondo blanco, items grandes en mayúsculas centrados,
   separadores tenues, underline rojo en el activo,
   CTAs apilados abajo del todo.
   =========================== */
.navbar-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  background: #F65F01;
  padding: 84px 22px 28px;
  list-style: none;
  margin: 0;
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.navbar-menu.active {
  display: flex;
  animation: navbar-menu-fadein 0.22s ease-out both;
}

@keyframes navbar-menu-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.navbar-item {
  width: 100%;
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.navbar-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 22px 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  transition: opacity 0.18s ease;
}

.navbar-link:hover,
.navbar-link:focus-visible,
.navbar-link:active {
  background: transparent;
  opacity: 0.75;
  color: #fff;
  transform: none;
}

/* Item activo: subrayado blanco corto centrado debajo del texto */
.navbar-link.is-active::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ---- Bloque de CTAs abajo ---- */
.navbar-cta-block {
  list-style: none;
  width: 100%;
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: none;
}

.navbar-cta-wsp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 22px;
  background: transparent;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.50);
  border-radius: 999px;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.navbar-cta-wsp i {
  color: #25D366;
  font-size: 22px;
  line-height: 1;
}

.navbar-cta-wsp:hover,
.navbar-cta-wsp:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

/* CTA primario invertido: fondo blanco con texto naranja
   para destacar dentro del drawer naranja */
.navbar-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 22px;
  background: #fff;
  color: #F65F01;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.navbar-cta-primary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.navbar-cta-primary:hover,
.navbar-cta-primary:focus-visible {
  background: #1F252C;
  color: #fff;
}

.navbar-cta-primary:active {
  transform: translateY(1px);
}

body.menu-open {
  overflow: hidden;
}

/* ===========================
   Tablet / Desktop (>= 768px)
   Volver al menu inline. Mantengo el header existente.
   =========================== */
@media (min-width: 768px) {
  .navbar-container {
    padding: 14px 32px;
  }

  body.is-scrolled .navbar-container {
    padding: 10px 32px;
  }

  .navbar-toggle {
    display: none;
  }

  .navbar-menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    overflow: visible;
  }

  .navbar-item {
    width: auto;
    border-bottom: none;
  }

  .navbar-link {
    width: auto;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #fff;
    background: transparent;
    border-radius: 8px;
    white-space: nowrap;
    transition: color 0.25s ease, background 0.2s ease, text-shadow 0.3s ease;
  }

  .navbar-link:hover,
  .navbar-link:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    opacity: 1;
  }

  /* Sobre hero (header transparente): mismos links blancos pero con
     sombra para legibilidad sobre la foto del hero */
  body.has-hero .navbar-link {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  }

  body.has-hero.is-scrolled .navbar-link {
    text-shadow: none;
  }

  /* Item activo desktop: underline blanco más chico */
  .navbar-link.is-active::after {
    bottom: 4px;
    width: 18px;
    height: 2px;
    background: #fff;
  }

  /* CTA block: oculto el WhatsApp del bloque (queda solo el FAB), Cotizar inline */
  .navbar-cta-block {
    list-style: none;
    margin-top: 0;
    padding-top: 0;
    width: auto;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    margin-left: 4px;
  }

  .navbar-cta-wsp {
    display: none;
  }

  /* CTA primario en desktop: invertido (fondo blanco, texto naranja)
     para contrastar con el header naranja */
  .navbar-cta-primary {
    width: auto;
    min-height: 0;
    padding: 10px 20px;
    font-size: 13px;
    letter-spacing: 0.08em;
    background: #fff;
    color: #F65F01;
    box-shadow: 0 4px 14px rgba(15, 18, 22, 0.14);
  }

  .navbar-cta-primary svg {
    width: 14px;
    height: 14px;
  }

  .navbar-cta-primary:hover,
  .navbar-cta-primary:focus-visible {
    background: #1F252C;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 18, 22, 0.22);
  }

  body.is-scrolled .navbar-cta-primary {
    box-shadow: 0 2px 8px rgba(15, 18, 22, 0.18);
  }
}

@media (min-width: 1024px) {
  .navbar-container {
    padding: 16px 40px;
  }

  .navbar-logo-img {
    height: 48px;
  }

  .navbar-link {
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .navbar,
  .navbar-link,
  .navbar-toggle,
  .navbar-toggle span,
  .navbar-cta-primary,
  .navbar-cta-wsp {
    transition: none;
  }
  .navbar-menu.active {
    animation: none;
  }
}

/* ==== footer.css ==== */
/* ===========================
   FOOTER · HN Contra Incendios
   Mobile-first. Fondo carbón, eyebrows naranja, links blanco
   translúcido. Sin gradientes ni hover decorativos.
   =========================== */

.ftr {
  background: #0F1216;
  color: #fff;
  border-top: 2px solid #A03B00;
}

.ftr__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 22px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ---- Brand ---- */
.ftr__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ftr__logo {
  display: inline-block;
  width: fit-content;
}

.ftr__logo-img {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.ftr__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.60);
  font-weight: 400;
  max-width: 38ch;
}

.ftr__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ftr__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.20);
  border-radius: 50%;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ftr__social-btn:hover,
.ftr__social-btn:focus-visible {
  border-color: #F65F01;
  background: #F65F01;
  color: #fff;
}

/* ---- Columnas ---- */
.ftr__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ftr__title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F65F01;
  line-height: 1;
}

.ftr__title-line {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: #F65F01;
}

.ftr__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ftr__list a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ftr__list a:hover,
.ftr__list a:focus-visible {
  color: #fff;
}

/* ---- Bottom bar ---- */
.ftr__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ftr__bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.ftr__copy,
.ftr__credit {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.ftr__credit-link {
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
  transition: color 0.2s ease;
}

.ftr__credit-link:hover,
.ftr__credit-link:focus-visible {
  color: #F65F01;
}

/* ---- Tablet (>= 768px) ---- */
@media (min-width: 768px) {
  .ftr__inner {
    padding: 72px 32px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 40px;
  }

  .ftr__brand {
    grid-column: 1 / -1;
  }

  .ftr__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 22px 32px 24px;
  }
}

/* ---- Desktop (>= 1024px) ---- */
@media (min-width: 1024px) {
  .ftr__inner {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 56px;
    padding: 88px 40px 56px;
  }

  .ftr__brand {
    grid-column: auto;
  }

  .ftr__desc {
    font-size: 14.5px;
  }
}

/* ---- Reduce motion ---- */
@media (prefers-reduced-motion: reduce) {
  .ftr__social-btn,
  .ftr__list a,
  .ftr__credit-link {
    transition: none;
  }
}

/* NAP en texto (SEO 2026-10) */
.ftr__nap {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 42ch;
}
.ftr__nap a {
  color: #fff;
  text-decoration: none;
}

/* ==== index/hero.css ==== */
/* ===========================
   HERO — HN Contra Incendios
   Mobile-first. Foto fija real, sin slideshow.
   Tokens locales: no tocar :root global.
   =========================== */

#hero {
  --hero-ink: #0F1216;
  --hero-line: rgba(255, 255, 255, 0.12);
  --hero-text: #FFFFFF;
  --hero-text-soft: rgba(255, 255, 255, 0.82);
  --hero-text-mute: rgba(255, 255, 255, 0.58);
  --hero-red: #F65F01;
  --hero-red-dark: #D14E00;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--hero-ink);
  color: var(--hero-text);
}

/* ---- Slideshow de fondo (10 capas + crossfade + Ken Burns en tablet+) ---- */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--hero-ink);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  opacity: 0;
  will-change: opacity;
  animation: hero-slide-fade 30s linear infinite;
}

/* Solo fade en mobile (sin zoom para no esconder partes de la imagen) */
@keyframes hero-slide-fade {
  0%     { opacity: 1; }
  8.33%  { opacity: 1; }
  10%    { opacity: 0; }
  98.33% { opacity: 0; }
  100%   { opacity: 1; }
}

/* Zoom Ken Burns — se aplica solo en tablet+ */
@keyframes hero-slide-zoom {
  0%     { transform: scale(1.01); }
  8.33%  { transform: scale(1.08); }
  10%    { transform: scale(1.085); }
  98.33% { transform: scale(1); }
  100%   { transform: scale(1.01); }
}

/* Shift de -0.5s + cada slide siguiente arranca 3s antes en el ciclo */
/* P10.2: solo la slide 1 trae imagen desde el CSS (en celular, la variante de 640 px). Las slides 2-10 reciben
   la imagen por JS despues de load (data-bg en los partials del hero): no bajan 1,4 MB que no se ven al cargar. */
.hero-slide-1  { background-image: url('../images/hero/hero-01.webp'); animation-delay: -0.5s;  }
@media (max-width: 639px) {
  .hero-slide-1 { background-image: url('../images/hero/hero-01-640.webp'); }
}
.hero-slide-2  { animation-delay: -27.5s; }
.hero-slide-3  { animation-delay: -24.5s; }
.hero-slide-4  { animation-delay: -21.5s; }
.hero-slide-5  { animation-delay: -18.5s; }
.hero-slide-6  { animation-delay: -15.5s; }
.hero-slide-7  { animation-delay: -12.5s; }
.hero-slide-8  { animation-delay: -9.5s;  }
.hero-slide-9  { animation-delay: -6.5s;  }
.hero-slide-10 { animation-delay: -3.5s;  }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 14, 0.62) 0%,
    rgba(8, 10, 14, 0.82) 55%,
    rgba(8, 10, 14, 0.96) 100%
  );
}

/* ---- Contenido ---- */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 22px 44px;
  /* En celular el hero mide lo que mide su contenido (sin 100vh forzado). */
  justify-content: center;
  animation: hero-fadein 0.5s ease-out both;
}

/* P10.2: el contenido del hero (H1 = LCP) arranca visible; queda solo el desplazamiento corto. */
@keyframes hero-fadein {
  from { transform: translateY(8px); }
  to   { transform: translateY(0); }
}

/* ---- H1 ---- */
.hero-title {
  margin: 0;
  font-size: clamp(2rem, 9.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--hero-text);
  text-wrap: balance;
  max-width: 14ch;
}

/* ---- Sub ---- */
.hero-sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--hero-text-soft);
  max-width: 40ch;
  font-weight: 400;
}

/* ---- Acciones ---- */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  background: var(--hero-red);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.12s ease;
}

.hero-cta-primary i {
  font-size: 1.25em;
  line-height: 1;
}

.hero-cta-primary:hover,
.hero-cta-primary:focus-visible {
  background: var(--hero-red-dark);
  color: #fff;
}

.hero-cta-primary:active {
  transform: translateY(1px);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hero-cta-secondary:hover,
.hero-cta-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.hero-cta-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hero-cta-secondary:hover .hero-cta-arrow,
.hero-cta-secondary:focus-visible .hero-cta-arrow {
  transform: translateX(3px);
}

.hero-cta-primary:focus-visible,
.hero-cta-secondary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---- Stats strip (debajo del primer viewport, dentro del #hero) ---- */
.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  isolation: isolate;
  overflow: hidden;
}

.hero-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero/hero-01.webp');
  background-size: cover;
  background-position: center center;
  z-index: -2;
}
@media (max-width: 639px) {
  .hero-stats::before { background-image: url('../images/hero/hero-01-640.webp'); } /* P10.2: la misma foto que la slide 1 */
}

.hero-stats::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(8, 18, 32, 0.88) 0%,
    rgba(15, 18, 22, 0.92) 100%
  );
  z-index: -1;
}

.hero-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 22px 26px;
}

.hero-stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stat-value span {
  color: var(--hero-red);
  font-weight: 800;
}

.hero-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1px;
  line-height: 1.4;
  margin-top: 0;
}

/* ---- Testimonio estilo Google card ---- */
.hero-testimonial {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px 36px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-testimonial-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px 20px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hero-red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.hero-testimonial-info strong {
  font-size: 13.5px;
  font-weight: 600;
  color: #202124;
}

.hero-testimonial-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hero-testimonial-stars i {
  color: #f5c518;
  font-size: 12px;
}

.hero-testimonial-time {
  font-size: 11px;
  color: #70757a;
  margin-left: 4px;
}

.hero-testimonial-quote {
  font-size: 13.5px;
  color: #3c4043;
  line-height: 1.58;
  margin: 0;
}

/* ---- Tablet (>= 640px) ---- */
@media (min-width: 640px) {
  /* En tablet/desktop sí suma el Ken Burns */
  .hero-slide {
    will-change: opacity, transform;
    animation-name: hero-slide-fade, hero-slide-zoom;
    animation-duration: 30s, 30s;
    animation-timing-function: linear, linear;
    animation-iteration-count: infinite, infinite;
  }

  .hero-content {
    padding: 132px 32px 56px;
    gap: 22px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 6vw, 3.4rem);
    max-width: 18ch;
  }

  .hero-sub {
    font-size: 1.0625rem;
    max-width: 48ch;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    width: auto;
    flex: 0 0 auto;
    min-width: 180px;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-stat {
    padding: 38px 28px 30px;
  }

  .hero-stat-value {
    font-size: 2.5rem;
  }

  .hero-testimonial {
    padding: 28px 28px 40px;
  }
}

/* ---- Desktop (>= 1024px) ---- */
@media (min-width: 1024px) {
  .hero-content {
    padding: 160px 40px 80px;
    gap: 26px;
    /* Solo en desktop el hero ocupa la pantalla completa */
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-title {
    font-size: 3.75rem;
    max-width: 18ch;
  }

  .hero-sub {
    font-size: 1.125rem;
    max-width: 56ch;
  }

  .hero-stat {
    padding: 44px 32px 36px;
  }

  .hero-stat-value {
    font-size: 2.75rem;
  }

  .hero-stat-label {
    font-size: 13px;
  }
}

/* ---- Reduce motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; }
  .hero-cta-primary,
  .hero-cta-secondary,
  .hero-cta-arrow {
    transition: none;
  }
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide-1 { opacity: 1; }
}

/* ===========================
   BOTONES GENÉRICOS (otras secciones del home)
   Se conservan tal cual del archivo previo para no romper
   estilos en proyectos, servicios, contacto, etc.
   =========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--naranja);
  color: var(--blanco);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.2px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--naranja-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(242, 99, 34, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid var(--gris-medio);
  color: var(--gris-texto);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--celeste);
  color: var(--celeste);
}

/* Enlace dentro de la bajada (SEO 2026-10) */
.hero-sub a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sellos de confianza y fecha de actualización (SEO 2026-10) */
.hero-sellos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.hero-sellos li::before {
  content: '✓ ';
  color: #F65F01;
  font-weight: 700;
}
.hero-actualizado {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

/* ==== seo-pages.css ==== */
/* ===========================================================
   PLANTILLA DE PÁGINAS INTERNAS (servicios, cobertura, blog)
   Mobile-first. Mismo sistema visual que el home:
   naranja #F65F01, tinta #0F1216, fondo #F4F6F8,
   cards blancas radio 14px, botones pill, eyebrow con línea.
   =========================================================== */

.seo-page {
  --sp-orange: #F65F01;
  --sp-orange-dark: #D14E00;
  --sp-ink: #0F1216;
  --sp-title: #1F252C;
  --sp-text: #4A5560;
  --sp-bg: #F4F6F8;
  --sp-line: #E3E6EA;
  --sp-radius: 14px;
  --sp-shadow: 0 14px 32px rgba(15, 18, 22, 0.08);

  background: var(--sp-bg);
  color: var(--sp-title);
}

/* Las imágenes envueltas en <picture> no deben romper el layout */
.seo-page picture {
  display: block;
}

/* ---------- Eyebrow (igual que el home) ---------- */
.seo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sp-orange);
  line-height: 1;
}

.seo-kicker::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

/* ---------- Botones ---------- */
.seo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.seo-btn--primary {
  background: var(--sp-orange);
  color: #fff;
}

.seo-btn--primary:hover,
.seo-btn--primary:focus-visible {
  background: var(--sp-orange-dark);
  color: #fff;
}

.seo-btn--secondary {
  background: #fff;
  color: var(--sp-title);
  border: 1.5px solid var(--sp-line);
}

.seo-btn--secondary:hover,
.seo-btn--secondary:focus-visible {
  border-color: rgba(246, 95, 1, 0.45);
  color: var(--sp-title);
}

.seo-btn:active {
  transform: translateY(1px);
}

.seo-btn:focus-visible {
  outline: 2px solid var(--sp-orange);
  outline-offset: 3px;
}

/* ===========================================================
   HERO
   =========================================================== */

.seo-hero {
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: var(--sp-ink);
  color: #fff;
  padding: 40px 22px 44px;
}

/* Come el spacer del navbar: el hero oscuro arranca pegado a la barra */
.seo-page > .seo-hero:first-child {
  margin-top: -72px;
  padding-top: 104px;
}

.seo-hero__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.seo-hero__content h1 {
  margin: 0;
  font-size: clamp(1.9rem, 8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}

.seo-hero__content p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 56ch;
}

.seo-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.seo-hero .seo-btn--secondary {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.seo-hero .seo-btn--secondary:hover,
.seo-hero .seo-btn--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.seo-hero__media {
  overflow: hidden;
  border-radius: var(--sp-radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.seo-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 40%;
  background: #1a1f26;
}

/* ===========================================================
   SECCIONES
   =========================================================== */

.seo-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 22px;
}

.seo-section > .seo-kicker + h2,
.seo-section h2 {
  margin: 14px 0 14px;
  font-size: clamp(1.6rem, 6.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--sp-title);
  text-wrap: balance;
}

.seo-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sp-title);
  line-height: 1.3;
}

.seo-section p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--sp-text);
}

.seo-section p:last-child {
  margin-bottom: 0;
}

.seo-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

/* ---------- Lista con checks ---------- */
.seo-list {
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 22px;
  box-shadow: var(--sp-shadow);
}

.seo-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seo-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--sp-title);
}

.seo-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F65F01' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Cards ---------- */
.seo-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 22px;
}

.seo-cards article {
  position: relative;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 22px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.seo-cards article::before {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--sp-orange);
  margin-bottom: 16px;
}

.seo-cards article:hover {
  border-color: rgba(246, 95, 1, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--sp-shadow);
}

.seo-cards article p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--sp-text);
}

.seo-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--sp-orange);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.seo-card-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.seo-card-link:hover::after {
  transform: translateX(3px);
}

/* ---------- Pasos en cards (div.seo-steps > article) ---------- */
div.seo-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 22px;
}

div.seo-steps article {
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 22px;
}

div.seo-steps article > span {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sp-orange);
}

div.seo-steps article p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--sp-text);
}

/* ---------- Pasos numerados (ol.seo-steps) ---------- */
ol.seo-steps {
  counter-reset: sp-step;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

ol.seo-steps li {
  counter-increment: sp-step;
  position: relative;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 18px 20px 18px 60px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--sp-text);
}

ol.seo-steps li::before {
  content: counter(sp-step, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 18px;
  font-size: 15px;
  font-weight: 800;
  color: var(--sp-orange);
  letter-spacing: -0.02em;
}

ol.seo-steps li strong {
  display: block;
  margin-bottom: 2px;
  color: var(--sp-title);
  font-weight: 700;
}

/* ---------- Caja CTA ---------- */
.seo-cta-box {
  position: relative;
  overflow: hidden;
  background: var(--sp-ink);
  color: #fff;
  border-radius: var(--sp-radius);
  padding: 26px 22px 28px;
}

.seo-cta-box::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--sp-orange);
}

.seo-cta-box h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.seo-cta-box p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

.seo-cta-box .seo-btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  margin-top: 10px;
}

/* ---------- FAQ ---------- */
.seo-faq details {
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  margin-top: 12px;
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}

.seo-faq details[open] {
  border-color: rgba(246, 95, 1, 0.35);
}

.seo-faq summary {
  position: relative;
  display: block;
  padding-right: 32px;
  cursor: pointer;
  color: var(--sp-title);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
}

.seo-faq summary::-webkit-details-marker {
  display: none;
}

.seo-faq summary::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F65F01' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}

.seo-faq details[open] summary::after {
  transform: rotate(180deg);
}

.seo-faq details p {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--sp-text);
}

/* ---------- Links relacionados ---------- */
.seo-related-links {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seo-related-links a {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  color: var(--sp-text);
  font-size: 14.5px;
  line-height: 1.6;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.seo-related-links a:hover {
  border-color: rgba(246, 95, 1, 0.45);
  transform: translateX(3px);
}

.seo-related-links a strong {
  color: var(--sp-title);
  font-weight: 700;
}

/* ---------- Tabla comparativa ---------- */
.seo-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  overflow: hidden;
  font-size: 14.5px;
}

.seo-comparison-table th,
.seo-comparison-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #EEF1F5;
  color: var(--sp-title);
  line-height: 1.55;
}

.seo-comparison-table thead th {
  background: var(--sp-title);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.seo-comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.seo-comparison-table tbody tr:nth-child(even) td {
  background: #F9FAFC;
}

/* ===========================================================
   GALERÍA "SISTEMA SIN MANTENIMIENTO"
   =========================================================== */

.seo-gallery__intro {
  max-width: 70ch;
}

.seo-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 22px;
}

.seo-gallery__item {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.seo-gallery__item:hover {
  border-color: rgba(246, 95, 1, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--sp-shadow);
}

.seo-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #EEF1F5;
}

.seo-gallery__item figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 22px;
}

.seo-gallery__item figcaption strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sp-title);
  line-height: 1.3;
}

.seo-gallery__item figcaption span {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--sp-text);
}

.seo-gallery__compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow);
}

.seo-gallery__compare-media {
  overflow: hidden;
  border-radius: 10px;
}

.seo-gallery__compare-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #EEF1F5;
}

.seo-gallery__compare h3 {
  margin: 12px 0 10px;
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--sp-title);
  line-height: 1.2;
}

.seo-gallery__compare .seo-btn {
  margin-top: 8px;
}

/* ===========================================================
   ARTÍCULOS DE BLOG
   =========================================================== */

.seo-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 22px 56px;
}

.seo-article__header h1 {
  margin: 14px 0 14px;
  font-size: clamp(1.9rem, 7.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--sp-title);
  text-wrap: balance;
}

.seo-article__header p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--sp-text);
}

.seo-article__header img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--sp-radius);
  margin-top: 24px;
  box-shadow: var(--sp-shadow);
}

.seo-article__body {
  margin-top: 28px;
}

.seo-article__body section {
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 22px;
  margin-bottom: 14px;
}

.seo-article__body h2 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 5.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--sp-title);
}

.seo-article__body p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--sp-text);
}

.seo-article__body p:last-child {
  margin-bottom: 0;
}

.seo-article__body ul {
  margin: 0 0 14px;
  padding-left: 20px;
  list-style: disc;
  color: var(--sp-text);
  font-size: 15.5px;
  line-height: 1.75;
}

/* ---------- Índice de blog ---------- */
.seo-index-title {
  margin: 14px 0 14px;
  font-size: clamp(1.9rem, 7.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--sp-title);
  text-wrap: balance;
}

.seo-index-intro {
  max-width: 70ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--sp-text);
}

/* ===========================================================
   TABLET (>= 640px)
   =========================================================== */
@media (min-width: 640px) {
  .seo-hero {
    padding: 56px 32px 60px;
    gap: 32px;
  }

  .seo-page > .seo-hero:first-child {
    margin-top: -78px;
    padding-top: 128px;
  }

  .seo-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .seo-btn {
    width: auto;
    min-width: 190px;
  }

  .seo-section {
    padding: 72px 32px;
  }

  .seo-cards,
  div.seo-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .seo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .seo-list,
  .seo-cta-box {
    padding: 26px;
  }

  .seo-gallery__compare {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    padding: 26px;
    gap: 26px;
  }

  .seo-article {
    padding: 56px 32px 72px;
  }

  .seo-article__body section {
    padding: 28px;
  }
}

/* ===========================================================
   DESKTOP (>= 1024px)
   =========================================================== */
@media (min-width: 1024px) {
  /* Fondo oscuro a todo el ancho, contenido alineado con las secciones.
     Se usa % (no vw) para no contar el scrollbar y evitar scroll horizontal. */
  .seo-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 56px;
    padding: 80px max(40px, calc((100% - 1120px) / 2)) 88px;
  }

  .seo-page > .seo-hero:first-child {
    margin-top: -78px;
    padding-top: 150px;
  }

  .seo-hero__content h1 {
    font-size: clamp(2.4rem, 3.4vw, 3.1rem);
  }

  .seo-hero__content p {
    font-size: 1.0625rem;
  }

  .seo-hero__media img {
    aspect-ratio: 5 / 4;
  }

  .seo-section {
    padding: 96px 40px;
  }

  .seo-section h2 {
    font-size: clamp(2rem, 2.9vw, 2.5rem);
  }

  .seo-section p {
    font-size: 1.0625rem;
  }

  .seo-grid-2 {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 48px;
  }

  .seo-cards,
  div.seo-steps {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 28px;
  }

  .seo-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
  }

  ol.seo-steps li {
    font-size: 15.5px;
    padding: 20px 24px 20px 64px;
  }

  ol.seo-steps li::before {
    left: 24px;
    top: 20px;
    font-size: 16px;
  }

  .seo-article {
    padding: 72px 40px 96px;
  }

  .seo-article__header img {
    aspect-ratio: 16 / 9;
  }
}

/* ===========================================================
   ACCESIBILIDAD / MOVIMIENTO
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  .seo-btn,
  .seo-cards article,
  .seo-gallery__item,
  .seo-related-links a,
  .seo-card-link::after,
  .seo-faq summary::after {
    transition: none;
  }
}

/* Scroll horizontal sólo dentro de la tabla, nunca en el body */
@media (max-width: 640px) {
  .seo-comparison-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ---------- Bloques semanticos (partials/bloques-seo.php) ---------- */
/* Respuesta directa debajo del H2: es el pasaje que retoman los buscadores */
.seo-answer {
  font-weight: 600;
  color: var(--sp-text);
  border-left: 3px solid var(--sp-orange);
  padding-left: 14px;
}

.seo-comparison-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  padding: 0 0 10px;
}

.seo-table-note {
  font-size: 13.5px;
  color: var(--sp-muted, #666);
  margin-top: 10px;
}

/* Tarjetas del indice de guias: H2 con el mismo estilo que los H3 de cards */
.seo-section .seo-cards h2.seo-card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--sp-title);
}

/* ===========================================================
   FIXES MOBILE
   =========================================================== */
/* Los items de grid no pueden crecer mas que su columna (tablas, kickers largos) */
.seo-grid-2 > * {
  min-width: 0;
}

.seo-kicker {
  flex-wrap: wrap;
  max-width: 100%;
  line-height: 1.4;
}

/* Tablas: scroll interno con columnas legibles, nunca scroll del body */
.seo-comparison-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: normal;
}

.seo-comparison-table th,
.seo-comparison-table td {
  min-width: 130px;
  vertical-align: top;
}

.seo-comparison-table th:first-child,
.seo-comparison-table td:first-child {
  min-width: 120px;
}

/* ===========================================================
   ICONOS (src/libs/iconos.php) — mismo lenguaje que la home
   (.cob-icon): tile con degrade suave, borde naranja tenue y sombra
   =========================================================== */
.seo-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1em;
  line-height: 1;
}

.seo-ico--inline {
  margin-right: 10px;
  color: var(--sp-orange);
  font-size: 0.95em;
}

/* Tile base */
.seo-kicker--ico .seo-ico,
.seo-card__ico,
.seo-tile__ico,
.seo-cta-box__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFF5F0 0%, #FFE8E0 100%);
  border: 1px solid rgba(242, 99, 34, 0.18);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(242, 99, 34, 0.1);
  color: var(--sp-orange);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Kicker: tile chico al lado de la etiqueta */
.seo-kicker--ico {
  gap: 10px;
}

.seo-kicker--ico::before {
  display: none;
}

.seo-kicker--ico .seo-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 17px;
}

/* Cards */
.seo-card__ico {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  font-size: 24px;
}

.seo-cards article:hover .seo-card__ico {
  background: linear-gradient(135deg, var(--sp-orange) 0%, var(--sp-orange-dark) 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px rgba(242, 99, 34, 0.28);
}

/* Caja CTA (fondo oscuro) */
.seo-cta-box__ico {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  font-size: 22px;
  background: linear-gradient(135deg, var(--sp-orange) 0%, var(--sp-orange-dark) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Mosaico de resumen (4 tiles) */
.seo-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}

.seo-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px 16px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.seo-tile:hover {
  border-color: rgba(246, 95, 1, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 18, 22, 0.07);
}

.seo-tile__ico {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  font-size: 20px;
}

.seo-tile strong {
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--sp-title);
}

.seo-tile span {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--sp-text);
}

/* Franja de resumen debajo del hero: solapa el hero y arranca sobre fondo claro */
.seo-resumen {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: -28px auto 0;
  padding: 0 22px;
}

.seo-resumen .seo-tiles {
  margin-top: 0;
}

.seo-resumen .seo-tile {
  box-shadow: 0 10px 30px rgba(15, 18, 22, 0.1);
}

/* Links relacionados: flecha a la derecha */
.seo-related-links a {
  position: relative;
  padding-right: 44px;
}

.seo-related-links a::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F65F01' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}

.seo-related-links a:hover::after {
  transform: translateX(4px);
}

/* FAQ: signo de pregunta en tile chico */
.seo-faq summary {
  padding-left: 40px;
}

.seo-faq summary::before {
  content: '?';
  position: absolute;
  left: 0;
  top: -1px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #FFF5F0 0%, #FFE8E0 100%);
  border: 1px solid rgba(242, 99, 34, 0.18);
  color: var(--sp-orange);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 800;
  font-size: 17px;
}

@media (min-width: 640px) {
  .seo-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .seo-resumen {
    margin-top: -36px;
    padding: 0 32px;
  }
}

@media (min-width: 1024px) {
  .seo-resumen {
    margin-top: -44px;
    padding: 0 40px;
  }

  .seo-tile {
    padding: 22px 20px 20px;
  }
}

/* ===========================================================
   SEO 2026-10 (ola 1): índice de anclas, calculadora, "¿Qué necesitás?",
   obras reales, caja de recarga por foto. Fondos sólidos, sin blur.
   =========================================================== */
.seo-toc {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0 22px;
}
.seo-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.seo-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--sp-line);
  color: var(--sp-title);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.seo-toc a:hover,
.seo-toc a:focus-visible {
  border-color: var(--sp-orange);
  color: var(--sp-orange-dark);
}
.seo-actualizado {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--sp-text);
}
.seo-calc {
  margin: 22px 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-left: 4px solid var(--sp-orange);
  border-radius: var(--sp-radius);
}
.seo-calc h3 {
  margin: 0 0 10px;
}
.seo-calc label,
.seo-waform label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sp-title);
}
.seo-calc input,
.seo-waform input {
  display: block;
  width: 100%;
  max-width: 320px;
  min-height: 44px;
  margin-top: 6px;
  padding: 8px 12px;
  border: 1.5px solid var(--sp-line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--sp-title);
}
.seo-calc p {
  margin: 12px 0 0;
  font-weight: 600;
  color: var(--sp-title);
}
.seo-necesitas {
  padding-top: 32px;
  padding-bottom: 32px;
}
.seo-necesitas__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.seo-necesitas__btns .seo-btn {
  min-height: 48px;
}
.seo-waform {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
}
.seo-waform__intro,
.seo-waform__nota {
  margin: 0;
  font-size: 14px;
  color: var(--sp-text);
}
.seo-waform .seo-btn {
  justify-self: start;
  min-height: 48px;
  cursor: pointer;
}
.seo-proyectos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 22px;
}
.seo-proyecto {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  color: var(--sp-title);
  text-decoration: none;
}
.seo-proyecto img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.seo-proyecto__txt {
  display: grid;
  gap: 4px;
  padding: 14px 16px 16px;
}
.seo-proyecto__txt span {
  font-size: 13px;
  color: var(--sp-text);
}
.seo-proyecto:hover,
.seo-proyecto:focus-visible {
  border-color: rgba(246, 95, 1, 0.45);
}
@media (min-width: 640px) {
  .seo-toc { padding: 0 32px; }
  .seo-proyectos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .seo-toc { padding: 0 40px; }
}
.seo-calificacion {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 22px;
  font-size: 15px;
  color: var(--sp-title);
}
.seo-calificacion a {
  color: var(--sp-orange-dark);
  font-weight: 700;
}
.seo-cta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 20px 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-left: 4px solid var(--sp-orange);
  border-radius: var(--sp-radius);
}
.seo-cta-top p {
  flex: 1 1 260px;
  margin: 0;
  font-size: 15px;
  color: var(--sp-title);
}
.seo-cta-top .seo-btn {
  min-height: 44px;
}

/* ==== typography.css ==== */
/* ===========================================================
   Tipografia del sitio (se carga ultimo para pisar cada modulo)

   - Cuerpo:   Poppins (definido en style.css / metrics.css)
   - Titulos:  Barlow Condensed (h1-h6 y clases de titulo)
   - Botones:  Barlow Condensed, MAYUSCULAS
   =========================================================== */

/* ---------- Titulos ---------- */
h1, h2, h3, h4, h5, h6,
.hero-title, .srv__title, .nosotros-title, .section-title,
.seo-index-title, .ftr__title, .step-title, .srv__name,
.pasos__step-title, .ctc__title, .seo-card-title, .idx-pr__heading {
  font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: 0.01em !important;
  font-weight: 700;
}

h1, .hero-title, .seo-index-title {
  font-weight: 800;
}

/* Etiquetas en mayusculas: tracking mas abierto para que se lean */
.seo-section h3, .seo-cta-box h3, .ftr__title, .srv__name, .pasos__step-title {
  letter-spacing: 0.06em !important;
}

/* ---------- Botones y CTAs ---------- */
button,
input[type="submit"],
input[type="button"],
.seo-btn,
.hero-cta-primary, .hero-cta-secondary, .hero-phone,
.navbar-cta-primary, .navbar-cta-wsp,
.srv__cta, .vid__cta, .nosotros-link, .idx-pr__cta, .idx-pr__all,
.pf-btn, .pf-card__cta, .pf-cta__actions a,
.seo-card-link, .strip-phone, .ctc__submit,
.wa-float {
  font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-weight: 700 !important;
  /* La condensada en mayusculas se ve chica: compensar un poco el cuerpo */
  font-size: 1.08em;
}

/* Botones de icono (galeria, video, menu): no llevan texto, solo la fuente */
.pf-gallery__nav, .pf-lightbox__nav, .pf-lightbox__close, .pf-gallery__expand,
.video-control-btn, .video-play-btn, .navbar-toggle {
  font-size: inherit;
}

/* P10.7: sin JavaScript, los bloques con animación de entrada (.reveal) quedan visibles.
   Con JS, head.php cambia no-js por js antes del primer render y esto no aplica. */
html.no-js .reveal {
  opacity: 1 !important;
  transform: none !important;
}

