/* ==========================================================================
   mv8.css — Maracas Studio v8 · CSS compartido (Lote 0)
   Dueño único de: tokens :root, @keyframes, reset del ámbito .mv8, utilidades
   y componentes del montaje v8. Lo consume el plugin starter-widgets (handle
   `mv8`); solo se encola donde hay widgets mv8_* o en el editor.

   ÁMBITO
   - Todo selector de bloque va bajo `.mv8` (wrapper que imprime la clase base).
     Especificidad de bloque 0,2,0: gana a `.elementor-kit-N h1|a|button` (0,1,1)
     y a Hello Elementor.
   - Resets: `html body .mv8 :where(...)` = 0,1,2. Pierden contra cualquier regla
     de bloque (0,2,0) para que un reset nunca mate un hover legítimo.
   - Excepciones sin `.mv8`: :root, @keyframes, html:has(body.mv8-page),
     body.mv8-page, .mv8-root (Container de página o plantilla del Theme Builder),
     .elementor-widget-mv8_cabecera (sticky), `html body .elementor-element|.elementor-widget-container|.mv8:has(.mv8-cabecera--sticky)`
     (display:contents de los ancestros de la cabecera sticky), body.elementor-editor-active,
     html.mv8-fx y body.mv8-fx-off (los pone el JS).

   REGLAS
   - Cero declaraciones de importancia forzada. Cero importaciones de hojas de estilo. Cero etiquetas sueltas fuera de :where().
   - Estados :hover / :focus-visible / :active con selector propio.
   - Desplazamientos en hover dentro de @media (hover:hover).
   - Medidas con var(--mv8-*); colores sin token anotados como (sin token).

   ORDEN
   0 Cabecera · 1 Tokens · 2 Keyframes · 3 Body y scroll · 4 .mv8-root ·
   5 Resets · 6 Utilidades · 7 Tipografía · 8 Botones · 9 Componentes ·
   10 Efectos de fondo · 11 Reveal · 12 Reduced motion · 13 Editor
   ========================================================================== */

/* ==========================================================================
   1. TOKENS (literales, de tokens-root.css.txt; no se cambia ningún valor)
   ========================================================================== */
/* TOKENS LITERALES — Maracas Studio v8. Fuente: INVENTARIO-DISENO-V8-A §1 (colores, tipos, tamaños, contenedor, radios, sombras) + INVENTARIO-B §3 (tonos de interiores).
   Se pegan tal cual en el bloque :root de mv8.css. Los marcados [interior] salen solo de páginas interiores (B §3). */
:root {
  /* --- Colores base --- */
  --mv8-marino: #12305a;          /* texto, bordes, fondos oscuros (221 usos) */
  --mv8-crema: #fef6ee;           /* fondo base y texto sobre marino */
  --mv8-crema-panel: #fffaf4;     /* secciones alternas, tarjetas */
  --mv8-melocoton: #f9dcae;       /* rótulos y subtítulos sobre marino */
  --mv8-coral-texto: #c23d14;     /* rótulos, enlaces, subrayados (sobre crema) */
  --mv8-coral: #e05a2b;           /* botón CTA principal, puntos */
  --mv8-coral-hover: #c94d20;     /* hover del CTA coral */
  --mv8-coral-claro: #ff8a5c;     /* ✳ y puntos sobre marino */
  --mv8-amarillo: #f4a648;
  --mv8-amarillo-estrella: #f4b72b; /* solo la estrella de Contacto */
  --mv8-azul: #2260ac;            /* tarjeta de garantía, marco de navegador */
  --mv8-rosa: #e46c9d;
  --mv8-teal: #2aa59c;
  --mv8-lila: #ab97cc;
  --mv8-noche: #0b2140;           /* fondo de vídeo y pie */
  --mv8-gris: #4a5566;            /* texto secundario (H1 pequeño, microcopy, pies de foto) */
  --mv8-crema-texto: #e9e2d6;     /* texto secundario sobre marino (lead de Guía) */
  --mv8-crema-texto-2: #d9d2c6;   /* texto del pie */
  --mv8-chip: #f3ece2;            /* hover de submenú, fondo de chip/tarjeta de enlace, barra de dominio */
  /* --- Pasteles de tarjetas (orden de rotación del MANIFIESTO) --- */
  --mv8-pastel-crema: #fdf3e6;
  --mv8-pastel-amarillo: #fdecc8;
  --mv8-pastel-rosa: #fbe1ec;
  --mv8-pastel-teal: #d9f0ee;
  --mv8-pastel-lila: #ece6f5;
  --mv8-pastel-azul: #dfe9f6;
  /* --- Visor «Antes» (grises del filtro) --- */
  --mv8-gris-visor-1: #7d8592;
  --mv8-gris-visor-2: #5a6472;
  --mv8-gris-visor-3: #e4e2de;
  /* --- [interior] solo páginas interiores (INVENTARIO-B §3) --- */
  --mv8-teal-oscuro: #1f7f78;     /* etiquetas en Servicio */
  --mv8-resaltado: #fde3a7;
  --mv8-error: #b3361a;
  --mv8-error-fondo: #fde6dc;
  --mv8-ok: #1d7a52;
  --mv8-estrella: #e0952e;
  /* --- Tipografías --- */
  --mv8-font-display: 'Dosis', sans-serif;                 /* titulares y números, SIEMPRE mayúsculas, peso 800 */
  --mv8-font-body: 'Quicksand', system-ui, sans-serif;     /* cuerpo e interfaz, base peso 500 */
  /* --- Contenedor y espaciados (Inventario A §1.4) --- */
  --mv8-maxw: 1200px;
  --mv8-maxw-wide: 1280px;          /* hero y barra de disciplinas */
  --mv8-gutter: clamp(18px, 4vw, 40px);
  --mv8-pad-v: clamp(64px, 9vw, 120px);      /* sección estándar */
  --mv8-pad-v-xl: clamp(72px, 10vw, 136px);  /* Guía, Testimonios, Contacto */
  --mv8-pad-v-sm: clamp(36px, 5vw, 56px);    /* 01 Marcas */
  --mv8-pad-v-pie: clamp(56px, 7vw, 88px);
  /* --- Radios --- */
  --mv8-r-card: 16px;   /* tarjetas y paneles */
  --mv8-r-pill: 999px;  /* botones y pastillas */
  --mv8-r-lg: 20px;     /* tarjeta de contacto, vídeo móvil */
  --mv8-r-xl: 24px;     /* marco de vídeo de escritorio */
  --mv8-r-md: 12px;     /* ventanas del visor, tarjetas de testimonio, miniaturas */
  --mv8-r-14: 14px;
  --mv8-r-sm: 10px;
  --mv8-r-xs: 6px;
  /* --- Sombras (literales) --- */
  --mv8-sh-submenu: 0 24px 48px -24px rgba(18,48,90,0.45);
  --mv8-sh-video: 0 40px 80px -40px rgba(18,48,90,0.6);
  --mv8-sh-card-hover: 0 20px 40px -24px rgba(18,48,90,0.55);
  --mv8-sh-note-hover: 0 20px 40px -24px rgba(18,48,90,0.5);
  --mv8-sh-hard: 12px 12px 0 #e05a2b;      /* tarjeta de contacto */
  --mv8-sh-hard-gal: 8px 8px 0 #e05a2b;    /* tarjeta de galería (hover) */
  --mv8-sh-cta-hover: 0 14px 28px -14px rgba(224,90,43,0.8);
  /* --- Escala tipográfica por rol (Inventario A §1.3; clamp literales) --- */
  --mv8-fs-kw: 15px;                         /* H1 pequeño SEO: Quicksand 700, lh 1.45, color gris */
  --mv8-fs-hero: clamp(30px, 3.9vw, 52px);   /* titular visual del hero: Dosis 800, upper, lh 1.04 */
  --mv8-fs-lead: clamp(17px, 1.5vw, 20px);   /* lead del hero: Quicksand 500, lh 1.55 */
  --mv8-fs-h2: clamp(26px, 3.5vw, 48px);     /* H2 estándar: Dosis 800, upper, lh 1.02 */
  --mv8-fs-h2-xl: clamp(40px, 6vw, 84px);    /* H2 Clientes: lh 0.98 */
  --mv8-fs-h2-contacto: clamp(40px, 5.6vw, 76px);
  --mv8-fs-h2-guia: clamp(40px, 6.4vw, 88px); /* lh 0.98 */
  --mv8-fs-h2-marcas: 21px;                  /* excepción: Quicksand 700 */
  --mv8-fs-sub: clamp(19px, 2vw, 24px);      /* subtítulo Guía/Clientes/Contacto: Quicksand 700, lh 1.4 */
  --mv8-fs-h3-metodo: 21px;                  /* Quicksand 700 */
  --mv8-fs-h3-servicio: clamp(24px, 2.2vw, 28px); /* Dosis 800 */
  --mv8-fs-h3-nota: clamp(22px, 2vw, 26px);  /* Dosis 800 */
  --mv8-fs-h3-contacto: clamp(28px, 2.8vw, 36px);
  --mv8-fs-faq-q: 17px;                      /* Quicksand 700 */
  --mv8-fs-body: 17px;                       /* lh 1.6 */
  --mv8-fs-body-sm: 15px;                    /* lh 1.5–1.6 */
  --mv8-fs-eyebrow: 12px;                    /* Quicksand 700, upper, tracking 0.16em (0.14em en pastillas) */
  --mv8-fs-cta-lg: 19px;                     /* hero, cierre, CTA fijo */
  --mv8-fs-cta: 17px;                        /* secundarios */
  --mv8-fs-num: 48px;                        /* número del contador, Dosis 800 */
  --mv8-fs-num-garantia: clamp(120px, 14vw, 200px); /* lh 0.78 */
  /* --- Breakpoint principal: 960px (media queries; ver CONTRATO) --- */
}

/* ==========================================================================
   2. KEYFRAMES (fotogramas literales del <helmet> de Inicio, L22-41; prefijo mv8-)
   Sin porte aquí: las variantes exclusivas de Servicio (mrcTick, mrcNote,
   mrcRing, mrcTravel y el mrcFloat de Servicio, distinto al de Inicio).
   ========================================================================== */
@keyframes mv8-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mv8-wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mv8-spin { to { transform: rotate(360deg); } }
@keyframes mv8-grid { from { transform: translate(0,0); } to { transform: translate(32px,32px); } }
@keyframes mv8-breath { 0%,100% { transform: scale(0.96); opacity: 0.7; } 50% { transform: scale(1.03); opacity: 1; } }
@keyframes mv8-ripple { 0% { transform: scale(1.05); opacity: 0; } 30% { opacity: 0.35; } 75% { opacity: 0.85; } 100% { transform: scale(0.3); opacity: 0; } }
@keyframes mv8-spot { 0%,100% { transform: translate(-10%,-6%) scale(1); } 50% { transform: translate(28%,12%) scale(1.15); } }
@keyframes mv8-float { 0%,100% { transform: translate(0,0) rotate(0deg); } 33% { transform: translate(18px,-22px) rotate(40deg); } 66% { transform: translate(-14px,14px) rotate(-30deg); } }
@keyframes mv8-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
/* Anillos de agua: los pone mv8.js (INFORME-HJ §3). Opacidad pico por --mv8-ring-a. */
@keyframes mv8-ring {
  0%   { transform: scale(0.08); opacity: 0; }
  12%  { transform: scale(0.3); opacity: var(--mv8-ring-a); }
  100% { transform: scale(1); opacity: 0; }
}

/* ==========================================================================
   3. BODY Y SCROLL
   ========================================================================== */
html:has(body.mv8-page) { scroll-behavior: smooth; background: var(--mv8-crema); }
body.mv8-page {
  margin: 0;
  background: var(--mv8-crema);
  color: var(--mv8-marino);
  font-family: var(--mv8-font-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Páginas legales (plantilla por defecto del tema, contenido de la viva): la tabla de
   cookies mide 625-760 px y desbordaba el documento en móvil. Scroll en la propia tabla. */
body.mv8-page .page-content :where(table) { display: block; max-width: 100%; overflow-x: auto; }

/* ==========================================================================
   4. .mv8-root — neutraliza el Container de Elementor y las plantillas del
   Theme Builder que lleven la clase CSS `mv8-root` (campo «Clases CSS»).
   overflow-x:clip, NUNCA hidden: rompería position:sticky.
   ========================================================================== */
/* Raíz: .mv8-root sola o .mv8-root.e-con (0,2,0, gana al .e-con de Elementor, 0,1,0). */
.mv8-root,
.mv8-root.e-con {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  gap: 0;
  row-gap: 0;
  column-gap: 0;
  --gap: 0px;
  --widgets-spacing: 0px;
  --container-max-width: none;
  --padding-top: 0;
  --padding-right: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  overflow-x: clip;
}
.mv8-root .e-con,
.mv8-root .elementor-widget,
.mv8-root .elementor-widget-container {
  margin: 0;
  padding: 0;
  max-width: none;
  width: 100%;
  gap: 0;
}
/* El .e-con>.e-con-inner de Elementor pone gap 20 px (0,2,0). Este selector (0,3,0) lo vence por especificidad. */
.mv8-root.e-con > .e-con-inner,
.mv8-root .e-con-inner {
  margin: 0;
  padding: 0;
  max-width: none;
  width: 100%;
  gap: 0;
  row-gap: 0;
  column-gap: 0;
}
/* Sin hueco entre widgets apilados (el margen del kit y el :not(:last-child)). */
.mv8-root .elementor-widget,
.mv8-root .elementor-widget:not(:last-child) { margin-block-end: 0; }
/* La cabecera sticky necesita que su contenedor sea el Container raíz de la plantilla. */
.mv8-root .elementor-widget-mv8_cabecera,
.mv8-root .elementor-widget-mv8_cabecera > .elementor-widget-container,
.mv8-root .elementor-widget-mv8_cabecera .mv8 { display: contents; }
/* position:sticky solo se mueve dentro de su padre inmediato. En una página de Elementor la cabecera vive dentro de
   div.mv8 > .elementor-widget-container > widget .elementor-element > contenedor .elementor-element, todos de su misma
   altura (77 px): no hay recorrido y no se pega (medido en v8: top -1419 a scrollY 1500). display:contents quita esas cajas y
   el padre efectivo pasa a ser .elementor. Solo los ancestros que contienen la cabecera sticky (:has); las variables CSS
   siguen heredando. Sin :has() (navegadores viejos) la regla se ignora entera y la cabecera queda como antes. 0,2,2 vence a .e-con. */
html body .elementor-element:has(.mv8-cabecera--sticky),
html body .elementor-widget-container:has(.mv8-cabecera--sticky),
html body .mv8:has(.mv8-cabecera--sticky) { display: contents; }
/* Trabajos: el widget 32 coloca dos franjas al 48 % y 78 % de este agrupador (32+33+40), como el diseño. */
.mv8-root .mv8-trabajos-grupo { position: relative; }
/* En una página de Elementor, el wrapper del widget 32 (position:relative) queda entre las franjas y el agrupador y se convierte en su bloque
   de referencia (medido en v8 el 17-11: franja 2 en 142 px en vez de 1234). display:contents lo quita de en medio SOLO en modo grupo. */
html body .elementor-widget-mv8_trabajos:has(.mv8-trabajos--grupo),
html body .elementor-widget-mv8_trabajos:has(.mv8-trabajos--grupo) > .elementor-widget-container,
html body .elementor-widget-mv8_trabajos:has(.mv8-trabajos--grupo) .mv8:has(.mv8-trabajos--grupo) { display: contents; }

/* ==========================================================================
   5. RESETS bajo .mv8 (0,1,2: pierden contra cualquier regla de bloque).
   ========================================================================== */
html body .mv8,
html body .mv8 :where(*, *::before, *::after) { box-sizing: border-box; }
html body .mv8 :where(h1, h2, h3, h4, h5, h6) { font: inherit; margin: 0; color: inherit; }
html body .mv8 :where(p, ul, ol, li, figure, blockquote) { margin: 0; padding: 0; }
html body .mv8 :where(ul, ol) { list-style: none; }
html body .mv8 :where(strong, b) { font-weight: 700; }
html body .mv8 :where(img) { max-width: none; height: auto; }
/* Enlaces del diseño: coral-texto, sin subrayado; el hover solo afecta a los enlaces sin clase propia. */
html body .mv8 :where(a) { color: var(--mv8-coral-texto); text-decoration: none; }
.mv8 :where(a):not([class]):hover { color: var(--mv8-marino); }
/* El kit de Elementor de la viva (.elementor-kit-365 button) mete letter-spacing en todos los botones y `font` no lo reinicia: se hereda (normal). */
html body .mv8 :where(button) { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
/* Hello Elementor (reset.css) pone white-space:nowrap a los <button> y desborda textos largos en móvil (FAQ); en el diseño envuelven.
   0,1,2 vence a ese reset (0,1,0) y pierde contra cualquier regla de bloque que necesite nowrap. */
html body .mv8 :where(button) { white-space: normal; }
/* El kit gana en hover con .elementor-kit-N button:hover (0,2,1): este reset de hover (0,2,3) lo vence
   para botones sin clase de componente. Los componentes ponen su propio :hover (0,3,0 o más). */
html body .mv8 :where(button):hover { background: none; color: inherit; }
html body .mv8 :where(input, textarea, select) { font-family: inherit; }
html body .mv8 [hidden][hidden] { display: none; }
.mv8 ::selection { background: var(--mv8-melocoton); color: var(--mv8-marino); }
/* Foco visible: el diseño no define anillo propio; fallback marino (crema sobre fondos oscuros). */
.mv8 :focus-visible { outline: 2px solid var(--mv8-marino); outline-offset: 2px; }
.mv8 .mv8-bg--marino :focus-visible,
.mv8 .mv8-bg--noche :focus-visible { outline-color: var(--mv8-crema); }

/* ==========================================================================
   6. UTILIDADES DE ESTRUCTURA
   ========================================================================== */
/* text-wrap: pretty lo hereda todo el diseño de la raíz de página (Inicio L45 y las demás); los títulos lo cambian a balance en su propio bloque. */
.mv8 { font-family: var(--mv8-font-body); font-size: 16px; font-weight: 500; color: var(--mv8-marino); text-wrap: pretty; line-height: normal; } /* font-size: el body de la viva trae 14,4 px del kit; el diseno parte de 16 px */
.mv8 .mv8-section {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding-inline: var(--mv8-gutter);
  padding-block: var(--mv8-pad-v);
}
.mv8 .mv8-section--sm { padding-block: var(--mv8-pad-v-sm); }
.mv8 .mv8-section--xl { padding-block: var(--mv8-pad-v-xl); }
.mv8 .mv8-section--flush-top { padding-top: 0; }
/* Fondos a ancho completo: se pintan en el <section> del bloque. */
.mv8 .mv8-bg--crema { background: var(--mv8-crema); color: var(--mv8-marino); }
.mv8 .mv8-bg--crema-panel { background: var(--mv8-crema-panel); color: var(--mv8-marino); }
/* Medido (valores-esperados-inicio.json, sec.reposo 375-1920): las secciones «azules» (Guía, Clientes, Contacto) son rgb(18,48,90) = --mv8-marino.
   --mv8-azul (#2260ac) no es un fondo de sección: lo pinta el widget de la tarjeta de garantía. */
.mv8 .mv8-bg--marino { background: var(--mv8-marino); color: var(--mv8-crema); }
.mv8 .mv8-bg--noche { background: var(--mv8-noche); color: var(--mv8-crema); }
/* Sin token de sección medido para coral: texto crema (sin token: revisar con el diseño). */
.mv8 .mv8-bg--coral { background: var(--mv8-coral); color: var(--mv8-crema); }
.mv8 .mv8-inner { width: 100%; max-width: var(--mv8-maxw); margin-inline: auto; }
.mv8 .mv8-inner--wide { max-width: var(--mv8-maxw-wide); }
.mv8 .mv8-anchor { scroll-margin-top: 80px; }
.mv8 .mv8-grid-autofit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--mv8-min, 320px)), 1fr));
  gap: var(--mv8-gap, 16px);
}
/* «hide-mobile» = oculto en móvil (<960); «hide-desktop» = oculto en escritorio (>=960). */
@media (max-width: 959.98px) { .mv8 .mv8-hide-mobile { display: none; } }
@media (min-width: 960px) { .mv8 .mv8-hide-desktop { display: none; } }
.mv8 .mv8-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mv8 .mv8-text-balance { text-wrap: balance; }
.mv8 .mv8-text-pretty { text-wrap: pretty; }

/* ==========================================================================
   7. TIPOGRAFÍA POR ROL
   Medidas de NOTAS-inicio.md (getComputedStyle, 375/1440/1920) cuando existen;
   si no, el token de tokens-root. Donde hay conflicto, ver INFORME-HD §3.
   ========================================================================== */
.mv8 .mv8-t-kw {                    /* H1 pequeño SEO (medido) */
  font-family: var(--mv8-font-body);
  font-size: var(--mv8-fs-kw);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--mv8-gris);
}
.mv8 .mv8-t-hero {                  /* titular visual del hero (medido: Dosis 800, upper, lh 1.04) */
  font-family: var(--mv8-font-display);
  font-size: var(--mv8-fs-hero);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--mv8-marino);
}
.mv8 .mv8-t-lead {                  /* lead del hero (tokens: Quicksand 500, lh 1.55) */
  font-family: var(--mv8-font-body);
  font-size: var(--mv8-fs-lead);
  font-weight: 500;
  line-height: 1.55;
  color: var(--mv8-marino);
}
.mv8 .mv8-t-h2 {                    /* H2 estándar (medido Trabajos: Dosis 800, upper, lh 1.02) */
  font-family: var(--mv8-font-display);
  font-size: var(--mv8-fs-h2);
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--mv8-marino);
}
.mv8 .mv8-t-h2-xl {                 /* H2 Clientes (medido: 84 px, lh 0.98, crema) */
  font-family: var(--mv8-font-display);
  font-size: var(--mv8-fs-h2-xl);
  font-weight: 800;
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--mv8-crema);
}
.mv8 .mv8-t-h2-contacto {           /* token; el H2 medido de Contacto es otro elemento (INFORME-HD §3) */
  font-family: var(--mv8-font-display);
  font-size: var(--mv8-fs-h2-contacto);
  font-weight: 800;
  line-height: 0.98;
  text-transform: uppercase;
}
.mv8 .mv8-t-h2-guia {               /* token; el H2 medido de Guía es otro elemento (INFORME-HD §3) */
  font-family: var(--mv8-font-display);
  font-size: var(--mv8-fs-h2-guia);
  font-weight: 800;
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--mv8-crema);
}
.mv8 .mv8-t-h2-marcas {             /* medido: Quicksand 700, 21 px, lh 1.25 */
  font-family: var(--mv8-font-body);
  font-size: var(--mv8-fs-h2-marcas);
  font-weight: 700;
  line-height: 1.25;
  color: var(--mv8-marino);
}
.mv8 .mv8-t-sub {                   /* subtítulo Guía/Clientes/Contacto (tokens: Quicksand 700, lh 1.4) */
  font-family: var(--mv8-font-body);
  font-size: var(--mv8-fs-sub);
  font-weight: 700;
  line-height: 1.4;
}
.mv8 .mv8-t-h3-metodo {             /* Quicksand 700 21 px */
  font-family: var(--mv8-font-body);
  font-size: var(--mv8-fs-h3-metodo);
  font-weight: 700;
}
.mv8 .mv8-t-h3-servicio {           /* Dosis 800 */
  font-family: var(--mv8-font-display);
  font-size: var(--mv8-fs-h3-servicio);
  font-weight: 800;
  text-transform: uppercase;
}
.mv8 .mv8-t-h3-nota {               /* Dosis 800 */
  font-family: var(--mv8-font-display);
  font-size: var(--mv8-fs-h3-nota);
  font-weight: 800;
  text-transform: uppercase;
}
.mv8 .mv8-t-h3-contacto {           /* token (sin medir) */
  font-family: var(--mv8-font-display);
  font-size: var(--mv8-fs-h3-contacto);
  font-weight: 800;
  text-transform: uppercase;
}
.mv8 .mv8-t-faq-q {                 /* medido: Quicksand 700, 17 px, lh 1.4 */
  font-family: var(--mv8-font-body);
  font-size: var(--mv8-fs-faq-q);
  font-weight: 700;
  line-height: 1.4;
}
.mv8 .mv8-t-body {                  /* medido: Quicksand 500, 17 px, lh 1.6 */
  font-family: var(--mv8-font-body);
  font-size: var(--mv8-fs-body);
  font-weight: 500;
  line-height: 1.6;
}
.mv8 .mv8-t-body-sm {               /* Quicksand 15 px, lh 1.55 */
  font-family: var(--mv8-font-body);
  font-size: var(--mv8-fs-body-sm);
  font-weight: 500;
  line-height: 1.55;
}
.mv8 .mv8-t-num {                   /* medido: Dosis 800, 48 px, lh 1 */
  font-family: var(--mv8-font-display);
  font-size: var(--mv8-fs-num);
  font-weight: 800;
  line-height: 1;
  color: var(--mv8-crema);
}
.mv8 .mv8-t-micro {                 /* medido (microcopy hero): Quicksand 700, 12 px, lh 1.6, ls 0.1em, upper */
  font-family: var(--mv8-font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mv8-gris);
}
/* Eyebrow: medido 12 px, 700, upper, ls 0.16em, color coral-texto (194,61,20). */
.mv8 .mv8-eyebrow {
  font-family: var(--mv8-font-body);
  font-size: var(--mv8-fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mv8-coral-texto);
}
.mv8 .mv8-eyebrow--oscuro { color: var(--mv8-melocoton); }

/* ==========================================================================
   8. BOTONES (.mv8-btn + variante; compuestos SIN espacio)
   Medidos en el hero (coral-lg) y en garantía / cabecera / FAQ. Las variantes
   marcadas «sin medir» usan tokens y NO tienen su valor confirmado.
   ========================================================================== */
.mv8 .mv8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 44px;
  border: 0;
  border-radius: var(--mv8-r-pill);
  font-family: var(--mv8-font-body);
  font-size: var(--mv8-fs-cta);
  font-weight: 700;
  /* Medido: 216 de 226 píldoras, normal. */
  line-height: normal;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
/* Hero (MEDIDO 1440): fondo coral, blanco, 19 px / 700, min 60, pad 14/32, sombra y desplazamiento en hover. */
.mv8 .mv8-btn.mv8-btn--coral-lg {
  min-height: 60px;
  padding: 14px 32px;
  background: var(--mv8-coral);
  color: #ffffff;
  font-size: var(--mv8-fs-cta-lg);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.mv8 .mv8-btn.mv8-btn--coral-lg:hover,
.mv8 .mv8-btn.mv8-btn--coral-lg:active { background: var(--mv8-coral-hover); box-shadow: var(--mv8-sh-cta-hover); }
@media (hover:hover) {
  .mv8 .mv8-btn.mv8-btn--coral-lg:hover { transform: translateY(-2px); }
}
/* Mismo color, tamaño secundario (SIN MEDIR: escala de tokens fs-cta 17 px, min 52). */
.mv8 .mv8-btn.mv8-btn--coral {
  min-height: 52px;
  padding: 14px 28px;
  background: var(--mv8-coral);
  color: #ffffff;
  font-size: var(--mv8-fs-cta);
}
.mv8 .mv8-btn.mv8-btn--coral:hover,
.mv8 .mv8-btn.mv8-btn--coral:active { background: var(--mv8-coral-hover); }
/* Garantía (MEDIDO): crema, marino, 17 px / 700, min 52, pad 26, gap 8 px (garantia.cta en el JSON); hover blanco. */
.mv8 .mv8-btn.mv8-btn--crema {
  min-height: 52px;
  padding: 0 26px;
  gap: 8px;
  background: var(--mv8-crema);
  color: var(--mv8-marino);
  font-size: var(--mv8-fs-cta);
}
.mv8 .mv8-btn.mv8-btn--crema:hover,
.mv8 .mv8-btn.mv8-btn--crema:active { background: #ffffff; }
/* Amarillo (MEDIDO, 40 botones a 1440 y 375): borde 2 px marino; alto 52 o 56 según bloque (no unificado); hover sin cambio de fondo. */
.mv8 .mv8-btn.mv8-btn--amarillo {
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid var(--mv8-marino);
  background: var(--mv8-amarillo);
  color: var(--mv8-marino);
  font-size: var(--mv8-fs-cta);
}
/* Contorno (MEDIDO en cabecera, reposo): 15 px / 700, borde 2 px marino, min 44, pad 0 14. Hover SIN MEDIR. */
/* Cabecera (JSON cab.cta): sin gap. */
.mv8 .mv8-btn.mv8-btn--contorno {
  min-height: 44px;
  padding: 0 14px;
  gap: normal;
  border: 2px solid var(--mv8-marino);
  background: transparent;
  color: var(--mv8-marino);
  font-size: 15px;
}
.mv8 .mv8-btn.mv8-btn--contorno:hover,
.mv8 .mv8-btn.mv8-btn--contorno:active { background: var(--mv8-marino); color: var(--mv8-crema); }
/* Enlace-botón (MEDIDO hero «Ver web»-tipo): sin fondo, marino 17 px / 700, min 44; hover coral-texto. */
.mv8 .mv8-btn.mv8-btn--link {
  min-height: 44px;
  padding: 0;
  background: none;
  color: var(--mv8-marino);
  font-size: var(--mv8-fs-cta);
}
.mv8 .mv8-btn.mv8-btn--link:hover,
.mv8 .mv8-btn.mv8-btn--link:active { color: var(--mv8-coral-texto); }
/* Móvil: el CTA del hero ocupa toda la fila. */
@media (max-width: 959.98px) {
  .mv8 .mv8-btn.mv8-btn--block-mobile { width: 100%; }
}

/* ==========================================================================
   9. COMPONENTES
   ========================================================================== */

/* --- Chip (filtro «¿Te suena?»). Medido: 17 px / 600, lh 1.4, marino; activo crema.
   Padding, borde y fondo activo SIN MEDIR (supuesto: marino). --- */
.mv8 .mv8-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(18,48,90,0.25);
  border-radius: var(--mv8-r-pill);
  background: transparent;
  color: var(--mv8-marino);
  font-family: var(--mv8-font-body);
  font-size: var(--mv8-fs-cta);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}
.mv8 .mv8-chip:hover { background: var(--mv8-chip); }
.mv8 .mv8-chip.is-on,
.mv8 .mv8-chip[aria-pressed="true"] { background: var(--mv8-marino); border-color: var(--mv8-marino); color: var(--mv8-crema); }

/* --- Pastilla de etiqueta. MEDIDA (hero pill): 12 px / 700, ls 0.16em (1.92 px), lh 1.3,
   fondo crema, borde 1 px marino al 35 %, pad 8/14, radio pill. --- */
.mv8 .mv8-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(18,48,90,0.35);
  border-radius: var(--mv8-r-pill);
  background: var(--mv8-crema);
  color: var(--mv8-marino);
  font-family: var(--mv8-font-body);
  font-size: var(--mv8-fs-eyebrow);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --- Tarjeta. Borde marino, radio 16, hover desplaza -3 px (MEDIDO en guía). Sin sombra
   en hover: la guía medida no la tiene. --- */
.mv8 .mv8-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--mv8-marino);
  border-radius: var(--mv8-r-card);
  background: transparent;
  color: var(--mv8-marino);
  font-family: var(--mv8-font-body);
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
@media (hover:hover) {
  .mv8 .mv8-card:hover { background: var(--mv8-crema); transform: translateY(-3px); }
}
/* Variante sobre fondo marino (MEDIDA en Guía): borde crema al 45 %, texto crema; hover crema con texto marino. */
.mv8 .mv8-card.mv8-card--sobre-marino { border-color: rgba(254,246,238,0.45); color: var(--mv8-crema); }
@media (hover:hover) {
  .mv8 .mv8-card.mv8-card--sobre-marino:hover { background: var(--mv8-crema); border-color: var(--mv8-crema); color: var(--mv8-marino); }
}
/* Tarjeta de contacto / galería con sombra dura coral (tokens; sin medir en el widget). */
.mv8 .mv8-card.mv8-card--sombra-hard { border-radius: var(--mv8-r-lg); }
@media (hover:hover) {
  .mv8 .mv8-card.mv8-card--sombra-hard:hover { box-shadow: var(--mv8-sh-hard-gal); }
}

/* --- Marco de navegador. MEDIDO (visor Antes/Después): barra 34 px, fondo noche, puntos de 9 px
   coral/amarillo/azul, hueco 6 px, padding 0 12 px. La barra de dominio (pastilla chip) SIN MEDIR. --- */
.mv8 .mv8-browser {
  overflow: hidden;
  border-radius: var(--mv8-r-md);
}
.mv8 .mv8-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: var(--mv8-noche);
}
.mv8 .mv8-browser__dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.mv8 .mv8-browser__dot--coral { background: var(--mv8-coral); }
.mv8 .mv8-browser__dot--amarillo { background: var(--mv8-amarillo); }
.mv8 .mv8-browser__dot--azul { background: var(--mv8-azul); }
.mv8 .mv8-browser__domain {
  flex: 1 1 auto;
  min-width: 0;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--mv8-r-pill);
  background: var(--mv8-chip);
  color: var(--mv8-gris);
  font-family: var(--mv8-font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Marquesina. Track de dos grupos iguales; animación de -50 %. Duración: --mv8-marquee-dur
   (MEDIDA: 60 s hero, 80 s Método, 70 s Contacto). Separación entre logos SIN MEDIR (48 px). --- */
.mv8 .mv8-marquee { position: relative; overflow: hidden; width: 100%; }
.mv8 .mv8-marquee__track {
  display: flex;
  width: max-content;
  animation: mv8-marquee var(--mv8-marquee-dur, 60s) linear infinite;
}
.mv8 .mv8-marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--mv8-marquee-gap, 48px);
  padding-inline: calc(var(--mv8-marquee-gap, 48px) / 2);
}
.mv8 .mv8-marquee--reverse .mv8-marquee__track { animation-direction: reverse; }
/* Degradado en los bordes. #000 es sin token (solo máscara de opacidad, no color visible). */
.mv8 .mv8-marquee--mask {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Separador entre elementos (mv8_marquee() emite <span class="mv8-marquee__sym">). El color llega por --mv8-marquee-c; sin él, hereda el texto. */
.mv8 .mv8-marquee__sym { color: var(--mv8-marquee-c, currentColor); }

/* --- FAQ. Medido: pregunta 17 px / 700 lh 23.8, min 64, pad 14/2, gap 16; abierta coral-texto.
   Respuesta 17 px / 500 lh 28.05, pad 0 48 22 2. Visibilidad: atributo hidden (lo pone el JS). --- */
.mv8 .mv8-faq__item { display: block; }
.mv8 .mv8-faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 14px 2px;
  text-align: left;
  font-family: var(--mv8-font-body);
  font-size: var(--mv8-fs-faq-q);
  font-weight: 700;
  line-height: 1.4;
  color: var(--mv8-marino);
}
.mv8 .mv8-faq__btn[aria-expanded="true"] { color: var(--mv8-coral-texto); }
.mv8 .mv8-faq__icon { flex: 0 0 auto; font-size: 22px; line-height: 1; }
.mv8 .mv8-faq__panel {
  padding: 0 48px 22px 2px;
  font-family: var(--mv8-font-body);
  font-size: var(--mv8-fs-body);
  font-weight: 500;
  line-height: 1.65;
  color: var(--mv8-marino);
}
.mv8 .mv8-faq__more { font-family: var(--mv8-font-body); font-size: var(--mv8-fs-cta); font-weight: 700; color: var(--mv8-coral-texto); }
/* FAQ sin JS: se ven todas las preguntas y «Ver más» no sale. Con JS (html.mv8-js, la pone el <head>/mv8.js) los extras se
   pliegan hasta .is-expanded en [data-mv8-faq] (lo pone «Ver más»). */
html:not(.mv8-js) .mv8 [data-mv8-faq-more] { display: none; }
html.mv8-js .mv8 [data-mv8-faq]:not(.is-expanded) [data-mv8-faq-extra] { display: none; }
/* Con JS cada respuesta nace plegada (la abre el botón con aria-expanded="true"); sin JS se leen todas. */
html.mv8-js .mv8 [data-mv8-faq-item]:has([data-mv8-faq-btn][aria-expanded="false"]) [data-mv8-faq-panel] { display: none; }

/* --- Vídeo: marco con aspecto 16/9 (por defecto) o 9/16 (vertical), position relative,
   overflow hidden (el iframe lo pone el JS a 100 % o en crop). --- */
.mv8 .mv8-video {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--ratio, 16 / 9);
  border-radius: var(--mv8-r-xl);
  background: var(--mv8-noche);
  box-shadow: var(--mv8-sh-video);
}
.mv8 .mv8-video--916 { --ratio: 9 / 16; border-radius: var(--mv8-r-lg); }
.mv8 .mv8-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mv8 .mv8-video.is-playing { cursor: default; }

/* --- Anillos de agua (mv8.js los crea dentro de [data-mv8-water]). --- */
.mv8 .mv8-ring {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  animation: mv8-ring var(--mv8-ring-dur, 2400ms) var(--mv8-ring-delay, 0ms) cubic-bezier(0.15, 0.6, 0.25, 1) both;
}
.mv8 .mv8-ring--click { z-index: 1; }

/* --- Progreso: el JS escribe scaleX(pct). --- */
.mv8 [data-mv8-progress] { transform-origin: left; transform: scaleX(0); }

/* --- Modal compartido (mv8.js: [data-mv8-modal-open] / [data-mv8-modal] / [data-mv8-modal-close]; INFORME-HJ2 §1.5 y §3).
   Fondo rgba(11,33,64,.94) = --mv8-noche con alfa 0,94 (sin token de alfa). Cierre y foco: Inicio L592-593.
   El estado oculto lo da [hidden][hidden] (0,3,2); la regla :not([hidden]) solo aplica con el modal abierto. --- */
.mv8 [data-mv8-modal]:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 12px 16px;
  background: rgba(11,33,64,0.94);
}
.mv8 [data-mv8-modal-close] {
  position: absolute;
  top: 10px;
  right: 10px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--mv8-crema);
  border-radius: 50%;
  background: transparent;
  color: var(--mv8-crema);
  cursor: pointer;
}
.mv8 [data-mv8-modal-close]:focus-visible { outline: 3px solid var(--mv8-amarillo); outline-offset: 2px; }
/* Vídeo dentro de un modal o en cualquier marco: el iframe va en absoluto (lo pone mv8.js). */
.mv8 [data-mv8-video] { position: relative; overflow: hidden; }

/* --- Giro infinito (duración --mv8-spin-dur; sin medir fuera del ✳ de 240 s). --- */
.mv8 .mv8-spin { animation: mv8-spin var(--mv8-spin-dur, 240s) linear infinite; }

/* ==========================================================================
   10. EFECTOS DE FONDO (opt-in). Duraciones MEDIDAS en Inicio (JSON animaciones).
   Funciones de temporización SIN MEDIR: lineal para rotaciones y desplazamientos.
   ========================================================================== */
.mv8 .mv8-fx-grid,
.mv8 .mv8-fx-breath,
.mv8 .mv8-fx-ripple,
.mv8 .mv8-fx-star,
.mv8 .mv8-fx-pulse,
.mv8 .mv8-fx-wave,
.mv8 .mv8-fx-spot { position: absolute; pointer-events: none; }
.mv8 .mv8-fx-grid { animation: mv8-grid 40s linear infinite; }      /* medido 40 s */
.mv8 .mv8-fx-breath { animation: mv8-breath 16s ease-in-out infinite; } /* medido 16 s */
.mv8 .mv8-fx-ripple { animation: mv8-ripple 36s cubic-bezier(0.55, 0, 0.95, 0.45) infinite both; }
/* Ondas del hero (mv8_ripple() en _base.php; mv8.js §19 las centra en el titular): 4 anillos, de fuera hacia dentro */
.mv8 .mv8-fx-rip { position: absolute; left: 50%; top: 46%; width: 0; height: 0; pointer-events: none; }
.mv8 .mv8-fx-rip > .mv8-fx-ripple { left: -340px; top: -340px; width: 680px; height: 680px; border-radius: 50%; opacity: 0; will-change: transform, opacity; background: radial-gradient(circle, rgba(255,255,255,0) 26%, var(--c) 46%, rgba(255,255,255,0.17) 62%, var(--c) 78%, rgba(255,255,255,0) 98%); }
.mv8 .mv8-fx-rip > :nth-child(1) { --c: rgba(34,96,172,0.05); }
.mv8 .mv8-fx-rip > :nth-child(2) { --c: rgba(224,90,43,0.045); animation-delay: -9s; }
.mv8 .mv8-fx-rip > :nth-child(3) { --c: rgba(42,165,156,0.045); animation-delay: -18s; }
.mv8 .mv8-fx-rip > :nth-child(4) { --c: rgba(244,166,72,0.05); animation-delay: -27s; }  /* 36 s; curva y fill-mode del diseno 17-11 (mrcRipple) */
.mv8 .mv8-fx-star { animation: mv8-spin 240s linear infinite; }     /* medido 240 s */
.mv8 .mv8-fx-pulse { animation: mv8-pulse 2s ease-in-out infinite; } /* medido 2 s */
.mv8 .mv8-fx-wave { animation: mv8-wave 34s linear infinite; }      /* medido 34 s (1.ª ola de clientes) */
.mv8 .mv8-fx-spot { animation: mv8-spot 24s ease-in-out infinite; } /* medido 24 s */
body.mv8-fx-off .mv8 .mv8-fx-grid,
body.mv8-fx-off .mv8 .mv8-fx-breath,
body.mv8-fx-off .mv8 .mv8-fx-ripple,
body.mv8-fx-off .mv8 .mv8-fx-star,
body.mv8-fx-off .mv8 .mv8-fx-pulse,
body.mv8-fx-off .mv8 .mv8-fx-wave,
body.mv8-fx-off .mv8 .mv8-fx-spot { animation: none; }
/* Decorativos marcados con mv8-fx-deco. Divergencia: el diseño no oculta con display (ver informe §B). */
body.mv8-fx-off .mv8 .mv8-fx-deco { display: none; }

/* ==========================================================================
   11. REVEAL. Sin html.mv8-fx TODO es visible (lo añade el JS si no hay reduce).
   Valores del diseño: 400 ms ease, desplazamiento 12 px (INFORME-HJ §3).
   ========================================================================== */
html.mv8-fx .mv8 [data-mv8-reveal]:not(.is-in) { opacity: 0; transform: translateY(12px); }
.mv8 [data-mv8-reveal] { transition: opacity 0.4s ease, transform 0.4s ease; }

/* ==========================================================================
   12. REDUCED MOTION — alcance del diseño (`* {animation:none; transition:none}`
   y scroll auto), sin importancia forzada: enumerado por selector de bloque.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html:has(body.mv8-page) { scroll-behavior: auto; }
  .mv8 .mv8-marquee__track,
  .mv8 .mv8-spin,
  .mv8 .mv8-ring,
  .mv8 .mv8-fx-grid,
  .mv8 .mv8-fx-breath,
  .mv8 .mv8-fx-ripple,
  .mv8 .mv8-fx-star,
  .mv8 .mv8-fx-pulse,
  .mv8 .mv8-fx-wave,
  .mv8 .mv8-fx-spot { animation: none; }
  .mv8 .mv8-btn,
  .mv8 .mv8-btn.mv8-btn--coral-lg,
  .mv8 .mv8-card,
  .mv8 .mv8-chip,
  .mv8 .mv8-faq__btn,
  .mv8 [data-mv8-reveal] { transition: none; }
  .mv8 [data-mv8-reveal] { opacity: 1; transform: none; }
  html.mv8-fx .mv8 [data-mv8-reveal]:not(.is-in) { opacity: 1; transform: none; }
}

/* ==========================================================================
   13. EDITOR DE ELEMENTOR: el reveal no oculta nada mientras se edita.
   ========================================================================== */
/* (0,4,3): supera al estado oculto html.mv8-fx .mv8 [data-mv8-reveal]:not(.is-in) (0,4,1). */
html body.elementor-editor-active .mv8 [data-mv8-reveal]:not(.is-in) { opacity: 1; transform: none; }

/* 14. Primitivas móvil v10 (mv8-movil-base.css, solo <960): en escritorio quedan neutras. */
@media (min-width: 960px) {
  .mv8 [data-mv8-hint], .mv8 [data-mv8-acc-btn] { display: none; }
  html body .mv8 [data-mv8-acc-panel][hidden][hidden] { display: block; }
}
