/* Ajustes de usabilidad, noviembre 2026. Se carga después de la hoja principal. */

/* Formularios: misma letra que el sitio y opciones más fáciles de tocar */
:where(.pmd-home, .pmd-buscador) :is(input, select, textarea, button) { font-family: inherit; }
.pmd-home .diag-ops input[type=radio], .pmd-home .diag-ops input[type=checkbox] { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent, #3b82f6); }

/* Imágenes con medidas declaradas: conservan su proporción */
:where(img.ux-dims) { height: auto; }

/* Blog: filtros en una sola fila que se desliza en celular */
@media (max-width: 699px) {
  .pmd-home .blog-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 2px 20px 6px; scroll-padding-inline: 20px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%); }
  .pmd-home .blog-cats::-webkit-scrollbar { display: none; }
  .pmd-home .blog-cats a { flex: none; }
}

/* Barra de secciones en páginas largas */
.pmd-home .ux-secs { position: sticky; top: 72px; z-index: 40; background: #0f1115eb; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line, #2d3748); transform: translateY(-110%); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease; margin-bottom: -49px; }
.pmd-home .ux-secs.ver { transform: none; opacity: 1; pointer-events: auto; }
.pmd-home .ux-secs-fila { display: flex; gap: 6px; max-width: 1240px; margin: 0 auto; padding: 7px 20px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 32px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 32px), transparent 100%); }
.pmd-home .ux-secs-fila::-webkit-scrollbar { display: none; }
.pmd-home .ux-secs a { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; color: var(--mute, #9ca3af); text-decoration: none; font: 700 13px/1 Manrope, system-ui, sans-serif; white-space: nowrap; transition: color .2s, border-color .2s, background-color .2s; }
.pmd-home .ux-secs a b { font: 400 13px/1 Anton, Impact, sans-serif; letter-spacing: .04em; color: #64748b; }
.pmd-home .ux-secs a:hover { color: var(--ink, #f4f6f8); }
.pmd-home .ux-secs a[aria-current="true"] { color: var(--ink, #f4f6f8); border-color: var(--accent, #3b82f6); background: #3b82f61f; }
.pmd-home .ux-secs a[aria-current="true"] b { color: var(--accent, #3b82f6); }
.pmd-home .ux-secs a:focus-visible { outline: 2px solid var(--accent, #3b82f6); outline-offset: 2px; }
.pmd-home [data-ux-sec] { scroll-margin-top: 130px; }
@media (prefers-reduced-motion: reduce) { .pmd-home .ux-secs { transition: none; } }

/* Planes y precios: en celular se deslizan de lado en vez de apilarse */
@media (max-width: 699px) {
  .pmd-home .planes.ux-desliza { display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -20px; padding: 6px 20px 8px; scroll-padding-inline: 20px; }
  .pmd-home .planes.ux-desliza::-webkit-scrollbar { display: none; }
  .pmd-home .planes.ux-desliza > * { flex: 0 0 86%; scroll-snap-align: start; grid-column: auto !important; }
  .pmd-home .ux-puntos { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; color: var(--mute, #9ca3af); font: 700 13px Manrope, system-ui, sans-serif; }
  .pmd-home .ux-puntos button { width: 28px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .pmd-home .ux-puntos button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #475569; transition: background-color .2s, transform .2s; }
  .pmd-home .ux-puntos button[aria-current="true"]::before { background: var(--accent, #3b82f6); transform: scale(1.3); }
}
@media (min-width: 700px) { .pmd-home .ux-puntos { display: none; } }

/* Calculadora: el resultado flotante queda arriba de la barra de abajo */
@media (max-width: 899px) { .pmd-home .pe-calc .pe-flota.pe-flota { bottom: calc(80px + env(safe-area-inset-bottom)); } }

/* Con la letra mínima de 13 px: etiquetas que caben en celular */
.pmd-home .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 699px) {
  .pmd-home .kpi span { text-transform: none; letter-spacing: 0; font-weight: 700; }
  .pmd-home .pj-home .pj-tile { flex: 0 0 auto; min-width: 86px; padding-inline: 10px; letter-spacing: 0; white-space: nowrap; }
  .pmd-home .pj-placa { flex-wrap: wrap; row-gap: 6px; }
}

/* Opiniones reales de Google junto al primer botón */
.pmd-home .ux-resenas { margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.pmd-home .ux-resenas-cab { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--ink, #f4f6f8); text-decoration: none; font: 600 14px Manrope, system-ui, sans-serif; }
.pmd-home .ux-resenas-cab b { font-weight: 800; }
.pmd-home .ux-resenas-cab span { color: var(--mute, #9ca3af); font-weight: 600; }
.pmd-home .ux-resenas-cab:hover b { text-decoration: underline; }
.pmd-home .ux-estrellas { color: var(--accent-warm, #f59e0b) !important; letter-spacing: 1px; font-size: 15px; }
.pmd-home .ux-resenas blockquote { margin: 0; padding: 12px 14px; border: 1px solid var(--line, #2d3748); border-radius: 12px; background: #13161ccc; display: grid; gap: 6px; align-content: space-between; }
.pmd-home .ux-resenas blockquote p { margin: 0; font: 600 14px/1.45 Manrope, system-ui, sans-serif; color: var(--ink, #f4f6f8); }
.pmd-home .ux-resenas cite { font: 600 13px Manrope, system-ui, sans-serif; font-style: normal; color: var(--mute, #9ca3af); }
@media (max-width: 520px) { .pmd-home .ux-resenas { grid-template-columns: 1fr; } }
.pmd-home .hp-izq > .ux-resenas { order: 8; }

/* Índice "En este artículo" */
.pmd-home .ux-indice { margin: 28px 0 32px; border: 1px solid var(--line, #2d3748); border-radius: 14px; background: #13161ccc; }
.pmd-home .ux-indice summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; cursor: pointer; font: 800 15px Manrope, system-ui, sans-serif; color: var(--ink, #f4f6f8); }
.pmd-home .ux-indice summary::-webkit-details-marker { display: none; }
.pmd-home .ux-indice summary span { color: var(--mute, #9ca3af); font-weight: 600; font-size: 13px; }
.pmd-home .ux-indice summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.pmd-home .ux-indice details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.pmd-home .ux-indice ol { margin: 0; padding: 0 18px 16px; list-style: none; counter-reset: uxi; display: grid; gap: 2px; }
@media (min-width: 900px) { .pmd-home .ux-indice ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
.pmd-home .ux-indice li { counter-increment: uxi; margin: 0; padding: 0; }
.pmd-home .ux-indice li::before { content: none; }
.pmd-home .ux-indice a { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; color: var(--ink, #f4f6f8); text-decoration: none; font: 600 15px/1.35 Manrope, system-ui, sans-serif; }
.pmd-home .ux-indice a::before { content: counter(uxi, decimal-leading-zero); flex: none; font: 400 14px/1 Anton, Impact, sans-serif; letter-spacing: .04em; color: var(--accent, #3b82f6); }
.pmd-home .ux-indice a:hover { color: #93c5fd; }
.pmd-home .pmd-rich-text h2[id] { scroll-margin-top: 96px; }

/* Demostraciones: enlace con contraste suficiente y nota de la calculadora */
.pmd-home .nav-demos .demos-abrir { color: #60a5fa; }
.pmd-home .ux-nota-herr { margin-top: 12px; color: var(--mute, #9ca3af); font-size: 15px; }
.pmd-home .ux-nota-herr a { color: #93c5fd; }
