/*
Theme Name:   Máquinas de Casino — Friendly Slot
Theme URI:    https://maquinasdecasino.cl
Description:  Theme custom, rápido y SEO-first para Máquinas de Casino (Friendly Slot): venta, instalación a porcentaje, consignación y servicio técnico de máquinas tragamonedas, bingos, placas de juego y repuestos en todo Chile. Sin page builders y sin dependencias externas.
Author:       Máquinas de Casino
Author URI:   https://maquinasdecasino.cl
Version:      1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  maquinas-de-casino
Tags:         business, custom-menu, featured-images, theme-options, translation-ready, accessibility-ready, seo, schema
*/

/* ==========================================================================
   ÍNDICE
   1.  Design tokens
   2.  Reset y base
   3.  Tipografía
   4.  Layout: container, section, grid
   5.  Botones y pills
   6.  Topbar, header y navegación
   7.  Hero
   8.  Tiras de confianza y stats
   9.  Tarjetas
   10. Bandas destacadas (split)
   11. Proceso / pasos
   12. FAQ
   13. CTA final y WhatsApp flotante
   14. Breadcrumbs y page hero
   15. Contenido editorial (.prose)
   16. Blog, archivo y single
   17. Formularios
   18. Footer
   19. 404 y búsqueda
   20. Utilidades y accesibilidad
   21. Responsive
   22. Print
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* --- Marca: cian del logotipo "Friendly Slot" --- */
  --c-brand:       #00a9dc;
  --c-brand-900:   #00445c;
  --c-brand-800:   #005f7d;
  --c-brand-700:   #00789e;
  --c-brand-600:   #0093bd;
  --c-brand-500:   #00a9dc;
  --c-brand-400:   #2cc0ec;
  --c-brand-300:   #6ed6f5;
  --c-brand-200:   #a8e6fa;
  --c-brand-100:   #d3f2fd;
  --c-brand-50:    #eaf9fe;
  --c-brand-ring:  rgba(0, 169, 220, .40);

  /* --- Acento jackpot (oro) --- */
  --c-gold:        #f7b500;
  --c-gold-700:    #a97c00;
  --c-gold-600:    #d99c00;
  --c-gold-400:    #ffc933;
  --c-gold-300:    #ffdd7a;
  --c-gold-100:    #fff1cc;
  --c-gold-50:     #fff9e8;
  --c-gold-ring:   rgba(247, 181, 0, .38);

  /* --- WhatsApp / señal positiva --- */
  --c-wa:          #25d366;
  --c-wa-600:      #1da851;
  --c-wa-ring:     rgba(37, 211, 102, .35);

  /* --- Neutros oscuros --- */
  --c-ink:         #070c12;
  --c-ink-2:       #0c141d;
  --c-ink-3:       #111c27;
  --c-ink-4:       #16242f;
  --c-ink-5:       #1e3140;

  /* --- Neutros claros --- */
  --c-paper:       #ffffff;
  --c-surface:     #f5f8fa;
  --c-surface-2:   #eaf0f4;
  --c-line:        #dfe7ed;
  --c-line-2:      #eef3f6;

  /* --- Texto sobre claro --- */
  --c-title:       #0b1620;
  --c-body:        #3c4b58;
  --c-muted:       #61717f;
  --c-muted-2:     #8593a0;

  /* --- Texto sobre oscuro --- */
  --c-on-dark:       #ffffff;
  --c-on-dark-soft:  #c9d8e2;
  --c-on-dark-muted: #93a7b6;
  --c-dark-line:     rgba(255, 255, 255, .13);
  --c-dark-line-2:   rgba(255, 255, 255, .07);
  --c-dark-card:     rgba(255, 255, 255, .045);
  --c-dark-card-2:   rgba(255, 255, 255, .075);

  /* --- Gradientes --- */
  --grad-brand:    linear-gradient(135deg, #00a9dc 0%, #0071a8 100%);
  --grad-gold:     linear-gradient(135deg, #ffc933 0%, #f7b500 55%, #d99c00 100%);
  --grad-dark:     linear-gradient(160deg, #0c141d 0%, #071019 60%, #050b11 100%);
  --grad-glow:     radial-gradient(60% 60% at 50% 0%, rgba(0,169,220,.26) 0%, rgba(0,169,220,0) 70%);

  /* --- Tipografía --- */
  --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --f-display: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-hero:  clamp(2.05rem, 5.1vw, 3.9rem);
  --fs-h1:    clamp(1.9rem, 4.2vw, 3rem);
  --fs-h2:    clamp(1.65rem, 3.3vw, 2.5rem);
  --fs-h3:    clamp(1.16rem, 1.9vw, 1.42rem);
  --fs-h4:    clamp(1.04rem, 1.4vw, 1.16rem);
  --fs-lead:  clamp(1.01rem, 1.35vw, 1.17rem);
  --fs-small: .875rem;
  --fs-xs:    .78rem;

  --lh-tight: 1.08;
  --lh-head:  1.22;
  --lh-body:  1.72;

  /* --- Espaciado y forma --- */
  --w-container: 1220px;
  --w-narrow:    820px;
  --pad-x:       clamp(18px, 4vw, 34px);
  --sp-section:  clamp(58px, 7.5vw, 106px);
  --gap:         clamp(18px, 2.4vw, 30px);

  --r-xs:   8px;
  --r-sm:   12px;
  --r-md:   18px;
  --r-lg:   26px;
  --r-xl:   34px;
  --r-pill: 999px;

  /* --- Sombras --- */
  --sh-xs: 0 1px 3px rgba(7, 12, 18, .07);
  --sh-sm: 0 3px 12px rgba(7, 12, 18, .08);
  --sh-md: 0 12px 34px rgba(7, 12, 18, .11);
  --sh-lg: 0 26px 68px rgba(7, 12, 18, .17);
  --sh-brand: 0 14px 34px rgba(0, 169, 220, .30);
  --sh-gold:  0 14px 34px rgba(247, 181, 0, .30);

  /* --- Movimiento --- */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur:  .28s;

  /* --- Alturas --- */
  --h-topbar: 38px;
  --h-header: 76px;
}


/* ==========================================================================
   2. RESET Y BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--h-header) + 16px);
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: var(--lh-body);
  color: var(--c-body);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/*
 * El menú móvil espera fuera de pantalla con translateX(102%). Aunque sea
 * position:fixed, ese ancho se suma al área desplazable del documento: el
 * scrollWidth pasaba de 399 a 771 px en un móvil. `overflow-x: hidden` en body
 * ya impide el arrastre en Chrome, pero Safari iOS lo permite igual, así que se
 * recorta de verdad con `clip`, que sí afecta a los elementos fijos y no crea
 * un contenedor de scroll (el header sticky sigue funcionando).
 */
@supports (overflow: clip) {
  html,
  body { overflow-x: clip; }
}

body.mdc-nav-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }

img, svg, video, canvas, iframe { display: block; max-width: 100%; height: auto; }

a { color: var(--c-brand-700); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--c-brand-500); }

button, input, select, textarea { font: inherit; color: inherit; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--c-brand-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

hr { border: 0; border-top: 1px solid var(--c-line); margin: 2rem 0; }

::selection { background: var(--c-brand-200); color: var(--c-ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* ==========================================================================
   3. TIPOGRAFÍA
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  color: var(--c-title);
  line-height: var(--lh-head);
  font-weight: 800;
  letter-spacing: -.018em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 750; }
h4 { font-size: var(--fs-h4); font-weight: 700; }
h5, h6 { font-size: 1rem; font-weight: 700; }

p { text-wrap: pretty; }
strong, b { font-weight: 700; color: var(--c-title); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-brand-700);
  margin-bottom: .85rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 2px;
}

.lead { font-size: var(--fs-lead); color: var(--c-body); line-height: 1.68; }

.section-head { max-width: 760px; margin: 0 auto clamp(34px, 4.5vw, 56px); text-align: center; }
.section-head .lead { margin-top: .9rem; }
.section-head--left { margin-left: 0; margin-right: 0; text-align: left; }


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container--narrow { max-width: var(--w-narrow); }
.container--wide { max-width: 1420px; }

.section { padding-block: var(--sp-section); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 68px); }

.section--paper   { background: var(--c-paper); }
.section--surface { background: var(--c-surface); }
.section--dark    { background: var(--grad-dark); color: var(--c-on-dark-soft); }

.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 { color: var(--c-on-dark); }
.section--dark p, .section--dark li, .section--dark dd { color: var(--c-on-dark-soft); }
.section--dark strong { color: var(--c-on-dark); }
.section--dark .eyebrow { color: var(--c-brand-300); }
.section--dark .lead { color: var(--c-on-dark-soft); }
.section--dark a:not(.btn) { color: var(--c-brand-300); }
.section--dark a:not(.btn):hover { color: var(--c-brand-200); }

.section--dark.has-glow::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 420px;
  background: var(--grad-glow);
  pointer-events: none;
}
.section--dark > .container { position: relative; z-index: 1; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid--auto-sm { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); }


/* ==========================================================================
   5. BOTONES Y PILLS
   ========================================================================== */
.btn {
  --btn-bg: var(--grad-brand);
  --btn-fg: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .92em 1.7em;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-display);
  font-size: .975rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--primary { --btn-bg: var(--grad-brand); --btn-fg: #ffffff; }
.btn--primary:hover { box-shadow: var(--sh-brand); }

.btn--gold { --btn-bg: var(--grad-gold); --btn-fg: #241a00; }
.btn--gold:hover { box-shadow: var(--sh-gold); }

.btn--wa { --btn-bg: linear-gradient(135deg, #2ee06f, #1da851); --btn-fg: #ffffff; }
.btn--wa:hover { box-shadow: 0 14px 34px var(--c-wa-ring); }

.btn--ghost {
  background: transparent;
  color: var(--c-title);
  border: 2px solid var(--c-line);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--c-brand-400); color: var(--c-brand-700); box-shadow: var(--sh-sm); }

.btn--ghost-light {
  background: rgba(255,255,255,.06);
  color: var(--c-on-dark);
  border: 2px solid var(--c-dark-line);
  box-shadow: none;
}
.btn--ghost-light:hover { background: rgba(255,255,255,.13); border-color: var(--c-brand-400); color: #ffffff; }

.btn--sm { padding: .68em 1.25em; font-size: .875rem; }
.btn--lg { padding: 1.05em 2.1em; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-weight: 700;
  color: var(--c-brand-700);
}
.link-arrow::after { content: "\2192"; transition: transform var(--dur) var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .38em .85em;
  border-radius: var(--r-pill);
  background: var(--c-brand-50);
  color: var(--c-brand-800);
  border: 1px solid var(--c-brand-100);
  font-size: var(--fs-xs);
  font-weight: 750;
  letter-spacing: .02em;
  line-height: 1.4;
}
.pill--gold { background: var(--c-gold-50); color: var(--c-gold-700); border-color: var(--c-gold-100); }
.pill--dark { background: var(--c-dark-card-2); color: var(--c-on-dark); border-color: var(--c-dark-line); }
.pill--solid { background: var(--grad-gold); color: #241a00; border-color: transparent; }


/* ==========================================================================
   6. TOPBAR, HEADER Y NAVEGACIÓN
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: .8rem 1.2rem;
  background: var(--c-ink);
  color: #ffffff;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: #ffffff; }

.topbar {
  background: var(--c-ink);
  color: var(--c-on-dark-muted);
  font-size: var(--fs-xs);
  border-bottom: 1px solid var(--c-dark-line-2);
}
.topbar__inner {
  min-height: var(--h-topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar__list { display: flex; gap: 1.35rem; list-style: none; flex-wrap: wrap; align-items: center; }
.topbar__list li { display: inline-flex; align-items: center; gap: .45em; }
.topbar a { color: var(--c-on-dark-soft); }
.topbar a:hover { color: var(--c-brand-300); }
.topbar svg { width: 14px; height: 14px; opacity: .85; flex: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 12, 18, .93);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--c-dark-line);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: 0 10px 34px rgba(0,0,0,.42); }

.site-header__inner {
  min-height: var(--h-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.site-brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.site-brand img { width: auto; height: 42px; max-width: 220px; object-fit: contain; }
.site-brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.site-brand__text .name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.06rem;
  color: #ffffff;
  letter-spacing: -.02em;
}
.site-brand__text .tag {
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--c-brand-300);
  font-weight: 700;
}

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: .1rem; list-style: none; }
.main-nav a {
  display: block;
  padding: .58rem .72rem;
  border-radius: var(--r-sm);
  color: var(--c-on-dark-soft);
  font-size: .91rem;
  font-weight: 650;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current-page-ancestor > a {
  color: #ffffff;
  background: var(--c-dark-card-2);
}
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { box-shadow: inset 0 -2px 0 var(--c-brand-500); }

.main-nav li { position: relative; }
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  padding: .5rem;
  list-style: none;
  background: #0e1922;
  border: 1px solid var(--c-dark-line);
  border-radius: var(--r-md);
  box-shadow: 0 22px 54px rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: 20;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { padding: .56rem .8rem; font-size: .89rem; white-space: normal; }
.main-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: .42em;
  width: .4em;
  height: .4em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .6;
}

.header-actions { display: flex; align-items: center; gap: .6rem; flex: none; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--c-dark-card-2);
  border: 1px solid var(--c-dark-line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span { position: relative; display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: background var(--dur) var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }


/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--grad-dark);
  color: var(--c-on-dark-soft);
  overflow: hidden;
  padding-block: clamp(56px, 7.5vw, 104px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 46% at 78% 18%, rgba(0,169,220,.30) 0%, rgba(0,169,220,0) 65%),
    radial-gradient(46% 42% at 10% 90%, rgba(247,181,0,.16) 0%, rgba(247,181,0,0) 68%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 40%, #000 0%, transparent 100%);
  mask-image: radial-gradient(72% 62% at 50% 40%, #000 0%, transparent 100%);
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 5vw, 62px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .42em .95em;
  border-radius: var(--r-pill);
  background: var(--c-dark-card-2);
  border: 1px solid var(--c-dark-line);
  color: var(--c-brand-300);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero__eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-wa);
  box-shadow: 0 0 0 4px rgba(37,211,102,.18);
}

.hero h1 { margin-top: 1.15rem; font-size: var(--fs-hero); color: #ffffff; letter-spacing: -.028em; }
.hero h1 .accent {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub { margin-top: 1.1rem; max-width: 58ch; font-size: var(--fs-lead); color: var(--c-on-dark-soft); }
.hero__actions { margin-top: 1.85rem; }

.hero__usps {
  margin-top: 2rem;
  padding-top: 1.55rem;
  border-top: 1px solid var(--c-dark-line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  gap: 1rem 1.4rem;
  list-style: none;
}
.hero__usps li { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; color: var(--c-on-dark-soft); line-height: 1.45; }
.hero__usps svg { width: 19px; height: 19px; flex: none; margin-top: 1px; color: var(--c-gold); }

.hero__media { position: relative; }
.hero__media-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-dark-line);
  background: var(--c-dark-card);
  box-shadow: 0 34px 90px rgba(0,0,0,.55);
}
.hero__media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 11; }

.hero__badge {
  position: absolute;
  left: -14px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.15rem;
  border-radius: var(--r-md);
  background: rgba(10, 18, 26, .93);
  border: 1px solid var(--c-dark-line);
  box-shadow: var(--sh-lg);
}
.hero__badge .num {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 850;
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__badge .txt { font-size: .78rem; color: var(--c-on-dark-muted); line-height: 1.3; max-width: 14ch; }


/* ==========================================================================
   8. TIRAS DE CONFIANZA Y STATS
   ========================================================================== */
.trust-strip {
  background: var(--c-ink-2);
  border-block: 1px solid var(--c-dark-line-2);
  padding-block: 1.1rem;
}
.trust-strip__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 2.2rem; list-style: none; }
.trust-strip__list li {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .86rem;
  font-weight: 650;
  color: var(--c-on-dark-muted);
}
.trust-strip__list svg { width: 17px; height: 17px; color: var(--c-brand-400); flex: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: var(--gap); }
.stat {
  padding: 1.6rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--c-dark-card);
  border: 1px solid var(--c-dark-line);
  text-align: center;
}
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 850;
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { margin-top: .55rem; font-size: .88rem; color: var(--c-on-dark-muted); line-height: 1.45; }

.stats--light .stat { background: var(--c-paper); border-color: var(--c-line); box-shadow: var(--sh-xs); }
.stats--light .stat__num {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats--light .stat__label { color: var(--c-muted); }


/* ==========================================================================
   9. TARJETAS
   ========================================================================== */
.card {
  display: flex;
  flex-direction: column;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-brand-200); }

.card__media { position: relative; background: var(--c-surface-2); overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__media--contain { background: linear-gradient(160deg, #0f1b25, #0a121a); }
.card__media--contain img { object-fit: contain; padding: 1rem; aspect-ratio: 4 / 3; }

/*
 * Las artes promocionales (los kits de ZOE, Orion o Rentamania) son 16:9 y llevan
 * el título rotulado arriba. Recortarlas a 4:3 se comía ese título, así que la
 * tarjeta adopta la proporción del original y no recorta nada.
 */
.card__media--wide img { aspect-ratio: 16 / 9; }
.card__media--square img { aspect-ratio: 1 / 1; }
.card__media--tall img { aspect-ratio: 3 / 4; }

.card__flag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: .34em .8em;
  border-radius: var(--r-pill);
  background: var(--grad-gold);
  color: #241a00;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: var(--sh-sm);
}
.card__flag--brand { background: var(--grad-brand); color: #fff; }

.card__body { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem 1.4rem 1.5rem; flex: 1; }
.card__kicker { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-brand-600); }
.card__title { font-size: 1.12rem; font-weight: 780; color: var(--c-title); line-height: 1.3; }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--c-brand-700); }
.card__text { font-size: .93rem; color: var(--c-muted); line-height: 1.6; }

.card__specs { list-style: none; display: flex; flex-direction: column; gap: .38rem; margin-top: .1rem; }
.card__specs li { position: relative; padding-left: 1.35rem; font-size: .89rem; color: var(--c-body); line-height: 1.5; }
.card__specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-gold);
}

.card__foot { margin-top: auto; padding-top: 1.05rem; display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }

/*
 * Variante oscura de la tarjeta.
 * Sin esto, las reglas genéricas de .section--dark pintaban el h3 de blanco
 * sobre la tarjeta blanca y el título desaparecía. Además queda mejor:
 * dentro de una banda oscura la tarjeta translúcida integra, la blanca corta.
 */
.section--dark .card {
  background: var(--c-dark-card);
  border-color: var(--c-dark-line);
  box-shadow: none;
}
.section--dark .card:hover { border-color: var(--c-brand-500); box-shadow: 0 16px 38px rgba(0,0,0,.5); }
.section--dark .card__media { background: var(--c-ink-3); }
.section--dark .card__title, .section--dark .card__title a { color: #ffffff; }
.section--dark .card__title a:hover { color: var(--c-brand-300); }
.section--dark .card__text { color: var(--c-on-dark-muted); }
.section--dark .card__specs li { color: var(--c-on-dark-soft); }
.section--dark .card__kicker { color: var(--c-brand-300); }
.section--dark .link-arrow { color: var(--c-brand-300); }
.section--dark .link-arrow:hover { color: var(--c-brand-200); }
.section--dark .btn--ghost {
  color: var(--c-on-dark);
  border-color: var(--c-dark-line);
  background: rgba(255,255,255,.06);
}
.section--dark .btn--ghost:hover { border-color: var(--c-brand-400); color: #ffffff; background: rgba(255,255,255,.13); }
.section--dark .pill { background: var(--c-dark-card-2); color: var(--c-on-dark); border-color: var(--c-dark-line); }
.section--dark .note-box { background: rgba(0,169,220,.10); border-color: rgba(0,169,220,.28); color: var(--c-on-dark-soft); }
.section--dark .spec-table th { background: var(--c-dark-card-2); color: var(--c-on-dark); }
.section--dark .spec-table th, .section--dark .spec-table td { border-color: var(--c-dark-line); }

/* Tarjeta de categoría (fondo oscuro con imagen) */
.cat-card {
  position: relative;
  display: block;
  min-height: 260px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-dark-line);
  isolation: isolate;
  background: var(--c-ink-3);
}
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .6s var(--ease);
}
/*
 * Dos capas: un degradado que oscurece la mitad inferior (donde va el texto)
 * y un velo plano suave sobre toda la tarjeta. Con una sola capa, las fotos
 * de máquinas encendidas —que son casi todas— dejaban el título ilegible.
 */
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4,9,14,.15) 0%, rgba(4,9,14,.72) 46%, rgba(4,9,14,.96) 100%),
    rgba(4, 9, 14, .30);
}
.cat-card:hover img { transform: scale(1.06); }
.cat-card__body { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 260px; padding: 1.5rem; }
.cat-card__title { display: block; color: #ffffff; font-family: var(--f-display); font-size: 1.22rem; font-weight: 800; line-height: 1.25; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.cat-card__text { display: block; margin-top: .45rem; font-size: .9rem; color: var(--c-on-dark-soft); line-height: 1.55; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.cat-card__more { margin-top: .9rem; display: inline-flex; align-items: center; gap: .45em; font-weight: 750; font-size: .9rem; color: var(--c-brand-300); }
.cat-card__more::after { content: "\2192"; transition: transform var(--dur) var(--ease); }
.cat-card:hover .cat-card__more::after { transform: translateX(4px); }

/* Tarjeta de beneficio / feature */
.feature {
  padding: 1.7rem 1.6rem;
  border-radius: var(--r-lg);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.feature__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--c-brand-50);
  color: var(--c-brand-700);
  margin-bottom: 1.05rem;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.feature p { font-size: .93rem; color: var(--c-muted); line-height: 1.62; }

.section--dark .feature { background: var(--c-dark-card); border-color: var(--c-dark-line); box-shadow: none; }
.section--dark .feature__icon { background: rgba(0,169,220,.14); color: var(--c-brand-300); }
.section--dark .feature p { color: var(--c-on-dark-muted); }

/* Tarjeta de juego (miniatura cuadrada) */
.game-card {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-dark-line);
  background: var(--c-ink-3);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.game-card:hover { transform: translateY(-3px); border-color: var(--c-brand-500); box-shadow: 0 14px 32px rgba(0,0,0,.45); }
.game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.game-card__name {
  padding: .7rem .8rem;
  font-size: .84rem;
  font-weight: 700;
  color: var(--c-on-dark);
  text-align: center;
  line-height: 1.3;
}


/* ==========================================================================
   10. BANDAS DESTACADAS (SPLIT)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }

.split__media { position: relative; }
.split__media img {
  width: 100%;
  border-radius: var(--r-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: var(--sh-md);
}
.split__media--frame img { border: 1px solid var(--c-dark-line); }

.split__body h2 { margin-bottom: .95rem; }
.split__body > p { margin-bottom: 1rem; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: .72rem; margin: 1.3rem 0; }
.check-list li { position: relative; padding-left: 2rem; line-height: 1.6; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--c-brand-50);
  border: 1px solid var(--c-brand-200);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: .52em;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--c-brand-600);
  border-bottom: 2px solid var(--c-brand-600);
  transform: rotate(45deg);
}
.section--dark .check-list li::before { background: rgba(0,169,220,.16); border-color: rgba(0,169,220,.4); }
.section--dark .check-list li::after { border-color: var(--c-brand-300); }

.check-list--gold li::before { background: var(--c-gold-50); border-color: var(--c-gold-100); }
.check-list--gold li::after { border-color: var(--c-gold-600); }


/* ==========================================================================
   11. PROCESO / PASOS
   ========================================================================== */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gap); }
.step { position: relative; padding: 1.7rem 1.5rem 1.6rem; border-radius: var(--r-lg); background: var(--c-paper); border: 1px solid var(--c-line); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #ffffff;
  font-family: var(--f-display);
  font-size: 1.12rem;
  font-weight: 800;
  box-shadow: var(--sh-brand);
}
.step h3 { font-size: 1.06rem; margin-bottom: .48rem; }
.step p { font-size: .92rem; color: var(--c-muted); line-height: 1.6; }

.section--dark .step { background: var(--c-dark-card); border-color: var(--c-dark-line); }
.section--dark .step p { color: var(--c-on-dark-muted); }


/* ==========================================================================
   12. FAQ
   ========================================================================== */
.faq { display: flex; flex-direction: column; gap: .8rem; max-width: 900px; margin-inline: auto; }
.faq__item {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-paper);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq__item[open] { border-color: var(--c-brand-200); box-shadow: var(--sh-sm); }
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.12rem 1.35rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-weight: 730;
  font-size: 1.02rem;
  color: var(--c-title);
  line-height: 1.45;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: .35em;
  border-right: 2.5px solid var(--c-brand-600);
  border-bottom: 2.5px solid var(--c-brand-600);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); }
.faq__a { padding: 0 1.35rem 1.3rem; color: var(--c-body); font-size: .96rem; line-height: 1.7; }
.faq__a p + p { margin-top: .8rem; }

.section--dark .faq__item { background: var(--c-dark-card); border-color: var(--c-dark-line); }
.section--dark .faq__q { color: var(--c-on-dark); }
.section--dark .faq__q::after { border-color: var(--c-brand-300); }
.section--dark .faq__a { color: var(--c-on-dark-soft); }


/* ==========================================================================
   13. CTA FINAL Y WHATSAPP FLOTANTE
   ========================================================================== */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--grad-dark);
  color: var(--c-on-dark-soft);
  padding-block: clamp(52px, 6.5vw, 88px);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48% 70% at 82% 30%, rgba(247,181,0,.20) 0%, rgba(247,181,0,0) 66%),
    radial-gradient(50% 70% at 14% 74%, rgba(0,169,220,.24) 0%, rgba(0,169,220,0) 66%);
}
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 54px); align-items: center; }
.cta-band h2 { color: #ffffff; }
.cta-band p { margin-top: .85rem; color: var(--c-on-dark-soft); font-size: var(--fs-lead); }
.cta-band__actions { display: flex; flex-direction: column; gap: .8rem; }
.cta-band__note { font-size: .82rem; color: var(--c-on-dark-muted); text-align: center; }

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .78rem 1.15rem .78rem .85rem;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #2ee06f, #1da851);
  color: #ffffff;
  font-weight: 750;
  font-size: .92rem;
  box-shadow: 0 14px 34px rgba(29,168,81,.42);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.wa-float:hover { transform: translateY(-3px); color: #ffffff; box-shadow: 0 18px 42px rgba(29,168,81,.55); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float__label { white-space: nowrap; }


/* ==========================================================================
   14. BREADCRUMBS Y PAGE HERO
   ========================================================================== */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--grad-dark);
  color: var(--c-on-dark-soft);
  padding-block: clamp(38px, 5vw, 68px) clamp(42px, 5.5vw, 74px);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(58% 100% at 76% 10%, rgba(0,169,220,.26) 0%, rgba(0,169,220,0) 68%);
}
.page-hero__inner { max-width: 900px; }
.page-hero h1 { color: #ffffff; margin-top: .35rem; }
.page-hero__sub { margin-top: 1rem; font-size: var(--fs-lead); color: var(--c-on-dark-soft); max-width: 62ch; }
.page-hero__actions { margin-top: 1.6rem; }

.breadcrumbs { font-size: .82rem; color: var(--c-on-dark-muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .42rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .42rem; }
.breadcrumbs li + li::before { content: "/"; opacity: .45; }
.breadcrumbs a { color: var(--c-brand-300); }
.breadcrumbs a:hover { color: var(--c-brand-200); }
.breadcrumbs [aria-current="page"] { color: var(--c-on-dark-soft); }

.breadcrumbs--light { color: var(--c-muted); }
.breadcrumbs--light a { color: var(--c-brand-700); }


/* ==========================================================================
   15. CONTENIDO EDITORIAL (.prose)
   ========================================================================== */
.prose { color: var(--c-body); font-size: 1.02rem; line-height: var(--lh-body); }
.prose > * + * { margin-top: 1.15rem; }

.prose h2 { margin-top: 2.5rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin-top: 2rem; font-size: clamp(1.18rem, 1.9vw, 1.38rem); }
.prose h4 { margin-top: 1.6rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

/*
 * En las páginas de catálogo el contenedor va a 1220 px para que las grillas
 * respiren, pero un párrafo de 1220 px de ancho es ilegible. Se limita la
 * medida de los bloques de texto y se dejan sueltas las grillas y galerías.
 */
.prose--wide > p,
.prose--wide > h2,
.prose--wide > h3,
.prose--wide > h4,
.prose--wide > ul,
.prose--wide > ol,
.prose--wide > blockquote,
.prose--wide > .note-box,
.prose--wide > .table-wrap,
.prose--wide > table { max-width: 880px; }

.prose p > a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

.prose ul, .prose ol { padding-left: 0; display: flex; flex-direction: column; gap: .6rem; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; padding-left: 1.55rem; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-brand-500);
}
.prose ol { list-style: decimal; padding-left: 1.35rem; }
.prose ol > li { padding-left: .3rem; }
.prose li::marker { color: var(--c-brand-600); font-weight: 700; }

.prose img { border-radius: var(--r-md); box-shadow: var(--sh-sm); margin-inline: auto; }
.prose figure { margin-block: 1.8rem; }
.prose figcaption { margin-top: .6rem; font-size: .85rem; color: var(--c-muted); text-align: center; }

.prose blockquote {
  margin-block: 1.8rem;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid var(--c-brand-500);
  background: var(--c-brand-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--c-title);
  font-size: 1.05rem;
}
.prose blockquote p + p { margin-top: .7rem; }

.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose .table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--c-line); }
.prose th, .prose td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--c-line); }
.prose th { background: var(--c-surface); color: var(--c-title); font-weight: 750; }
.prose tr:last-child td { border-bottom: 0; }

.prose iframe, .prose .video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}

/* Bloques reutilizables dentro del contenido */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: .78rem 1rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.spec-table th { width: 200px; text-align: left; color: var(--c-title); font-weight: 750; background: var(--c-surface); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.note-box {
  padding: 1.15rem 1.35rem;
  border-radius: var(--r-md);
  background: var(--c-brand-50);
  border: 1px solid var(--c-brand-100);
  color: var(--c-brand-900);
  font-size: .95rem;
}
.note-box--gold { background: var(--c-gold-50); border-color: var(--c-gold-100); color: var(--c-gold-700); }
.note-box strong { color: inherit; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--sh-xs); margin: 0; }

/* Para reportajes fotográficos: 3 columnas fijas, sin huérfanos sueltos al final. */
.gallery-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .gallery-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery-grid, .gallery-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #0c141d, #122130);
  border: 1px solid var(--c-dark-line);
}
.inline-cta__text { color: var(--c-on-dark-soft); font-size: .98rem; }
.inline-cta__text strong { color: #ffffff; display: block; font-size: 1.08rem; margin-bottom: .2rem; font-family: var(--f-display); }


/* ==========================================================================
   16. BLOG, ARCHIVO Y SINGLE
   ========================================================================== */
.post-card { display: flex; flex-direction: column; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { padding: 1.35rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card__meta { font-size: var(--fs-xs); color: var(--c-muted-2); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.post-card__title { font-size: 1.1rem; font-weight: 760; line-height: 1.32; }
.post-card__title a { color: var(--c-title); }
.post-card__title a:hover { color: var(--c-brand-700); }
.post-card__excerpt { font-size: .93rem; color: var(--c-muted); }
.post-card__more { margin-top: auto; padding-top: .9rem; }

.entry-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .86rem; color: var(--c-on-dark-muted); }
.entry-meta span { display: inline-flex; align-items: center; gap: .4em; }

.pagination { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 3rem; }
.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding-inline: .7rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  color: var(--c-body);
  font-weight: 700;
}
.pagination .page-numbers:hover { border-color: var(--c-brand-400); color: var(--c-brand-700); }
.pagination .page-numbers.current { background: var(--grad-brand); border-color: transparent; color: #ffffff; }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: 3rem; }
.post-nav a { display: block; padding: 1.2rem 1.35rem; border-radius: var(--r-md); border: 1px solid var(--c-line); background: var(--c-paper); }
.post-nav a:hover { border-color: var(--c-brand-300); box-shadow: var(--sh-sm); }
.post-nav small { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted-2); font-weight: 700; margin-bottom: .3rem; }
.post-nav span { color: var(--c-title); font-weight: 700; }
.post-nav .is-next { text-align: right; }


/* ==========================================================================
   17. FORMULARIOS
   ========================================================================== */
.form-card { padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: var(--r-lg); background: var(--c-paper); border: 1px solid var(--c-line); box-shadow: var(--sh-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .42rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 700; color: var(--c-title); }
.field label .req { color: #d93025; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: .82rem 1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-paper);
  color: var(--c-title);
  font-size: .96rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--c-muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-brand-500);
  box-shadow: 0 0 0 4px var(--c-brand-ring);
}
.field textarea { min-height: 132px; resize: vertical; }
.field-hint { font-size: .8rem; color: var(--c-muted); }

.form-alert { padding: .95rem 1.15rem; border-radius: var(--r-sm); font-size: .93rem; margin-bottom: 1.2rem; }
.form-alert--ok { background: #e8f8ee; border: 1px solid #b7e6c8; color: #14663a; }
.form-alert--err { background: #fdecea; border: 1px solid #f6c9c4; color: #9e281c; }

.contact-info { display: flex; flex-direction: column; gap: 1.15rem; }
.contact-info__item { display: flex; gap: .95rem; align-items: flex-start; }
.contact-info__icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgba(0,169,220,.14);
  color: var(--c-brand-300);
}
.contact-info__icon svg { width: 21px; height: 21px; }
.contact-info__item > span:last-child { display: block; }
.contact-info__label { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .11em; font-weight: 800; color: var(--c-on-dark-muted); margin-bottom: .12rem; }
.contact-info__value { display: block; color: #ffffff; font-weight: 650; line-height: 1.45; }
.contact-info__value a { color: #ffffff; }
.contact-info__value a:hover { color: var(--c-brand-300); }


/* ==========================================================================
   18. FOOTER
   ========================================================================== */
.site-footer { background: var(--c-ink); color: var(--c-on-dark-muted); font-size: .93rem; }
.site-footer a { color: var(--c-on-dark-soft); }
.site-footer a:hover { color: var(--c-brand-300); }

.footer-main { padding-block: clamp(46px, 6vw, 76px) clamp(34px, 4vw, 50px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(26px, 3.5vw, 48px); }

.footer-brand img { height: 44px; width: auto; max-width: 230px; object-fit: contain; margin-bottom: 1.05rem; }
.footer-brand p { color: var(--c-on-dark-muted); line-height: 1.68; font-size: .92rem; }

.footer-col h3 {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.05rem;
  font-weight: 800;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col li { line-height: 1.5; }
.footer-col a { font-size: .92rem; }

.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: .28em; color: var(--c-brand-400); }

.footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: 1.6rem; }
.footer-badges img { height: 34px; width: auto; opacity: .82; filter: grayscale(1) brightness(1.6); transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease); }
.footer-badges img:hover { opacity: 1; filter: none; }

.footer-bottom {
  border-top: 1px solid var(--c-dark-line-2);
  padding-block: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: .84rem;
  color: var(--c-on-dark-muted);
}
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; }

.footer-legal {
  border-top: 1px solid var(--c-dark-line-2);
  padding-block: 1.1rem 1.5rem;
  font-size: .76rem;
  line-height: 1.6;
  color: #6e808e;
}


/* ==========================================================================
   19. 404 Y BÚSQUEDA
   ========================================================================== */
.error-404 { text-align: center; max-width: 640px; margin-inline: auto; }
.error-404__code {
  font-family: var(--f-display);
  font-size: clamp(4.5rem, 15vw, 9rem);
  font-weight: 850;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.search-form { display: flex; gap: .6rem; max-width: 520px; }
.search-form input[type="search"] {
  flex: 1;
  padding: .82rem 1.1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-paper);
  color: var(--c-title);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--c-brand-500); box-shadow: 0 0 0 4px var(--c-brand-ring); }
.search-form--center { margin-inline: auto; }


/* ==========================================================================
   20. UTILIDADES Y ACCESIBILIDAD
   ========================================================================== */
.screen-reader-text, .sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: static !important;
  width: auto;
  height: auto;
  clip: auto;
  white-space: normal;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .6rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0 !important; }
.mx-auto { margin-inline: auto; }
.maxw-narrow { max-width: var(--w-narrow); }

.divider-gold { width: 64px; height: 4px; border-radius: 2px; background: var(--grad-gold); margin: 1.2rem 0; }
.divider-gold--center { margin-inline: auto; }

/*
 * La aparición progresiva solo se activa si el JS pudo marcar el documento.
 * Sin la clase .mdc-js el contenido se ve siempre: si el script falla o el
 * navegador no ejecuta JS, nadie se queda mirando una página en blanco.
 */
.mdc-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.mdc-js /* ==========================================================================
   VISOR DE IMÁGENES (LIGHTBOX)
   ========================================================================== */
.is-zoomable {
  cursor: zoom-in;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.is-zoomable:hover { transform: scale(1.015); box-shadow: var(--sh-md); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(4, 8, 12, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
body.mdc-lightbox-open { overflow: hidden; }

.lightbox__figure {
  position: relative;
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  animation: mdc-zoom-in .22s var(--ease);
}
@keyframes mdc-zoom-in {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox__figure { animation: none; }
  .is-zoomable:hover { transform: none; }
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  background: #0b1219;
}

.lightbox__caption {
  max-width: 70ch;
  text-align: center;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--c-on-dark-soft);
}
.lightbox__counter {
  display: block;
  margin-top: .3rem;
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-on-dark-muted);
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--c-dark-line);
  border-radius: 50%;
  background: rgba(12, 20, 29, .85);
  color: #fff;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.lightbox__btn:hover { background: var(--c-brand-600); border-color: transparent; color: #fff; }
.lightbox__btn:active { transform: scale(.94); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__btn[hidden] { display: none; }

.lightbox__close { top: clamp(10px, 2vw, 24px); right: clamp(10px, 2vw, 24px); position: fixed; }
.lightbox__prev  { left: clamp(8px, 2vw, 24px); top: 50%; transform: translateY(-50%); position: fixed; }
.lightbox__next  { right: clamp(8px, 2vw, 24px); top: 50%; transform: translateY(-50%); position: fixed; }
.lightbox__prev:active, .lightbox__next:active { transform: translateY(-50%) scale(.94); }

@media (max-width: 640px) {
  .lightbox__img { max-height: calc(100vh - 210px); }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__btn { width: 44px; height: 44px; }
}

.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mdc-js .reveal { opacity: 1; transform: none; }
}


/* ==========================================================================
   21. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav a { padding: .55rem .55rem; font-size: .87rem; }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 560px; }
  .hero__badge { left: auto; right: 14px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(370px, 88vw);
    padding: calc(var(--h-header) + 22px) 22px 34px;
    background: #0a121a;
    border-left: 1px solid var(--c-dark-line);
    transform: translateX(102%);
    transition: transform .34s var(--ease);
    overflow-y: auto;
    z-index: 190;
    box-shadow: -20px 0 60px rgba(0,0,0,.5);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: .18rem; }
  .main-nav a { padding: .82rem .9rem; font-size: 1rem; border-radius: var(--r-sm); }
  .main-nav .current-menu-item > a { box-shadow: none; background: var(--c-dark-card-2); }

  .main-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: 0;
    border-left: 2px solid var(--c-dark-line);
    border-radius: 0;
    margin: .15rem 0 .4rem .9rem;
    padding: 0 0 0 .5rem;
    min-width: 0;
  }
  .main-nav .menu-item-has-children > a::after { display: none; }

  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 12, .62);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
    z-index: 180;
  }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }

  .post-nav { grid-template-columns: 1fr; }
  .post-nav .is-next { text-align: left; }
}

@media (max-width: 700px) {
  :root { --h-header: 66px; }
  .topbar__list--secondary { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-brand img { height: 34px; max-width: 150px; }
  .wa-float__label { display: none; }
  .wa-float { padding: .85rem; }
  .hero__badge { position: static; margin-top: 1rem; }

  /*
   * Los botones ocupan el ancho disponible solo dentro de una fila de acciones.
   * Poner width:100% en todos los .btn desbordaba el header: el botón "Cotizar"
   * intentaba ocupar el ancho completo y empujaba la hamburguesa fuera de pantalla.
   */
  .btn-row .btn { flex: 1 1 220px; }
  .prose .btn { width: 100%; }
  .header-actions .btn { padding: .6em 1em; font-size: .85rem; }
  .inline-cta { flex-direction: column; align-items: flex-start; }
  .spec-table th { width: auto; }
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { border-bottom: 0; padding-bottom: .2rem; background: transparent; }
}

@media (max-width: 620px) {
  /*
   * En pantallas estrechas la barra superior deja solo el teléfono.
   * El selector lleva li delante a propósito: `.topbar__list li` ya declara
   * display:inline-flex y gana por especificidad a una clase suelta.
   */
  .topbar__list li.topbar__item--hours { display: none; }
  .topbar__inner { justify-content: center; }
}

@media (max-width: 420px) {
  .btn-row .btn { flex: 1 1 100%; }
  .site-brand img { max-width: 128px; }
  .header-actions .btn__label { display: none; }
  .header-actions .btn { padding: .62em .8em; }
}


/* ==========================================================================
   22. PRINT
   ========================================================================== */
@media print {
  .site-header, .topbar, .site-footer, .wa-float, .cta-band, .nav-toggle, .nav-scrim { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding-block: 1rem; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
