/*
Theme Name:   Máquinas Tragamonedas — RentaManía
Theme URI:    https://maquinastragamonedas.cl
Description:  Theme custom, rápido y SEO-first para RentaManía: venta e instalación a porcentaje de máquinas tragamonedas, bingos, placas de juego y repuestos en Chile. Sin page builders.
Author:       RentaManía
Author URI:   https://maquinastragamonedas.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:  maquinastragamonedas
Tags:         business, custom-menu, featured-images, theme-options, translation-ready, accessibility-ready, seo, schema
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* --- Marca (tomada del logotipo: verde esmeralda + gris pizarra) --- */
  --c-brand:       #00a887;
  --c-brand-700:   #00755f;
  --c-brand-600:   #008f74;
  --c-brand-500:   #00a887;
  --c-brand-400:   #26c9a5;
  --c-brand-300:   #5ee0c1;
  --c-brand-100:   #cdefe7;
  --c-brand-50:    #ecfaf6;
  --c-brand-ring:  rgba(0, 168, 135, .38);

  /* --- Acento "jackpot" --- */
  --c-gold:        #f5b301;
  --c-gold-400:    #ffc832;
  --c-gold-300:    #ffdc7a;
  --c-gold-50:     #fff8e5;

  /* --- Neutros --- */
  --c-ink:         #0d1519;
  --c-ink-2:       #13212a;
  --c-ink-3:       #1b303b;
  --c-ink-4:       #2a4552;
  --c-slate:       #55606b;
  --c-body:        #3f4a53;
  --c-muted:       #5c6a75;
  --c-muted-2:     #8e9aa4;
  --c-line:        #e2e9ec;
  --c-line-2:      #eef3f5;
  --c-paper:       #ffffff;
  --c-surface:     #f5f9fa;
  --c-surface-2:   #eef4f6;

  /* --- Sobre fondo oscuro --- */
  --c-on-dark:        #ffffff;
  --c-on-dark-soft:   #cbd8de;
  --c-on-dark-muted:  #a3b5bf;
  --c-dark-line:      rgba(255, 255, 255, .12);
  --c-dark-card:      rgba(255, 255, 255, .05);

  /* --- Gradientes --- */
  --g-brand:        linear-gradient(135deg, #00806a 0%, #005b47 100%);
  --g-brand-vivid:  linear-gradient(135deg, #00c197 0%, #008f74 100%);
  --g-gold:   linear-gradient(135deg, #ffd24a 0%, #f0a800 100%);
  --g-dark:   linear-gradient(158deg, #0b1418 0%, #13242e 52%, #0b1418 100%);
  --g-fade:   linear-gradient(180deg, #ffffff 0%, #f5f9fa 100%);

  /* --- Tipografía --- */
  --f-head: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --fs-hero:  clamp(2.15rem, 5.2vw, 3.9rem);
  --fs-h1:    clamp(1.95rem, 4.2vw, 3.05rem);
  --fs-h2:    clamp(1.65rem, 3.2vw, 2.5rem);
  --fs-h3:    clamp(1.2rem, 1.9vw, 1.5rem);
  --fs-h4:    clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-lead:  clamp(1.02rem, 1.35vw, 1.18rem);
  --fs-sm:    .9rem;
  --fs-xs:    .8rem;

  /* --- Layout --- */
  --w-max:      1200px;
  --w-wide:     1360px;
  --w-narrow:   760px;
  --pad-x:      clamp(16px, 4vw, 32px);
  --sp-section: clamp(56px, 7vw, 100px);

  /* --- Forma --- */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   22px;
  --r-xl:   30px;
  --r-pill: 999px;

  /* --- Sombras --- */
  --sh-xs: 0 1px 2px rgba(13, 21, 25, .06);
  --sh-sm: 0 2px 10px rgba(13, 21, 25, .07);
  --sh-md: 0 10px 34px rgba(13, 21, 25, .09);
  --sh-lg: 0 22px 60px rgba(13, 21, 25, .16);
  --sh-brand: 0 12px 32px rgba(0, 143, 116, .28);
  --sh-gold:  0 12px 32px rgba(240, 168, 0, .3);

  /* --- Movimiento --- */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .18s var(--ease);
  --t: .28s var(--ease);

  --z-header: 900;
  --z-drawer: 1000;
  --z-float:  880;
  --z-modal:  1100;
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-body);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Navegadores sin soporte de overflow:clip (Safari < 16): se acepta el recorte
   clásico aunque el sticky quede degradado. */
@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}

/* Bloqueo de scroll con la posición conservada: el JS guarda el desplazamiento
   en `top` antes de fijar el body y lo restaura al desbloquear. */
body.mt-no-scroll {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--c-brand-700); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-brand-600); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  color: var(--c-ink-2);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { text-wrap: pretty; }
ul, ol { list-style-position: outside; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--c-brand-ring);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection { background: var(--c-brand-100); color: var(--c-ink-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.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;
}
.skip-link {
  position: absolute; top: -100px; left: 12px;
  z-index: var(--z-modal);
  background: var(--c-ink-2); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.mt-container { width: 100%; max-width: var(--w-max); margin-inline: auto; padding-inline: var(--pad-x); }
.mt-container--wide { max-width: var(--w-wide); }
.mt-container--narrow { max-width: var(--w-narrow); }

.mt-section { padding-block: var(--sp-section); position: relative; }
.mt-section--tight { padding-block: clamp(40px, 5vw, 68px); }
.mt-section--surface { background: var(--c-surface); }
.mt-section--fade { background: var(--g-fade); }
.mt-section--dark { background-color: var(--c-ink); background-image: var(--g-dark); color: var(--c-on-dark-soft); }
.mt-section--dark h1, .mt-section--dark h2, .mt-section--dark h3, .mt-section--dark h4 { color: #fff; }
.mt-section--dark p { color: var(--c-on-dark-soft); }

.mt-grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.mt-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.mt-grid--3 { grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); }
.mt-grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.mt-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 52px); }
.mt-head--center { margin-inline: auto; text-align: center; }
.mt-head__title { margin-block: 10px 0; }
.mt-head__text { margin-top: 14px; font-size: var(--fs-lead); color: var(--c-muted); }
.mt-section--dark .mt-head__text { color: var(--c-on-dark-soft); }

.mt-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-head);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--c-brand-700);
}
.mt-eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 2px;
  background: var(--g-brand-vivid);
}
.mt-head--center .mt-eyebrow::before { display: none; }
.mt-section--dark .mt-eyebrow,
.mt-hero .mt-eyebrow,
.mt-pagehero .mt-eyebrow { color: var(--c-brand-300); }

/* ==========================================================================
   4. BOTONES Y CHIPS
   ========================================================================== */
.mt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-head);
  font-weight: 600; font-size: .97rem; line-height: 1.1;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t-fast), border-color var(--t-fast);
  text-align: center; cursor: pointer;
}
.mt-btn svg { width: 18px; height: 18px; flex: none; }
.mt-btn:hover { transform: translateY(-2px); }
.mt-btn:active { transform: translateY(0); }

.mt-btn--primary { background-color: #00755f; background-image: var(--g-brand); color: #fff; box-shadow: var(--sh-brand); }
.mt-btn--primary:hover { color: #fff; box-shadow: 0 16px 40px rgba(0, 143, 116, .38); }

.mt-btn--gold { background-color: var(--c-gold); background-image: var(--g-gold); color: #3a2a00; box-shadow: var(--sh-gold); }
.mt-btn--gold:hover { color: #3a2a00; box-shadow: 0 16px 40px rgba(240, 168, 0, .42); }

.mt-btn--wa { background: #12833f; color: #fff; box-shadow: 0 12px 30px rgba(18, 131, 63, .3); }
.mt-btn--wa:hover { background: #0d6b32; color: #fff; }

.mt-btn--outline { border-color: var(--c-line); background: #fff; color: var(--c-ink-2); box-shadow: var(--sh-xs); }
.mt-btn--outline:hover { border-color: var(--c-brand); color: var(--c-brand-700); }

.mt-btn--ghost-light { border-color: rgba(255,255,255,.32); color: #fff; background: rgba(255,255,255,.06); }
.mt-btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.14); color: #fff; }

.mt-btn--sm { padding: 11px 18px; font-size: .88rem; }
.mt-btn--lg { padding: 18px 34px; font-size: 1.05rem; }
.mt-btn--block { width: 100%; }

.mt-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600;
  background: var(--c-brand-50); color: var(--c-brand-700);
  border: 1px solid var(--c-brand-100);
}
.mt-chip--gold { background: var(--c-gold-50); color: #8a6100; border-color: #f6e2ad; }
.mt-chip--dark { background: rgba(255,255,255,.08); color: #fff; border-color: var(--c-dark-line); }

/* ==========================================================================
   5. BARRA SUPERIOR + HEADER
   ========================================================================== */
.mt-topbar {
  background: var(--c-ink-2);
  color: var(--c-on-dark-soft);
  font-size: var(--fs-xs);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mt-topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 40px; flex-wrap: wrap;
}
.mt-topbar__list { display: flex; align-items: center; gap: 20px; list-style: none; flex-wrap: wrap; }
.mt-topbar__list a, .mt-topbar__item { color: var(--c-on-dark-soft); display: inline-flex; align-items: center; gap: 7px; }
.mt-topbar__list a:hover { color: var(--c-brand-300); }
.mt-topbar svg { width: 15px; height: 15px; color: var(--c-brand-400); flex: none; }
.mt-topbar__social { display: flex; gap: 8px; }
.mt-topbar__social a {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
}
.mt-topbar__social a:hover { background: var(--c-brand); color: #fff; }
@media (max-width: 860px) { .mt-topbar__hide-sm { display: none; } }

.mt-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow var(--t), background var(--t);
}
.mt-header.is-stuck { box-shadow: var(--sh-md); }
.mt-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px; min-width: 0;
}
.mt-logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.mt-logo img { width: auto; max-height: 52px; object-fit: contain; }
.mt-logo__text { font-family: var(--f-head); font-weight: 800; font-size: 1.15rem; color: var(--c-ink-2); line-height: 1.1; }
.mt-logo__text span { display: block; font-weight: 500; font-size: .78rem; color: var(--c-brand-600); letter-spacing: .04em; }

.mt-header__actions { display: flex; align-items: center; gap: 12px; flex: none; }

.mt-nav { margin-left: auto; min-width: 0; }
.mt-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; flex-wrap: nowrap; }
.mt-nav li { position: relative; }
.mt-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 13px; border-radius: var(--r-sm);
  font-family: var(--f-head); font-weight: 500; font-size: .94rem;
  color: var(--c-ink-3);
  white-space: nowrap;
}
.mt-nav a:hover { color: var(--c-brand-700); background: var(--c-brand-50); }
.mt-nav .current-menu-item > a,
.mt-nav .current_page_item > a,
.mt-nav .current-menu-ancestor > a,
.mt-nav .current_page_ancestor > a { color: var(--c-brand-700); font-weight: 600; }
.mt-nav .menu-item-has-children > a::after {
  content: ""; width: 7px; height: 7px; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--t-fast);
}
.mt-nav .menu-item-has-children:hover > a::after { transform: rotate(-135deg) translateY(1px); }

.mt-nav .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 262px; padding: 10px;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.mt-nav li:hover > .sub-menu,
.mt-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mt-nav .sub-menu a { display: flex; width: 100%; padding: 10px 14px; font-size: .9rem; border-radius: var(--r-sm); }
.mt-nav .sub-menu .sub-menu { top: -10px; left: calc(100% + 6px); }

.mt-burger {
  display: none; width: 46px; height: 46px;
  border-radius: var(--r-sm); border: 1px solid var(--c-line);
  background: #fff; place-items: center;
}
.mt-burger span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--c-ink-2); position: relative;
  transition: background var(--t-fast);
}
.mt-burger span::before, .mt-burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  border-radius: 2px; background: var(--c-ink-2);
  transition: transform var(--t);
}
.mt-burger span::before { top: -6px; }
.mt-burger span::after { top: 6px; }
.mt-burger[aria-expanded="true"] span { background: transparent; }
.mt-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.mt-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Entre 1120 y 1340 px cabe el menú pero no el botón: se oculta el botón,
   no el menú (el WhatsApp flotante sigue disponible). */
@media (max-width: 1340px) {
  .mt-btn--header { display: none; }
}
@media (max-width: 1180px) {
  .mt-nav a { padding: 10px 9px; font-size: .89rem; }
}
@media (max-width: 1080px) {
  .mt-nav { display: none; }
  .mt-burger { display: grid; }
}

/* --- Drawer móvil --- */
.mt-drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: rgba(9, 17, 21, .62);
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.mt-drawer.is-open { opacity: 1; visibility: visible; }
.mt-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(400px, 90vw); background: #fff;
  padding: 22px 20px 40px;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform var(--t);
  display: flex; flex-direction: column; gap: 18px;
}
.mt-drawer.is-open .mt-drawer__panel { transform: translateX(0); }
.mt-drawer__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt-drawer__close {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  border: 1px solid var(--c-line); display: grid; place-items: center;
  font-size: 1.3rem; color: var(--c-ink-2);
}
.mt-drawer ul { list-style: none; }
.mt-drawer nav > ul > li { border-bottom: 1px solid var(--c-line-2); position: relative; }
.mt-drawer nav a {
  display: block; padding: 13px 44px 13px 4px;
  font-family: var(--f-head); font-weight: 500; font-size: 1rem; color: var(--c-ink-2);
}
.mt-drawer nav a:hover { color: var(--c-brand-600); }
.mt-drawer .sub-menu { padding-left: 14px; border-left: 2px solid var(--c-brand-100); margin-bottom: 10px; }
.mt-drawer .sub-menu a { padding: 9px 4px; font-size: .92rem; color: var(--c-muted); font-weight: 400; }
.mt-drawer__toggle {
  position: absolute; right: 0; top: 5px;
  width: 38px; height: 38px; display: grid; place-items: center;
  color: var(--c-muted); font-size: 1.5rem; line-height: 1;
  transition: transform var(--t);
}
.mt-drawer .menu-item-has-children > .sub-menu { display: none; }
.mt-drawer .menu-item-has-children.is-open > .sub-menu { display: block; }
.mt-drawer .menu-item-has-children.is-open > .mt-drawer__toggle { transform: rotate(45deg); }
.mt-drawer__cta { display: grid; gap: 10px; margin-top: auto; padding-top: 16px; }
.mt-drawer__meta { font-size: var(--fs-sm); color: var(--c-muted); display: grid; gap: 8px; }
.mt-drawer__meta a { color: var(--c-ink-2); font-weight: 600; }

/* ==========================================================================
   6. HERO
   ========================================================================== */
.mt-hero {
  position: relative; overflow: hidden;
  background-color: var(--c-ink);
  background-image: var(--g-dark);
  color: var(--c-on-dark-soft);
  padding-block: clamp(56px, 8vw, 104px);
  isolation: isolate;
}
.mt-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 78% 22%, rgba(0, 193, 151, .28) 0%, transparent 62%),
    radial-gradient(48% 60% at 12% 82%, rgba(245, 179, 1, .16) 0%, transparent 60%);
}
.mt-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(75% 75% at 50% 40%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 75% at 50% 40%, #000 0%, transparent 100%);
}
.mt-hero__grid {
  display: grid; gap: clamp(32px, 5vw, 60px);
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
}
@media (max-width: 980px) { .mt-hero__grid { grid-template-columns: 1fr; } }

.mt-hero__title { font-size: var(--fs-hero); color: #fff; margin-block: 16px 0; }
.mt-hero__title em { font-style: normal; color: var(--c-brand-300); }
.mt-hero__title mark { background: none; color: var(--c-gold-400); }
.mt-hero__text { margin-top: 18px; font-size: var(--fs-lead); color: var(--c-on-dark-soft); max-width: 58ch; }
.mt-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.mt-hero__points { list-style: none; display: grid; gap: 12px; margin-top: 30px; }
.mt-hero__points li { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; }
.mt-hero__points svg { width: 21px; height: 21px; flex: none; color: var(--c-brand-300); margin-top: 2px; }

.mt-hero__media { position: relative; }
.mt-hero__media img {
  width: 100%; border-radius: var(--r-xl);
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
}
.mt-hero__badge {
  position: absolute; left: -14px; bottom: 22px;
  background: #fff; color: var(--c-ink-2);
  border-radius: var(--r-md); padding: 14px 18px;
  box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: 12px;
  max-width: 260px;
}
.mt-hero__badge strong { font-family: var(--f-head); font-size: 1.4rem; display: block; line-height: 1; color: var(--c-brand-700); }
.mt-hero__badge span { font-size: var(--fs-xs); color: var(--c-muted); }
@media (max-width: 600px) { .mt-hero__badge { left: 8px; bottom: 10px; padding: 11px 14px; } }

/* Barra de confianza bajo el hero */
.mt-trust {
  background: rgba(255,255,255,.05);
  border-top: 1px solid var(--c-dark-line);
  margin-top: clamp(38px, 5vw, 64px);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.4vw, 26px);
}
.mt-trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.mt-trust__item { display: flex; gap: 13px; align-items: center; }
.mt-trust__item svg { width: 30px; height: 30px; color: var(--c-brand-300); flex: none; }
.mt-trust__item strong { display: block; color: #fff; font-family: var(--f-head); font-size: 1rem; }
.mt-trust__item span { font-size: var(--fs-xs); color: var(--c-on-dark-muted); }

/* ==========================================================================
   7. PAGE HERO (interiores)
   ========================================================================== */
.mt-pagehero {
  position: relative; overflow: hidden;
  background-color: var(--c-ink); background-image: var(--g-dark);
  color: var(--c-on-dark-soft);
  padding-block: clamp(38px, 5vw, 66px);
}
.mt-pagehero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(58% 130% at 82% 10%, rgba(0, 193, 151, .3) 0%, transparent 60%);
}
.mt-pagehero > * { position: relative; }
.mt-pagehero__title { color: #fff; margin-top: 12px; }
.mt-pagehero__text { margin-top: 14px; font-size: var(--fs-lead); color: var(--c-on-dark-soft); max-width: 68ch; }
.mt-pagehero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Migas */
.mt-crumbs { font-size: var(--fs-xs); color: var(--c-on-dark-muted); }
.mt-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mt-crumbs a { color: var(--c-on-dark-soft); }
.mt-crumbs a:hover { color: var(--c-brand-300); }
.mt-crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.32); }
.mt-crumbs [aria-current="page"] { color: var(--c-brand-300); }

/* ==========================================================================
   8. TARJETAS DE CATÁLOGO / PRODUCTO
   ========================================================================== */
.mt-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.mt-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-brand-100); }
.mt-card__media {
  position: relative; aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #eef4f6, #dfeaee);
  overflow: hidden;
}
.mt-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mt-card:hover .mt-card__media img { transform: scale(1.05); }
.mt-card__media--contain { background: #fff; }
.mt-card__media--contain img { object-fit: contain; padding: 14px; }
.mt-card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: #a9bcc4; }
.mt-card__ph svg { width: 54px; height: 54px; }
.mt-card__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(19, 33, 42, .82); color: #fff;
  backdrop-filter: blur(6px);
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 11px; border-radius: var(--r-pill);
}
.mt-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mt-card__title { font-size: 1.08rem; line-height: 1.3; }
.mt-card__title a { color: var(--c-ink-2); }
.mt-card__title a:hover { color: var(--c-brand-600); }
.mt-card__text { font-size: var(--fs-sm); color: var(--c-muted); flex: 1; }
.mt-card__foot { display: flex; align-items: center; gap: 10px; padding-top: 6px; flex-wrap: wrap; }
.mt-card__link {
  font-family: var(--f-head); font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.mt-card__link svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.mt-card__link:hover svg { transform: translateX(3px); }
.mt-card__wa {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; margin-left: auto;
  background: #e8f8ee; color: #17913f; border: 1px solid #c9ecd6;
  transition: background var(--t-fast), color var(--t-fast);
}
.mt-card__wa:hover { background: #1faa53; color: #fff; }
.mt-card__wa svg { width: 19px; height: 19px; }

/* Tarjeta de categoría */
.mt-cat {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 250px; padding: 22px;
  border-radius: var(--r-lg); overflow: hidden;
  color: #fff; background: var(--c-ink-3);
  isolation: isolate;
}
.mt-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .55s var(--ease); }
.mt-cat::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,20,24,.15) 0%, rgba(11,20,24,.55) 45%, rgba(11,20,24,.92) 100%);
}
.mt-cat:hover img { transform: scale(1.06); }
.mt-cat__title { color: #fff; font-size: 1.22rem; }
.mt-cat__text { font-size: var(--fs-sm); color: rgba(255,255,255,.82); margin-top: 6px; }
.mt-cat__count {
  align-self: flex-start; margin-bottom: 10px;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--c-brand-700); color: #fff; padding: 5px 10px; border-radius: var(--r-pill);
}
.mt-cat__more { margin-top: 12px; font-size: .88rem; font-weight: 600; color: var(--c-brand-300); display: inline-flex; gap: 6px; align-items: center; }
.mt-cat__more svg { width: 15px; height: 15px; }
.mt-cat:hover .mt-cat__more { color: #fff; }
.mt-cat__link { position: absolute; inset: 0; z-index: 3; }

/* ==========================================================================
   9. FEATURES / PASOS / STATS
   ========================================================================== */
.mt-feature {
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 26px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.mt-feature:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--c-brand-100); }
.mt-feature__icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--c-brand-50); color: var(--c-brand-700);
  border: 1px solid var(--c-brand-100);
}
.mt-feature__icon svg { width: 26px; height: 26px; }
.mt-feature--gold .mt-feature__icon { background: var(--c-gold-50); color: #a97a00; border-color: #f6e2ad; }
.mt-feature__title { font-size: 1.1rem; margin-bottom: 8px; }
.mt-feature__text { font-size: var(--fs-sm); color: var(--c-muted); }

.mt-section--dark .mt-feature { background: var(--c-dark-card); border-color: var(--c-dark-line); }
.mt-section--dark .mt-feature:hover { border-color: rgba(94, 224, 193, .38); box-shadow: none; }
.mt-section--dark .mt-feature__icon { background: rgba(0, 193, 151, .16); color: var(--c-brand-300); border-color: rgba(94, 224, 193, .28); }
.mt-section--dark .mt-feature__text { color: var(--c-on-dark-soft); }

.mt-steps { counter-reset: paso; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.mt-step { position: relative; padding: 26px 22px 22px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.mt-step::before {
  counter-increment: paso; content: counter(paso, decimal-leading-zero);
  font-family: var(--f-head); font-size: 2.5rem; font-weight: 800; line-height: 1;
  color: var(--c-brand-100); display: block; margin-bottom: 10px;
}
.mt-step__title { font-size: 1.06rem; margin-bottom: 8px; }
.mt-step__text { font-size: var(--fs-sm); color: var(--c-muted); }
.mt-section--dark .mt-step { background: var(--c-dark-card); border-color: var(--c-dark-line); }
.mt-section--dark .mt-step::before { color: rgba(94, 224, 193, .3); }
.mt-section--dark .mt-step__text { color: var(--c-on-dark-soft); }

.mt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.mt-stat { text-align: center; padding: 22px 14px; border-radius: var(--r-lg); background: var(--c-dark-card); border: 1px solid var(--c-dark-line); }
.mt-stat strong { display: block; font-family: var(--f-head); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; line-height: 1; background: var(--g-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mt-stat span { display: block; margin-top: 8px; font-size: var(--fs-sm); color: var(--c-on-dark-soft); }

/* ==========================================================================
   10. SPLIT / MEDIA + TEXTO
   ========================================================================== */
.mt-split { display: grid; gap: clamp(28px, 4.5vw, 62px); align-items: center; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.mt-split__media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-lg); }
.mt-split--reverse .mt-split__media { order: 2; }
@media (max-width: 720px) { .mt-split--reverse .mt-split__media { order: 0; } }
.mt-split__list { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.mt-split__list li { display: flex; gap: 12px; align-items: flex-start; }
.mt-split__list svg { width: 21px; height: 21px; flex: none; color: var(--c-brand); margin-top: 2px; }
.mt-section--dark .mt-split__list svg { color: var(--c-brand-300); }

/* ==========================================================================
   11. LOGOS / MARCAS
   ========================================================================== */
.mt-brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.mt-brand {
  display: grid; place-items: center; text-align: center;
  padding: 20px 14px; min-height: 96px;
  border-radius: var(--r-md); border: 1px solid var(--c-line);
  background: #fff; color: var(--c-ink-3);
  font-family: var(--f-head); font-weight: 700; font-size: .98rem;
  transition: transform var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.mt-brand:hover { transform: translateY(-3px); border-color: var(--c-brand); color: var(--c-brand-700); }
.mt-brand img { max-height: 46px; width: auto; object-fit: contain; }
.mt-brand small { display: block; font-weight: 500; font-size: .74rem; color: var(--c-muted); margin-top: 4px; }

/* ==========================================================================
   12. FAQ
   ========================================================================== */
.mt-faq { display: grid; gap: 12px; }
.mt-faq__item { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; transition: border-color var(--t); }
.mt-faq__item[open] { border-color: var(--c-brand-100); box-shadow: var(--sh-sm); }
.mt-faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-family: var(--f-head); font-weight: 600; font-size: 1.02rem; color: var(--c-ink-2);
}
.mt-faq__q::-webkit-details-marker { display: none; }
.mt-faq__q::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid var(--c-brand); border-bottom: 2.5px solid var(--c-brand);
  transform: rotate(45deg) translateY(-3px); transition: transform var(--t);
}
.mt-faq__item[open] .mt-faq__q::after { transform: rotate(-135deg) translateY(-3px); }
.mt-faq__a { padding: 0 22px 20px; font-size: .97rem; color: var(--c-muted); }
.mt-faq__a p + p { margin-top: 10px; }

/* ==========================================================================
   13. TESTIMONIOS
   ========================================================================== */
.mt-quote {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.mt-quote__stars { display: flex; gap: 3px; color: var(--c-gold); }
.mt-quote__stars svg { width: 17px; height: 17px; }
.mt-quote__text { font-size: .98rem; color: var(--c-body); flex: 1; }
.mt-quote__who { display: flex; align-items: center; gap: 12px; }
.mt-quote__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--g-brand); color: #fff;
  font-family: var(--f-head); font-weight: 700;
}
.mt-quote__who strong { display: block; font-size: .95rem; color: var(--c-ink-2); font-family: var(--f-head); }
.mt-quote__who span { font-size: var(--fs-xs); color: var(--c-muted); }

/* ==========================================================================
   14. CTA BAND
   ========================================================================== */
.mt-cta {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background-color: var(--c-ink);
  background-image: var(--g-dark);
  color: var(--c-on-dark-soft);
  padding: clamp(32px, 5vw, 60px);
  display: grid; gap: 26px; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  isolation: isolate;
}
.mt-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(48% 100% at 88% 12%, rgba(0, 193, 151, .34) 0%, transparent 62%),
    radial-gradient(40% 90% at 6% 96%, rgba(245, 179, 1, .2) 0%, transparent 60%);
}
.mt-cta h2 { color: #fff; }
.mt-cta p { margin-top: 10px; color: var(--c-on-dark-soft); max-width: 62ch; }
.mt-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .mt-cta { grid-template-columns: 1fr; } }

/* ==========================================================================
   15. CONTENIDO EDITORIAL (WYSIWYG)
   ========================================================================== */
.mt-prose { font-size: 1.02rem; color: var(--c-body); }
.mt-prose > * + * { margin-top: 1.1em; }
.mt-prose h2 { font-size: clamp(1.42rem, 2.6vw, 1.95rem); margin-top: 1.9em; }
.mt-prose h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); margin-top: 1.6em; }
.mt-prose h4 { font-size: 1.08rem; margin-top: 1.4em; }
.mt-prose h2:first-child, .mt-prose h3:first-child { margin-top: 0; }
.mt-prose p { line-height: 1.75; }
.mt-prose strong { color: var(--c-ink-2); font-weight: 600; }
.mt-prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 500; }
.mt-prose ul, .mt-prose ol { padding-left: 1.35em; display: grid; gap: .5em; }
.mt-prose ul { list-style: none; padding-left: 0; }
.mt-prose ul li { position: relative; padding-left: 1.75em; }
.mt-prose ul li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 9px; height: 9px; border-radius: 3px;
  background: var(--g-brand-vivid);
}
.mt-prose ol li::marker { color: var(--c-brand-600); font-weight: 700; }
.mt-prose img, .mt-prose figure img { border-radius: var(--r-md); box-shadow: var(--sh-sm); }
.mt-prose figure { margin-block: 1.6em; }
.mt-prose figcaption { font-size: var(--fs-xs); color: var(--c-muted); text-align: center; margin-top: 8px; }
.mt-prose blockquote {
  border-left: 4px solid var(--c-brand); background: var(--c-brand-50);
  padding: 18px 22px; border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.05rem; color: var(--c-ink-3);
}
.mt-prose code {
  background: var(--c-surface-2); padding: 2px 6px; border-radius: var(--r-xs);
  font-size: .92em; color: var(--c-ink-3);
}
.mt-prose pre { background: var(--c-ink-2); color: #e6f1f5; padding: 18px; border-radius: var(--r-md); overflow-x: auto; }
.mt-prose hr { border: 0; height: 1px; background: var(--c-line); margin-block: 2.2em; }
.mt-prose table { font-size: .95rem; display: block; overflow-x: auto; white-space: nowrap; }
.mt-prose table th, .mt-prose table td { padding: 11px 14px; border: 1px solid var(--c-line); text-align: left; }
.mt-prose table th { background: var(--c-surface); font-family: var(--f-head); color: var(--c-ink-2); }
.mt-prose iframe, .mt-prose .wp-video, .mt-prose .wp-block-embed__wrapper iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-md); }
.mt-prose .wp-block-embed { margin-block: 1.6em; }
.mt-prose .alignleft { float: left; margin: 0 1.4em 1em 0; max-width: 46%; }
.mt-prose .alignright { float: right; margin: 0 0 1em 1.4em; max-width: 46%; }
.mt-prose .aligncenter { margin-inline: auto; }
.mt-prose .wp-caption { max-width: 100%; }
@media (max-width: 640px) {
  .mt-prose .alignleft, .mt-prose .alignright { float: none; margin: 1.4em auto; max-width: 100%; }
}

/* ==========================================================================
   16. FICHA DE PRODUCTO
   ========================================================================== */
.mt-product { display: grid; gap: clamp(28px, 4vw, 54px); grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }
@media (max-width: 940px) { .mt-product { grid-template-columns: 1fr; } }

/* La galería acompaña el scroll del contenido: no se fija. */
.mt-gallery { position: static; }
.mt-gallery__main {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--c-line); background: #fff;
  aspect-ratio: 4 / 3;
}
.mt-gallery__main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.mt-gallery__zoom {
  position: absolute; right: 12px; bottom: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(19,33,42,.78); color: #fff;
  display: grid; place-items: center; backdrop-filter: blur(6px);
}
.mt-gallery__zoom svg { width: 18px; height: 18px; }
.mt-gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; margin-top: 12px; }
.mt-gallery__thumb {
  aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden;
  border: 2px solid var(--c-line); background: #fff; padding: 0;
  transition: border-color var(--t-fast);
}
.mt-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mt-gallery__thumb.is-active, .mt-gallery__thumb:hover { border-color: var(--c-brand); }

.mt-product__main { min-width: 0; }
.mt-product__aside { display: grid; gap: 22px; align-content: start; min-width: 0; }
.mt-product__box {
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-sm);
}
.mt-product__box h2, .mt-product__box h3 { font-size: 1.12rem; margin-bottom: 12px; }
.mt-product__actions { display: grid; gap: 10px; margin-top: 4px; }
.mt-product__note { font-size: var(--fs-xs); color: var(--c-muted); text-align: center; margin-top: 4px; }
.mt-product__specs { list-style: none; display: grid; gap: 0; font-size: .93rem; }
.mt-product__specs li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--c-line); }
.mt-product__specs li:last-child { border-bottom: 0; }
.mt-product__specs strong { color: var(--c-ink-2); font-weight: 600; text-align: right; }
.mt-perks { list-style: none; display: grid; gap: 11px; font-size: .92rem; }
.mt-perks li { display: flex; gap: 10px; align-items: flex-start; }
.mt-perks svg { width: 19px; height: 19px; flex: none; color: var(--c-brand); margin-top: 2px; }

/* Lightbox */
.mt-lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(6, 12, 15, .93);
  display: grid; place-items: center; padding: 4vw;
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.mt-lightbox.is-open { opacity: 1; visibility: visible; }
.mt-lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; width: auto; border-radius: var(--r-md); }
.mt-lightbox__close, .mt-lightbox__nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
  transition: background var(--t-fast);
}
.mt-lightbox__close:hover, .mt-lightbox__nav:hover { background: rgba(255,255,255,.26); }
.mt-lightbox__close { top: 20px; right: 20px; }
.mt-lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.mt-lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   17. BLOG
   ========================================================================== */
.mt-post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.mt-post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-brand-100); }
.mt-post-card__media { aspect-ratio: 16 / 9; background: linear-gradient(150deg, #eef4f6, #dfeaee); overflow: hidden; }
.mt-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mt-post-card:hover .mt-post-card__media img { transform: scale(1.05); }
.mt-post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mt-post-card__meta { font-size: var(--fs-xs); color: var(--c-muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.mt-post-card__meta a { color: var(--c-brand-700); font-weight: 600; }
.mt-post-card__title { font-size: 1.14rem; line-height: 1.3; }
.mt-post-card__title a { color: var(--c-ink-2); }
.mt-post-card__title a:hover { color: var(--c-brand-600); }
.mt-post-card__text { font-size: var(--fs-sm); color: var(--c-muted); flex: 1; }

.mt-article { display: grid; gap: clamp(28px, 4vw, 52px); grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 980px) { .mt-article { grid-template-columns: 1fr; } }
.mt-article__meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: var(--fs-sm); color: var(--c-muted); padding-bottom: 20px; border-bottom: 1px solid var(--c-line); margin-bottom: 28px; }
.mt-article__hero { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 30px; }
.mt-article__hero img { width: 100%; }

.mt-sidebar { display: grid; gap: 22px; align-content: start; align-self: start; position: sticky; top: 96px; }
@media (max-width: 980px) { .mt-sidebar { position: static; } }
.mt-widget { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 22px; }
.mt-widget__title { font-size: 1.05rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line-2); }
.mt-widget ul { list-style: none; display: grid; gap: 10px; font-size: .93rem; }
.mt-widget ul a { color: var(--c-ink-3); display: flex; gap: 8px; }
.mt-widget ul a:hover { color: var(--c-brand-600); }
.mt-widget--brand { background-color: var(--c-ink); background-image: var(--g-dark); border-color: transparent; color: var(--c-on-dark-soft); }
.mt-widget--brand .mt-widget__title { color: #fff; border-color: var(--c-dark-line); }
.mt-widget--brand p { font-size: .93rem; margin-bottom: 16px; }

.mt-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.mt-share span { font-family: var(--f-head); font-weight: 600; color: var(--c-ink-2); font-size: .92rem; }
.mt-share a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-ink-3);
}
.mt-share a:hover { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.mt-share svg { width: 17px; height: 17px; }

/* Paginación */
.mt-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.mt-pagination .page-numbers {
  min-width: 44px; height: 44px; padding-inline: 12px;
  display: inline-grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid var(--c-line);
  background: #fff; color: var(--c-ink-3); font-weight: 600; font-family: var(--f-head);
}
.mt-pagination .page-numbers:hover { border-color: var(--c-brand); color: var(--c-brand-700); }
.mt-pagination .page-numbers.current { background: var(--g-brand); border-color: transparent; color: #fff; }

/* ==========================================================================
   18. FORMULARIOS
   ========================================================================== */
.mt-form { display: grid; gap: 16px; }
.mt-form__row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mt-field { display: grid; gap: 7px; }
.mt-field label { font-family: var(--f-head); font-weight: 600; font-size: .88rem; color: var(--c-ink-2); }
.mt-field label .req { color: #d93025; }
.mt-field input, .mt-field select, .mt-field textarea {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--c-line); border-radius: var(--r-sm);
  background: #fff; color: var(--c-ink-2); font-size: .96rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.mt-field textarea { min-height: 130px; resize: vertical; }
.mt-field input:focus, .mt-field select:focus, .mt-field textarea:focus {
  outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 4px var(--c-brand-ring);
}
.mt-field input::placeholder, .mt-field textarea::placeholder { color: #a3b0b8; }
.mt-field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.mt-field--check input { width: 18px; height: 18px; margin-top: 3px; }
.mt-field--check label { font-weight: 400; font-size: .84rem; color: var(--c-muted); font-family: var(--f-body); }
.mt-hp { position: absolute; left: -9999px; opacity: 0; }
.mt-form__msg { padding: 14px 18px; border-radius: var(--r-sm); font-size: .93rem; display: none; }
.mt-form__msg.is-ok { display: block; background: var(--c-brand-50); color: var(--c-brand-700); border: 1px solid var(--c-brand-100); }
.mt-form__msg.is-err { display: block; background: #fdecea; color: #b3261e; border: 1px solid #f7c9c4; }
.mt-form button[type="submit"][disabled] { opacity: .6; cursor: progress; }

.mt-contact { display: grid; gap: clamp(28px, 4vw, 52px); grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); align-items: start; }
@media (max-width: 900px) { .mt-contact { grid-template-columns: 1fr; } }
.mt-contact__card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--sh-sm); }
.mt-contact__list { list-style: none; display: grid; gap: 18px; }
.mt-contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.mt-contact__ico {
  width: 44px; height: 44px; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center;
  background: var(--c-brand-50); color: var(--c-brand-700); border: 1px solid var(--c-brand-100);
}
.mt-contact__ico svg { width: 21px; height: 21px; }
.mt-contact__list strong { display: block; font-family: var(--f-head); color: var(--c-ink-2); font-size: .95rem; }
.mt-contact__list a, .mt-contact__list span { font-size: .95rem; color: var(--c-muted); }
.mt-contact__list a:hover { color: var(--c-brand-600); }

/* Buscador */
.mt-searchform { display: flex; gap: 8px; }
.mt-searchform input[type="search"] {
  flex: 1; padding: 13px 16px; border: 1.5px solid var(--c-line);
  border-radius: var(--r-pill); background: #fff; font-size: .95rem;
}
.mt-searchform input[type="search"]:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 4px var(--c-brand-ring); }
.mt-searchform button { padding: 13px 22px; border-radius: var(--r-pill); background: var(--g-brand); color: #fff; font-family: var(--f-head); font-weight: 600; }

/* ==========================================================================
   19. FOOTER
   ========================================================================== */
.mt-footer { background: var(--c-ink); color: var(--c-on-dark-soft); padding-top: clamp(48px, 6vw, 76px); }
.mt-footer__grid {
  display: grid; gap: clamp(26px, 3.5vw, 46px);
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  padding-bottom: 42px;
}
@media (max-width: 980px) { .mt-footer__grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.mt-footer__brand img { max-height: 54px; width: auto; margin-bottom: 16px; }
.mt-footer__text { font-size: .92rem; color: var(--c-on-dark-muted); max-width: 42ch; }
.mt-footer__title {
  font-family: var(--f-head); font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
  margin-bottom: 18px;
}
.mt-footer ul { list-style: none; display: grid; gap: 11px; }
.mt-footer ul a, .mt-footer__contact li { color: var(--c-on-dark-muted); font-size: .92rem; display: flex; gap: 10px; align-items: flex-start; }
.mt-footer ul a:hover { color: var(--c-brand-300); }
.mt-footer__contact svg { width: 17px; height: 17px; color: var(--c-brand-400); flex: none; margin-top: 3px; }
.mt-footer__contact a { color: var(--c-on-dark-soft); }
.mt-footer__social { display: flex; gap: 10px; margin-top: 20px; }
.mt-footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid var(--c-dark-line);
  display: grid; place-items: center; color: #fff;
}
.mt-footer__social a:hover { background: var(--c-brand); border-color: var(--c-brand); }
.mt-footer__social svg { width: 17px; height: 17px; }

.mt-footer__legal {
  border-top: 1px solid var(--c-dark-line);
  padding-block: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--c-on-dark-muted);
}
.mt-footer__legal a { color: var(--c-on-dark-muted); }
.mt-footer__legal a:hover { color: var(--c-brand-300); }
.mt-footer__legal nav { display: flex; gap: 18px; flex-wrap: wrap; }

.mt-age {
  display: flex; gap: 14px; align-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--c-dark-line);
  border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 26px;
  font-size: var(--fs-xs); color: var(--c-on-dark-muted);
}
.mt-age__badge {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: 2px solid var(--c-gold); color: var(--c-gold-400);
  font-family: var(--f-head); font-weight: 800; font-size: .95rem;
}

/* ==========================================================================
   20. FLOTANTES
   ========================================================================== */
.mt-float {
  position: fixed; right: 18px; bottom: 18px; z-index: var(--z-float);
  display: grid; gap: 10px;
}
.mt-float__wa {
  width: 58px; height: 58px; border-radius: 50%;
  background: #1faa53; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 34px rgba(31, 170, 83, .44);
  transition: transform var(--t-fast);
}
.mt-float__wa:hover { transform: scale(1.07); color: #fff; }
.mt-float__wa svg { width: 30px; height: 30px; }
.mt-float__wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(31, 170, 83, .55);
  animation: mt-ping 2.4s var(--ease) infinite;
}
@keyframes mt-ping {
  0%   { transform: scale(1); opacity: .8; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.mt-float__top {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--c-line); color: var(--c-ink-2);
  display: grid; place-items: center; box-shadow: var(--sh-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  margin-left: auto;
}
.mt-float__top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.mt-float__top svg { width: 19px; height: 19px; }
@media (max-width: 520px) { .mt-float { right: 12px; bottom: 12px; } .mt-float__wa { width: 52px; height: 52px; } }

/* ==========================================================================
   21. 404 / ESTADOS VACÍOS
   ========================================================================== */
.mt-empty { text-align: center; max-width: 620px; margin-inline: auto; padding-block: clamp(30px, 5vw, 60px); }
.mt-empty__code {
  font-family: var(--f-head); font-weight: 800; line-height: 1;
  font-size: clamp(5rem, 16vw, 9.5rem);
  background: var(--g-brand-vivid); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mt-empty__text { margin-top: 14px; font-size: var(--fs-lead); color: var(--c-muted); }
.mt-empty__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ==========================================================================
   22. UTILIDADES + ANIMACIÓN AL SCROLL
   ========================================================================== */
.mt-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.mt-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .mt-reveal { opacity: 1; transform: none; } }

.mt-center { text-align: center; }
.mt-mt-0 { margin-top: 0; }
.mt-mt-2 { margin-top: 18px; }
.mt-mt-3 { margin-top: 30px; }
.mt-flex-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.mt-hidden { display: none !important; }

/* Corrige textos heredados que quedaban en blanco sobre fondo blanco */
.mt-prose [style*="color:#fff"],
.mt-prose [style*="color: #fff"],
.mt-prose [style*="color:#ffffff"],
.mt-prose [style*="color: #ffffff"],
.mt-prose [style*="color:white"],
.mt-prose [style*="color: white"] { color: var(--c-ink-2) !important; }

/* El bloque de admin bar no debe tapar el header sticky */
body.admin-bar .mt-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .mt-header { top: 46px; } }

/* ==========================================================================
   23. AJUSTES MÓVILES
   ========================================================================== */
/* Objetivos táctiles: en móvil los enlaces de texto quedaban en 21-24 px de
   alto, por debajo del mínimo cómodo para el pulgar. */
@media (max-width: 720px) {
  .mt-card__link,
  .mt-footer ul a,
  .mt-footer__contact li,
  .mt-topbar__list a,
  .mt-widget ul a,
  .mt-footer__legal nav a,
  .mt-contact__list a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }
  .mt-footer ul a,
  .mt-footer__contact li,
  .mt-widget ul a { display: flex; }

  .mt-hero__cta .mt-btn,
  .mt-empty__actions .mt-btn,
  .mt-cta__actions .mt-btn { width: 100%; }

  .mt-product__specs li { flex-direction: column; gap: 2px; }
  .mt-product__specs strong { text-align: left; }

  .mt-article__meta { gap: 10px; }
  .mt-share { justify-content: center; }
}

@media (max-width: 420px) {
  .mt-grid--4,
  .mt-grid--3 { grid-template-columns: 1fr; }
  .mt-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* Contenido de ficha reconstruido: prosa y grillas alternadas */
.mt-product__body > * + * { margin-top: clamp(26px, 3.4vw, 40px); }
.mt-product__body .mt-prose + .mt-prose { margin-top: 1.1em; }


/* ==========================================================================
   24. LISTA DE ENLACES (barra lateral de ficha)
   ========================================================================== */
.mt-linklist { list-style: none; display: grid; gap: 0; font-size: .93rem; }
.mt-linklist li { border-bottom: 1px solid var(--c-line-2); }
.mt-linklist li:last-child { border-bottom: 0; }
.mt-linklist a {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 0; color: var(--c-ink-3); min-height: 40px;
}
.mt-linklist a:hover { color: var(--c-brand-700); }
.mt-linklist svg { flex: none; color: var(--c-brand); transition: transform var(--t-fast); }
.mt-linklist a:hover svg { transform: translateX(3px); }

/* Crédito del estudio en el pie */
.mt-credit { display: block; margin-top: 4px; color: var(--c-on-dark-muted); }
.mt-credit a { color: var(--c-brand-300); font-weight: 600; }
.mt-credit a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 720px) {
  .mt-credit { display: inline; margin-top: 0; }
  .mt-credit::before { content: "·"; margin: 0 8px; opacity: .5; }
}
