/* ============================================================
   Sufomeca — Mejoras UI/UX, accesibilidad y responsive móvil
   Cargado DESPUÉS de main.css para sobreescribir cuando aplique.
   ============================================================ */

/* ---------- Utilidades de accesibilidad ---------- */
.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;left:8px;top:-60px;z-index:3000;background:#2b6be4;color:#fff;
    padding:10px 18px;border-radius:0 0 10px 10px;font-weight:700;text-decoration:none;
    transition:top .2s ease
}
.skip-link:focus{top:0;color:#fff}

/* Foco visible para navegación por teclado */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,
textarea:focus-visible,[role="button"]:focus-visible{
    outline:3px solid #2b6be4;outline-offset:2px;border-radius:6px
}
[role="button"]{cursor:pointer}

/* ---------- Slider: preservar tamaños tras el cambio de etiquetas (h1/h4 → h2/p) ---------- */
.hero-slider-content-2 .hs-kicker{font-size:24px;line-height:1;margin:0 0 18px;font-weight:700;color:#253d4e}
.hero-slider-content-2 h2.hs-title{font-size:58px;line-height:64px;margin:0}

/* ---------- Salvaguardas anti-overflow ---------- */
img{max-width:100%;height:auto}

/* ---------- Contraste de textos apagados (WCAG 4.5:1) ---------- */
.text-muted{color:#5b6472!important}

/* ============================================================
   TAP TARGETS ≥ 44px (usabilidad táctil)
   ============================================================ */
.mobile-social-icon a{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center}
.header-info-social ul li a{min-width:40px;min-height:40px}
.slider-arrow .slick-arrow,.hero-slider-1-arrow .slick-arrow{width:44px;height:44px}
.pagination li a,.page-item .page-link{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}

/* ============================================================
   RESPONSIVE — TABLET Y MÓVIL
   ============================================================ */
@media (max-width: 991px){
    .hero-slider-content-2 .hs-kicker{font-size:16px;margin:0 0 10px}
    .hero-slider-content-2 h2.hs-title{font-size:32px;line-height:1.2}
}

@media (max-width: 767px){
    /* Evita el scroll horizontal sin romper position:sticky (clip, no hidden) */
    body{overflow-x:clip}

    /* HERO: quitar la altura fija que recorta el contenido en móvil */
    .hero-slider-1,.hero-slider-1.style-4{height:auto!important}
    .home-slide-cover{padding:22px 0}
    .single-hero-slider{padding:8px 0}
    .hero-slider-content-2{text-align:center}
    .hero-slider-content-2 p{width:100%!important;margin-left:auto;margin-right:auto}
    .single-slider-img{justify-content:center;margin-top:14px}
    .single-slider-img img{max-height:220px;width:auto}
    /* Puntos del slider: sacarlos de encima de la imagen y centrarlos debajo */
    .hero-slider-1 .slick-dots,
    .hero-slider-1.dot-style-1-position-1 .slick-dots{position:static!important;margin:14px 0 0!important;text-align:center!important;bottom:auto!important}

    /* DETALLE DE PRODUCTO */
    .pd-grid{gap:22px!important}
    .pd-gallery{padding:18px!important}
    .pd-title{font-size:24px!important}
    .pd-trust{grid-template-columns:1fr 1fr!important}
    .pd-related__title{font-size:19px!important}

    /* HERO DE CATEGORÍA */
    .cat-hero{padding:30px 0 26px!important}
    .cat-hero__desc{font-size:14.5px}
    .cat-hero__stats{gap:8px}
    .cat-hero__stat{font-size:12.5px;padding:9px 12px}

    /* Cabeceras de sección más compactas */
    .section-title .title,.section-title h3{font-size:22px}
}

@media (max-width: 480px){
    .pd-trust{grid-template-columns:1fr!important}
    .cat-hero__title{font-size:26px}
    .single-slider-img img{max-height:180px}
}
