@charset "UTF-8";
/* ==========================================================================
   mag26.css — Sistema de diseño médico de confianza · magnetoterapiaefectos.com
   ==========================================================================
   Estética: autoridad + confianza + lujo sobrio (spec §2 / §8.2). Mucho blanco,
   azules/verdes clínicos, tipografía muy legible, geometría contenida. NADA de
   estética "salud alternativa" (verdes lima, morados new-age, glow, degradados
   difusos): ese es justo el lenguaje visual que este sitio debe dejar de parecer.

   Alcance:
     · Tokens de diseño (:root) en modo claro y oscuro (prefers-color-scheme + toggle).
     · Pulido site-wide del tema blogger-diary/wp-diary (cabecera, nav, tipografía, pie).
     · Todas las clases del contrato md-* (avisos, resumen, tablas, FAQ, fuentes,
       fichas de producto, CTA de afiliado, disclaimer).
     · Clases de soporte para los efectos comedidos de mag26.js (reveal, progreso,
       sombra sticky de cabecera, volver-arriba), composited-only y con doble capa
       de respeto a prefers-reduced-motion (CSS + JS).

   Rendimiento: las animaciones usan solo transform/opacity (compositor) → CLS 0,
   sin bloquear el hilo principal. Sin dependencias externas ni @import.
   Accesibilidad: contraste AA/AAA en los pares texto/fondo (spec §2.2), foco
   siempre visible, iconos + texto (nunca color como único canal, WCAG 1.4.1).
   ========================================================================== */

/* --------------------------------------------------------------------------
   00 · TOKENS — MODO CLARO (spec §2.2, §2.4, §2.5)
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;             /* sitio de autoridad clínica: claro por defecto */
  /* Fondo y superficies */
  --md-bg:               #F6FAFA;
  --md-surface:          #FFFFFF;
  --md-surface-2:        #F1F7F7;
  --md-surface-evidence: #EAF5F3; /* caja "qué dice la ciencia" / resumen  */
  --md-surface-warning:  #FBF3E4; /* precaución / consulta a tu médico     */
  --md-surface-danger:   #FBEAEA; /* sin evidencia / pseudoterapia         */

  /* Texto */
  --md-ink-900: #12222A; /* principal  — ~16:1 sobre bg y surface (AAA)    */
  --md-ink-700: #3C4C54; /* secundario — ~8.9:1 sobre blanco (AAA)         */
  --md-ink-500: #52646C; /* metadatos, captions — ≥4.5:1 (AA)             */

  /* Marca / acción */
  --md-primary:      #0A5C6A; /* ~7.6:1 sobre blanco (AAA); blanco encima ~7.6:1 */
  --md-primary-700:  #084854; /* hover / active                            */
  --md-primary-100:  #DCEEEF; /* fondos sutiles, chips                     */

  /* Estados semánticos (uso editorial, no decorativo) */
  --md-evidence: #1B6E4A; /* evidencia sólida                              */
  --md-warning:  #8A5A00; /* precaución / consulta a tu médico            */
  --md-danger:   #A32020; /* sin evidencia / pseudoterapia                */
  --md-danger-strong: #8E1B1B;

  /* Estructura */
  --md-border:        #D7E1E3;
  --md-border-strong: #AFC2C6;
  --md-focus:         #0A5C6A;

  /* Sombras (tinte frío, nunca negro puro) */
  --md-shadow-sm: 0 1px 2px rgba(18,34,42,.06);
  --md-shadow-md: 0 4px 12px rgba(18,34,42,.08);
  --md-shadow-lg: 0 12px 32px rgba(18,34,42,.12);
  --md-shadow-cta: 0 2px 6px rgba(10,92,106,.24), 0 12px 26px rgba(10,92,106,.22);

  /* Tipografía — serif editorial para titulares, sans muy legible para cuerpo.
     Se referencian Source Serif 4 / Inter por si se auto-alojan más adelante;
     el fallback (Georgia / system-ui) es tipográficamente sólido por sí mismo. */
  --md-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --md-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Escala fluida (clamp con mínimo legible garantizado) */
  --md-text-sm:   clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --md-text-base: clamp(1rem,     0.97rem + 0.15vw, 1.0625rem);
  --md-text-lg:   clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --md-text-xl:   clamp(1.25rem,  1.18rem + 0.3vw, 1.5rem);
  --md-text-2xl:  clamp(1.5rem,   1.4rem + 0.5vw, 1.875rem);
  --md-text-3xl:  clamp(1.875rem, 1.7rem + 0.8vw, 2.375rem);
  --md-text-4xl:  clamp(2.25rem,  2rem + 1.2vw, 3rem);
  --md-leading-tight:   1.2;
  --md-leading-normal:  1.55;
  --md-leading-relaxed: 1.7;

  /* Espaciado */
  --md-space-1: 4px;  --md-space-2: 8px;  --md-space-3: 12px; --md-space-4: 16px;
  --md-space-6: 24px; --md-space-8: 32px; --md-space-12: 48px; --md-space-16: 64px;

  /* Radios (geometría contenida, nada de "app de consumo") */
  --md-radius-sm: 6px; --md-radius-md: 10px; --md-radius-lg: 16px;

  /* Medidas */
  --md-measure: 72ch;       /* ancho de línea óptimo de lectura clínica     */
  --md-container: 1200px;

  /* Movimiento */
  --md-ease:     cubic-bezier(.22, 1, .36, 1);
  --md-ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------------------------------
   01 · TOKENS — MODO OSCURO (spec §2.3). Por prefers-color-scheme y por toggle
   manual (data-theme), para no depender solo del media query.
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  /* Desactivado el auto-oscuro: un sitio de autoridad médica se presenta claro y
     clínico por defecto. El modo oscuro queda disponible solo por toggle manual
     (:root[data-theme="dark"]), no por preferencia del navegador. */
  :root[data-theme="__auto-dark-off"] {
    --md-bg:               #0B1416;
    --md-surface:          #101C1F;
    --md-surface-2:        #14252A;
    --md-surface-evidence: #12292A;
    --md-surface-warning:  #241D0E;
    --md-surface-danger:   #2A1414;

    --md-ink-900: #EAF2F1;
    --md-ink-700: #B9C7C7;
    --md-ink-500: #8FA3A6;

    --md-primary:     #4FB8C9;
    --md-primary-700: #7DD0DC;
    --md-primary-100: #14313A;

    --md-evidence: #4CAE83;
    --md-warning:  #E0B048;
    --md-danger:   #E68585;
    --md-danger-strong: #F0A0A0;

    --md-border:        #23383C;
    --md-border-strong: #33505A;
    --md-focus:         #7DD0DC;

    --md-shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --md-shadow-md: 0 4px 14px rgba(0,0,0,.5);
    --md-shadow-lg: 0 14px 36px rgba(0,0,0,.55);
    --md-shadow-cta: 0 2px 6px rgba(0,0,0,.5), 0 12px 26px rgba(0,0,0,.5);
  }
}
/* Toggle manual explícito (mismos valores que el media query). */
:root[data-theme="dark"] {
  --md-bg:               #0B1416;
  --md-surface:          #101C1F;
  --md-surface-2:        #14252A;
  --md-surface-evidence: #12292A;
  --md-surface-warning:  #241D0E;
  --md-surface-danger:   #2A1414;
  --md-ink-900: #EAF2F1; --md-ink-700: #B9C7C7; --md-ink-500: #8FA3A6;
  --md-primary: #4FB8C9; --md-primary-700: #7DD0DC; --md-primary-100: #14313A;
  --md-evidence: #4CAE83; --md-warning: #E0B048; --md-danger: #E68585; --md-danger-strong: #F0A0A0;
  --md-border: #23383C; --md-border-strong: #33505A; --md-focus: #7DD0DC;
  --md-shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --md-shadow-md: 0 4px 14px rgba(0,0,0,.5);
  --md-shadow-lg: 0 14px 36px rgba(0,0,0,.55);
  --md-shadow-cta: 0 2px 6px rgba(0,0,0,.5), 0 12px 26px rgba(0,0,0,.5);
}

/* --------------------------------------------------------------------------
   02 · BASE SITE-WIDE — pulido sobrio y "aire" (cognitive ease, spec §8.1)
   Cambios de floor, baja especificidad: el tema puede pisarlos donde lo necesite.
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--md-bg);
  color: var(--md-ink-900);
  font-family: var(--md-sans);
  font-size: var(--md-text-base);
  line-height: var(--md-leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--md-primary-100); color: var(--md-ink-900); }

/* Foco visible y consistente en todo lo interactivo (WCAG 2.4.7). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--md-focus);
  outline-offset: 2px;
  border-radius: var(--md-radius-sm);
}

/* --------------------------------------------------------------------------
   03 · TEMA blogger-diary / wp-diary — cabecera, navegación, tipografía, pie.
   Selectores estándar de temas basados en underscores (_s): si alguno no existe
   en el tema, la regla simplemente no aplica (mejora progresiva, cero rotura).
   Objetivo: que el tema "respire lujo" sin cambiar su maquetación.
   -------------------------------------------------------------------------- */

/* Cabecera: fondo limpio, borde sutil y transición para la sombra sticky (§03/efectos). */
.site-header,
#masthead {
  background: var(--md-surface);
  border-bottom: 1px solid var(--md-border);
  transition: box-shadow .3s var(--md-ease), background-color .3s var(--md-ease);
}

/* Marca */
.site-title,
.site-title a {
  font-family: var(--md-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--md-ink-900);
  text-decoration: none;
}
.site-description { color: var(--md-ink-500); font-size: var(--md-text-sm); }

/* Navegación principal: enlaces con subrayado premium que crece desde el centro. */
.main-navigation a,
.menu a,
.nav-menu a {
  position: relative;
  color: var(--md-ink-700);
  text-decoration: none;
  font-weight: 500;
  padding-block: var(--md-space-2);
  transition: color .2s var(--md-ease);
}
.main-navigation a::after,
.menu a::after,
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--md-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .28s var(--md-ease);
}
.main-navigation a:hover,
.main-navigation a:focus-visible,
.menu a:hover,
.nav-menu a:hover {
  color: var(--md-primary);
}
.main-navigation a:hover::after,
.main-navigation a:focus-visible::after,
.menu a:hover::after,
.nav-menu a:hover::after,
.current-menu-item > a::after {
  transform: scaleX(1);
}
.current-menu-item > a { color: var(--md-primary); }

/* Título de entrada (H1 del artículo) y meta. */
.entry-title,
.page-title {
  font-family: var(--md-serif);
  font-weight: 700;
  line-height: var(--md-leading-tight);
  letter-spacing: -0.015em;
  color: var(--md-ink-900);
  font-size: var(--md-text-4xl);
}
.entry-meta,
.posted-on,
.byline { color: var(--md-ink-500); font-size: var(--md-text-sm); }

/* Widgets de sidebar y pie. */
.widget-title,
.widget .widget-title {
  font-family: var(--md-serif);
  font-size: var(--md-text-lg);
  font-weight: 600;
  color: var(--md-ink-900);
  padding-bottom: var(--md-space-2);
  border-bottom: 2px solid var(--md-primary-100);
  margin-bottom: var(--md-space-4);
}
.site-footer,
#colophon {
  background: var(--md-surface);
  border-top: 1px solid var(--md-border);
  color: var(--md-ink-700);
}

/* --------------------------------------------------------------------------
   04 · TIPOGRAFÍA DE CONTENIDO (dentro de .entry-content)
   Ritmo vertical, medida de lectura y jerarquía fuerte de registro editorial.
   -------------------------------------------------------------------------- */
.entry-content {
  font-size: var(--md-text-base);
  line-height: var(--md-leading-relaxed);
  color: var(--md-ink-900);
}
.entry-content > * { margin-block: 0 0; }
.entry-content > * + * { margin-top: var(--md-space-6); }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--md-serif);
  color: var(--md-ink-900);
  line-height: var(--md-leading-tight);
  letter-spacing: -0.01em;
  max-width: var(--md-measure);
  scroll-margin-top: 90px; /* para anclas #id con cabecera sticky */
}
.entry-content h2 {
  font-size: var(--md-text-2xl);
  font-weight: 700;
  margin-top: var(--md-space-12);
  padding-top: var(--md-space-2);
}
.entry-content h3 {
  font-size: var(--md-text-xl);
  font-weight: 600;
  margin-top: var(--md-space-8);
}
.entry-content h4 { font-size: var(--md-text-lg); font-weight: 600; margin-top: var(--md-space-6); }

.entry-content p,
.entry-content ul,
.entry-content ol {
  max-width: var(--md-measure);
}
.entry-content p { margin-top: var(--md-space-4); }
.entry-content ul,
.entry-content ol { margin-top: var(--md-space-4); padding-left: 1.35em; }
.entry-content li + li { margin-top: var(--md-space-2); }
.entry-content li { padding-left: .15em; }
.entry-content strong { color: var(--md-ink-900); font-weight: 700; }
.entry-content em { color: inherit; }

/* Enlaces de contenido: subrayado fino elegante que se refuerza al hover. */
.entry-content a:not(.md-cta):not(.md-disclaimer__link) {
  color: var(--md-primary);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--md-primary) 40%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color .18s var(--md-ease), text-decoration-color .18s var(--md-ease);
}
.entry-content a:not(.md-cta):not(.md-disclaimer__link):hover {
  color: var(--md-primary-700);
  text-decoration-color: currentColor;
}

/* Cita con fuente. */
.entry-content blockquote {
  margin: var(--md-space-8) 0;
  padding: var(--md-space-4) var(--md-space-6);
  border-left: 4px solid var(--md-primary);
  background: var(--md-surface-2);
  border-radius: 0 var(--md-radius-md) var(--md-radius-md) 0;
  color: var(--md-ink-700);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   05 · COMPONENTE · AVISO / ALERT — .md-aviso (+ --ymyl, + --peligro)
   Icono + texto (nunca color como único canal). El icono se pinta con máscara
   para que herede el color semántico. 3 registros: informativo/divulgativo (base
   y --ymyl) y peligro (--peligro). "Precaución" ≠ "sin evidencia": no se pintan
   con la misma urgencia (spec §2.6.3, §8.1 contraste honesto).
   -------------------------------------------------------------------------- */
.md-aviso {
  --_accent: var(--md-primary);
  --_surface: var(--md-surface-evidence);
  --_icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 100 20 10 10 0 000-20Zm-1.1 5.9h2.2v2.2h-2.2V7.9Zm0 3.6h2.2v6.6h-2.2v-6.6Z'/%3E%3C/svg%3E");
  position: relative;
  display: block;
  margin: var(--md-space-6) 0;
  padding: var(--md-space-4) var(--md-space-6);
  padding-inline-start: calc(var(--md-space-6) + 42px);
  background: var(--_surface);
  border: 1px solid color-mix(in srgb, var(--_accent) 22%, var(--md-border));
  border-left: 4px solid var(--_accent);
  border-radius: var(--md-radius-md);
  color: var(--md-ink-900);
  font-size: var(--md-text-base);
  line-height: var(--md-leading-normal);
  box-shadow: var(--md-shadow-sm);
}
.md-aviso::before {
  content: "";
  position: absolute;
  left: var(--md-space-6);
  top: var(--md-space-4);
  width: 26px; height: 26px;
  background-color: var(--_accent);
  -webkit-mask: var(--_icon) center / contain no-repeat;
  mask: var(--_icon) center / contain no-repeat;
  flex: none;
}
.md-aviso > * { margin: 0; }
.md-aviso > * + * { margin-top: var(--md-space-2); }
.md-aviso strong { color: var(--_accent); }
.md-aviso a { color: var(--_accent); font-weight: 600; }

/* Divulgativo / YMYL informativo: registro de "material clínico" (teal, escudo). */
.md-aviso--ymyl {
  --_accent: var(--md-primary);
  --_surface: var(--md-surface-evidence);
  --_icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2 4 5v6c0 5 3.4 8.5 8 11 4.6-2.5 8-6 8-11V5l-8-3Zm-1.1 12.7-3-3L9.3 10l1.6 1.6 3.8-3.8 1.4 1.4-5.2 5.5Z'/%3E%3C/svg%3E");
}
.md-aviso--ymyl strong:first-child { color: var(--md-ink-900); }

/* Peligro / precaución fuerte: rojo ladrillo (no rojo alarma), triángulo. */
.md-aviso--peligro {
  --_accent: var(--md-danger);
  --_surface: var(--md-surface-danger);
  --_icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2 1 21h22L12 2ZM11 8h2v7h-2V8Zm0 9h2v2h-2v-2Z'/%3E%3C/svg%3E");
  border-color: color-mix(in srgb, var(--md-danger) 30%, var(--md-border));
}
.md-aviso--peligro strong { color: var(--md-danger-strong); }

/* Variante de precaución "ámbar" (disponible aunque el contenido use --peligro). */
.md-aviso--precaucion {
  --_accent: var(--md-warning);
  --_surface: var(--md-surface-warning);
  --_icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2 1 21h22L12 2ZM11 8h2v7h-2V8Zm0 9h2v2h-2v-2Z'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   06 · COMPONENTE · RESUMEN "En resumen" — .md-resumen (+ __titulo)
   Answer-first: la conclusión honesta, arriba, escaneable (spec §2.6.2).
   -------------------------------------------------------------------------- */
.md-resumen {
  margin: var(--md-space-8) 0;
  padding: var(--md-space-6) var(--md-space-8);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--md-primary-100) 55%, var(--md-surface)) 0%, var(--md-surface) 100%);
  border: 1px solid var(--md-border);
  border-top: 3px solid var(--md-primary);
  border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-sm);
}
.md-resumen__titulo {
  font-family: var(--md-serif);
  font-size: var(--md-text-xl);
  font-weight: 700;
  color: var(--md-primary);
  margin: 0 0 var(--md-space-4);
  display: flex;
  align-items: center;
  gap: var(--md-space-2);
}
.md-resumen__titulo::before {
  content: "";
  width: 22px; height: 22px;
  background-color: var(--md-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  flex: none;
}
.md-resumen ul { margin: 0; padding-left: 1.3em; max-width: none; }
.md-resumen li { margin-top: var(--md-space-2); }
.md-resumen li::marker { color: var(--md-primary); }

/* --------------------------------------------------------------------------
   07 · COMPONENTE · TABLA — .md-tabla-wrap (scroll-x móvil) + .md-tabla
   Registro clínico: cabecera sólida, cebra sutil, cifras tabulares, cabecera
   pegajosa en tablas largas. La sombra lateral avisa de que hay scroll.
   -------------------------------------------------------------------------- */
.md-tabla-wrap {
  margin: var(--md-space-8) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-lg);
  background: var(--md-surface);
  box-shadow: var(--md-shadow-sm);
  /* Pista de scroll: sombras que aparecen cuando hay contenido oculto a los lados. */
  background-image:
    linear-gradient(90deg, var(--md-surface), transparent 12px),
    linear-gradient(270deg, var(--md-surface), transparent 12px),
    linear-gradient(90deg, rgba(18,34,42,.10), transparent 14px),
    linear-gradient(270deg, rgba(18,34,42,.10), transparent 14px);
  background-position: 0 0, 100% 0, 0 0, 100% 0;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 16px 100%, 16px 100%;
  background-attachment: local, local, scroll, scroll;
}
.md-tabla {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: var(--md-text-base);
  font-variant-numeric: tabular-nums;
}
.md-tabla thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--md-primary);
  color: #fff;
  font-family: var(--md-sans);
  font-weight: 600;
  text-align: left;
  padding: var(--md-space-3) var(--md-space-4);
  border-bottom: 2px solid var(--md-primary-700);
}
.md-tabla tbody th,
.md-tabla tbody td {
  padding: var(--md-space-3) var(--md-space-4);
  border-top: 1px solid var(--md-border);
  vertical-align: top;
  color: var(--md-ink-700);
}
.md-tabla tbody tr:nth-child(even) { background: var(--md-surface-2); }
.md-tabla tbody tr:hover { background: var(--md-primary-100); }
.md-tabla tbody td strong,
.md-tabla tbody th strong { color: var(--md-ink-900); }
.md-tabla caption {
  caption-side: bottom;
  padding: var(--md-space-3) var(--md-space-4);
  color: var(--md-ink-500);
  font-size: var(--md-text-sm);
  text-align: left;
}

/* --------------------------------------------------------------------------
   08 · COMPONENTE · FAQ — .md-faq / .md-faq__item / .md-faq__resp
   <details>/<summary> nativo: funciona sin JS, accesible por teclado de fábrica.
   Marcador propio que rota al abrir; apertura suave (solo opacity/transform).
   -------------------------------------------------------------------------- */
.md-faq { margin: var(--md-space-8) 0; display: grid; gap: var(--md-space-3); }
.md-faq__item {
  background: var(--md-surface);
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-md);
  box-shadow: var(--md-shadow-sm);
  overflow: hidden;
  transition: border-color .2s var(--md-ease), box-shadow .2s var(--md-ease);
}
.md-faq__item[open] {
  border-color: var(--md-border-strong);
  box-shadow: var(--md-shadow-md);
}
.md-faq__item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--md-space-3);
  padding: var(--md-space-4) var(--md-space-6);
  font-family: var(--md-serif);
  font-size: var(--md-text-lg);
  font-weight: 600;
  color: var(--md-ink-900);
  transition: color .2s var(--md-ease), background-color .2s var(--md-ease);
}
.md-faq__item > summary::-webkit-details-marker { display: none; }
.md-faq__item > summary::after {
  content: "";
  margin-left: auto;
  width: 20px; height: 20px;
  flex: none;
  background-color: var(--md-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.4 5.3 8.7 6.7 7.3 12 12.6l5.3-5.3 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.4 5.3 8.7 6.7 7.3 12 12.6l5.3-5.3 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--md-ease);
}
.md-faq__item[open] > summary::after { transform: rotate(180deg); }
.md-faq__item > summary:hover,
.md-faq__item > summary:focus-visible { color: var(--md-primary); background: var(--md-surface-2); }
.md-faq__resp {
  padding: 0 var(--md-space-6) var(--md-space-4);
  color: var(--md-ink-700);
  line-height: var(--md-leading-relaxed);
}
.md-faq__resp > :first-child { margin-top: 0; }
.md-faq__item[open] > .md-faq__resp { animation: md-faq-in .32s var(--md-ease-out) both; }
@keyframes md-faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   09 · COMPONENTE · FUENTES — .md-fuentes
   Lista numerada de cierre (reciprocidad honesta, spec §8.1). Números en píldora.
   -------------------------------------------------------------------------- */
.md-fuentes {
  margin: var(--md-space-8) 0 0;
  padding: var(--md-space-6) var(--md-space-8);
  background: var(--md-surface-2);
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-lg);
  list-style: none;
  counter-reset: fuente;
  max-width: none;
}
.md-fuentes > li {
  counter-increment: fuente;
  position: relative;
  padding-left: var(--md-space-8);
  margin-top: var(--md-space-4);
  color: var(--md-ink-700);
  font-size: var(--md-text-sm);
  line-height: var(--md-leading-normal);
}
.md-fuentes > li:first-child { margin-top: 0; }
.md-fuentes > li::before {
  content: counter(fuente);
  position: absolute;
  left: 0; top: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--md-primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.md-fuentes cite { font-style: normal; font-weight: 600; color: var(--md-ink-900); }
.md-fuentes em { color: var(--md-ink-700); }
.md-fuentes a {
  color: var(--md-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.md-fuentes a:hover { color: var(--md-primary-700); }

/* --------------------------------------------------------------------------
   10 · COMPONENTE · FICHA DE PRODUCTO — .md-prod (+ --top con sello de autoridad)
   Review honesta de aparato. --top: destacada, con sello del equipo editorial
   (autoridad demostrada, no autoproclamada). Sin precios/ratings inventados.
   -------------------------------------------------------------------------- */
/* Estructura real (plana): .md-prod es <article>; sus hijos DIRECTOS son la <img>
   (.md-prod__img), el título, specs, pros, cons, .md-cta y la nota — sin wrapper
   __body. Se resuelve con imagen flotada (robusto ante cualquier nº de hermanos);
   .md-prod__body se contempla por si alguna página lo usa. */
.md-prod {
  position: relative;
  display: flow-root; /* contiene el float sin clearfix */
  margin: var(--md-space-8) 0;
  padding: var(--md-space-6);
  background: var(--md-surface);
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-sm);
  transition: box-shadow .25s var(--md-ease), border-color .25s var(--md-ease);
}
.md-prod:hover { box-shadow: var(--md-shadow-md); }
.md-prod--top {
  margin-top: var(--md-space-12);
  border-color: color-mix(in srgb, var(--md-primary) 45%, var(--md-border));
  box-shadow: var(--md-shadow-md);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--md-primary-100) 40%, var(--md-surface)), var(--md-surface) 130px);
}
/* Sello de autoridad: revisión editorial (honesto y verificable, no un premio inventado).
   Anclado al borde superior derecho para no solaparse con la imagen (arriba a la izq.). */
.md-prod--top::before {
  content: "Análisis destacado · revisado por el equipo editorial";
  position: absolute;
  top: 0; right: var(--md-space-6);
  transform: translateY(-50%);
  max-width: calc(100% - var(--md-space-8));
  display: inline-flex;
  align-items: center;
  padding: 5px 12px 5px 30px;
  background: var(--md-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  border-radius: 999px;
  box-shadow: var(--md-shadow-sm);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath fill-rule='evenodd' d='M12 1.5 4 4.7v6.1c0 5 3.4 8.6 8 11.2 4.6-2.6 8-6.2 8-11.2V4.7l-8-3.2Zm-1.1 13.9-3.1-3.1L9.2 11l1.7 1.7 3.9-3.9 1.4 1.4-5.3 5.2Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 15px 15px;
}
/* La imagen (elemento <img> con la clase) se enmarca y flota a la izquierda. */
.md-prod__img {
  float: left;
  width: clamp(140px, 34%, 240px);
  height: auto;
  margin: 0 var(--md-space-6) var(--md-space-4) 0;
  padding: var(--md-space-3);
  background: #fff;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-md);
  box-shadow: var(--md-shadow-sm);
}
.md-prod__body { min-width: 0; } /* soportado si alguna plantilla envuelve el cuerpo */
.md-prod__titulo {
  font-family: var(--md-serif);
  font-size: var(--md-text-xl);
  font-weight: 700;
  color: var(--md-ink-900);
  margin: 0 0 var(--md-space-3);
}
/* Specs: lista clave/valor. Estructura real: <li><strong>Etiqueta:</strong> valor</li>. */
.md-prod__specs { list-style: none; margin: 0 0 var(--md-space-4); padding: 0; }
.md-prod__specs li {
  padding: var(--md-space-2) 0;
  border-bottom: 1px dashed var(--md-border);
  font-size: var(--md-text-sm);
  color: var(--md-ink-700);
}
.md-prod__specs li strong,
.md-prod__specs li b { color: var(--md-ink-900); font-weight: 600; margin-right: var(--md-space-1); }

/* Pros y contras: icono semántico + color, en dos canales. */
.md-prod__pros,
.md-prod__cons { list-style: none; margin: var(--md-space-3) 0; padding: 0; }
.md-prod__pros li,
.md-prod__cons li {
  position: relative;
  padding-left: 28px;
  margin-top: var(--md-space-2);
  font-size: var(--md-text-sm);
  color: var(--md-ink-700);
}
.md-prod__pros li::before,
.md-prod__cons li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px;
}
.md-prod__pros li::before {
  background-color: var(--md-evidence);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.md-prod__cons li::before {
  background-color: var(--md-danger);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.3 5.7 12 12l6.3 6.3-1.4 1.4L12 14.8l-6.3 6.3-1.4-1.4L10.6 12 4.3 5.7l1.4-1.4L12 10.6l6.3-6.3z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.3 5.7 12 12l6.3 6.3-1.4 1.4L12 14.8l-6.3 6.3-1.4-1.4L10.6 12 4.3 5.7l1.4-1.4L12 10.6l6.3-6.3z'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* Nota honesta (aviso de evidencia/afiliación a pie de ficha). */
.md-prod__nota {
  margin-top: var(--md-space-4);
  padding: var(--md-space-3) var(--md-space-4);
  background: var(--md-surface-warning);
  border-left: 3px solid var(--md-warning);
  border-radius: var(--md-radius-sm);
  font-size: var(--md-text-sm);
  color: var(--md-ink-700);
}
.md-prod__nota strong { color: var(--md-warning); }

/* --------------------------------------------------------------------------
   11 · COMPONENTE · CTA DE AFILIADO — .md-cta
   Botón premium sobrio. Sin urgencia falsa: rótulo neutro tipo "Ver precio
   actualizado". Sheen sutil solo al hover (composited), respeta reduced-motion.
   -------------------------------------------------------------------------- */
.md-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--md-space-2);
  margin-top: var(--md-space-4);
  padding: var(--md-space-3) var(--md-space-6);
  min-height: 48px;
  background: linear-gradient(180deg, var(--md-primary), var(--md-primary-700));
  color: #fff !important;
  font-family: var(--md-sans);
  font-size: var(--md-text-base);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  border: 0;
  border-radius: var(--md-radius-md);
  box-shadow: var(--md-shadow-cta);
  cursor: pointer;
  transition: transform .2s var(--md-ease), box-shadow .2s var(--md-ease), filter .2s var(--md-ease);
}
.md-cta::after {
  content: "";
  width: 18px; height: 18px;
  flex: none;
  background-color: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3v2h3.6l-9.3 9.3 1.4 1.4L19 6.4V10h2V3zM5 5h5V3H3v18h18v-7h-2v5H5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3v2h3.6l-9.3 9.3 1.4 1.4L19 6.4V10h2V3zM5 5h5V3H3v18h18v-7h-2v5H5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* Barrido de brillo: solo transform, arranca fuera del botón. */
.md-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s var(--md-ease);
  pointer-events: none;
}
.md-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--md-shadow-lg);
  filter: saturate(1.05);
}
.md-cta:hover::before { transform: translateX(120%); }
.md-cta:active { transform: translateY(0); }

/* Divulgación de afiliación en línea (aparece en el cuerpo antes de una ficha).
   Registro discreto pero visible: transparencia sin gritar (spec §5.4). */
.md-afiliacion {
  position: relative;
  margin: var(--md-space-6) 0;
  padding: var(--md-space-3) var(--md-space-4) var(--md-space-3) 44px;
  max-width: var(--md-measure);
  background: var(--md-surface-2);
  border: 1px dashed var(--md-border-strong);
  border-radius: var(--md-radius-md);
  font-size: var(--md-text-sm);
  color: var(--md-ink-700);
}
.md-afiliacion::before {
  content: "";
  position: absolute;
  left: var(--md-space-4); top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  background-color: var(--md-ink-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 100 20 10 10 0 000-20Zm-1.1 5.9h2.2v2.2h-2.2V7.9Zm0 3.6h2.2v6.6h-2.2v-6.6Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 100 20 10 10 0 000-20Zm-1.1 5.9h2.2v2.2h-2.2V7.9Zm0 3.6h2.2v6.6h-2.2v-6.6Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.md-afiliacion strong { color: var(--md-ink-900); }

/* --------------------------------------------------------------------------
   12 · COMPONENTE · DISCLAIMER SITE-WIDE — .md-disclaimer (inyectado por mag26.php)
   Banda de aviso YMYL antes de </body>. Calmada, transparente, distinta de los
   avisos de peligro. Cierra cada página con el marco honesto del sitio.
   -------------------------------------------------------------------------- */
.md-disclaimer {
  margin-top: var(--md-space-16);
  padding: var(--md-space-8) var(--md-space-4);
  background: var(--md-surface-2);
  border-top: 1px solid var(--md-border);
  color: var(--md-ink-700);
  font-size: var(--md-text-sm);
  line-height: var(--md-leading-normal);
}
.md-disclaimer__inner {
  max-width: var(--md-container);
  margin-inline: auto;
  display: grid;
  gap: var(--md-space-3);
}
.md-disclaimer p { margin: 0; max-width: 90ch; }
.md-disclaimer strong { color: var(--md-ink-900); }
.md-disclaimer__link {
  color: var(--md-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.md-disclaimer__link:hover { color: var(--md-primary-700); }

/* H1 inyectado por normalize_h1 cuando el tema no imprime ninguno. */
.mag26-page-h1 {
  font-family: var(--md-serif);
  font-size: var(--md-text-4xl);
  font-weight: 700;
  line-height: var(--md-leading-tight);
  letter-spacing: -0.015em;
  color: var(--md-ink-900);
  margin: 0 0 var(--md-space-6);
}

/* --------------------------------------------------------------------------
   13 · EFECTOS DINÁMICOS (soporte para mag26.js) — spec §3, comedidos.
   Composited-only (transform/opacity). El estado "oculto" del reveal SOLO existe
   bajo .mag-js: sin JS nada queda invisible (mejora progresiva).
   -------------------------------------------------------------------------- */

/* 13.1 · Reveal suave al entrar en viewport (desplazamiento mínimo, una vez). */
.mag-js .mag-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s var(--md-ease-out), transform .6s var(--md-ease-out);
  will-change: opacity, transform;
}
.mag-js .mag-reveal.is-in { opacity: 1; transform: none; }

/* 13.2 · Barra de progreso de lectura (fija arriba, sobre la cabecera sticky). */
.mag-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 2000;
  background: transparent;
  pointer-events: none;
}
.mag-progress__fill {
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--md-primary), var(--md-primary-700));
  box-shadow: 0 0 8px color-mix(in srgb, var(--md-primary) 45%, transparent);
}

/* 13.3 · Cabecera sticky con sombra al hacer scroll. La promoción a sticky la
   decide el JS (solo si el header estaba en flujo estático): así no rompe temas
   con cabecera fija/absoluta. Aquí solo se define el aspecto. */
.mag-sticky-header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  background: var(--md-surface);
}
.mag-scrolled .site-header,
.mag-scrolled #masthead,
.mag-scrolled .mag-sticky-header {
  box-shadow: var(--md-shadow-md);
}

/* 13.4 · Botón "volver arriba" (páginas YMYL largas). */
.mag-totop {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 1500;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--md-primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: var(--md-shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
  transition: opacity .25s var(--md-ease), transform .25s var(--md-ease), background-color .2s var(--md-ease);
}
.mag-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.mag-totop:hover { background: var(--md-primary-700); transform: translateY(-2px); }
.mag-totop svg { width: 22px; height: 22px; fill: currentColor; }

/* --------------------------------------------------------------------------
   14 · RESPONSIVE (móvil-first: los bloques ya apilan; aquí los ajustes ≥N)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  /* La ficha de producto apila: la imagen deja de flotar y se centra arriba. */
  .md-prod__img {
    float: none;
    display: block;
    width: 100%;
    max-width: 240px;
    margin: 0 auto var(--md-space-4);
  }
  .md-prod__titulo { text-align: center; }
  .md-prod--top::before {
    right: auto; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6875rem;
    max-width: calc(100% - var(--md-space-6));
  }
  .md-resumen, .md-fuentes { padding-inline: var(--md-space-4); }
  .md-aviso { padding-inline-start: calc(var(--md-space-4) + 40px); padding-inline-end: var(--md-space-4); }
  .md-aviso::before { left: var(--md-space-4); }
  .md-cta { display: flex; width: 100%; }
}
@media (min-width: 641px) {
  .md-prod__specs li { font-size: var(--md-text-base); }
}

/* --------------------------------------------------------------------------
   15 · ACCESIBILIDAD DE MOVIMIENTO — prefers-reduced-motion (spec §3, obligatorio)
   Capa CSS que anula toda animación/transición y deja el reveal en su estado
   final. La capa JS hace lo propio (no oculta nada si reduced-motion está activo).
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .mag-js .mag-reveal { opacity: 1 !important; transform: none !important; }
  .md-cta::before { display: none; }
}

/* --------------------------------------------------------------------------
   16 · IMPRESIÓN — que una página médica se imprima limpia y legible.
   -------------------------------------------------------------------------- */
@media print {
  .mag-progress, .mag-totop, .main-navigation { display: none !important; }
  body { background: #fff; color: #000; }
  .md-aviso, .md-resumen, .md-faq__item, .md-fuentes, .md-prod, .md-tabla-wrap {
    box-shadow: none; border: 1px solid #999;
  }
  .md-faq__item[open] > .md-faq__resp { animation: none; }
  a { text-decoration: underline; }
}

/* --------------------------------------------------------------------------
   LOGO · sustitución del script turquesa por un wordmark clínico (autoridad).
   El <img>/<picture> del custom_logo se oculta; se compone un wordmark de
   texto real con una marca de "pulso" (herencia de color, doble canal WCAG).
   -------------------------------------------------------------------------- */
.custom-logo-link {
  display: inline-flex !important;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  line-height: 1;
}
.custom-logo-link .custom-logo,
.custom-logo-link picture,
.custom-logo-link img { display: none !important; }
.custom-logo-link::before {
  content: "";
  width: 30px; height: 30px; flex: none;
  background: linear-gradient(135deg, var(--md-primary), var(--md-ink-900));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 12h4l2 6 4-14 2 8h6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 12h4l2 6 4-14 2 8h6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.custom-logo-link::after {
  content: "Magnetoterapia Efectos";
  font-family: var(--md-font-serif, Georgia, "Times New Roman", serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 0.9rem + 1vw, 1.55rem);
  letter-spacing: -0.01em;
  color: var(--md-ink-900);
}
@media (max-width: 640px){ .custom-logo-link::after { font-size: 1.15rem; } }
