/* =============================================
   HEADER REDESIGN — custom.css
   ============================================= */

/* ===== FUENTES ===== */
@font-face {
    font-family: "Public Sans";
    src: url("../fonts/PublicSans/PublicSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Public Sans";
    src: url("../fonts/PublicSans/PublicSans-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Public Sans";
    src: url("../fonts/PublicSans/PublicSans-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== TIPOGRAFÍA GLOBAL ===== */
/* Excluye los elementos de fuentes de iconos (FontAwesome y la fuente 'molla'
   del template) para no romper sus glifos: si se les fuerza la tipografía base
   se muestran como caracteres rotos / "tofu". */
body,
body *:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not([class^="icon-"]):not([class*=" icon-"]) {
    font-family: var(--font-base) !important;
}

/* ===== MOBILE-FIRST FOUNDATION ===== */

/* Eliminar highlight azul al tocar en iOS/Android */
*,
*::before,
*::after {
    -webkit-tap-highlight-color: transparent;
}

/* touch-action: manipulation previene el doble-tap zoom en botones y links */
a,
button,
[role="button"],
input[type="submit"],
input[type="button"],
input[type="reset"],
label[for],
select {
    touch-action: manipulation;
}

/* CRÍTICO: font-size ≥ 16px en inputs previene el zoom automático en iOS.
   La base del proyecto es 10px, por lo que 1.6rem = 16px exactos. */
input[type="email"],
input[type="text"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="url"],
select,
textarea {
    font-size: 16px !important;
}

/* Feedback táctil: escala sutil en elementos interactivos principales */
.ft-btn-send:active,
.hm-search-btn:active,
.hb-cat-toggle:active,
.puntos-btn:active,
.bsec-btn:active {
    transform: scale(0.97);
    opacity: 0.92;
    transition: transform 0.1s, opacity 0.1s;
}

/* Respeta preferencia de movimiento reducido del sistema operativo */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== FIN MOBILE-FIRST FOUNDATION ===== */

.container-fluid {
    padding-left: 3rem;
    padding-right: 3rem;
}

.fw-600 {
    font-weight: 600;
}

.page-header {
    border-radius: var(--radius);
}

.title {
    font-size: 2.5rem;
}

.mobile-menu-toggler {
    margin: 0;
    padding: 0;
}

.header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.header-left-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header-right-section {
}

.tag-section {
    display: inline-block;
    background: #e6f4ea;
    color: #2e7d32;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

.title-section {
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    color: #000;
    line-height: 1.4;
}

.desc-section {
    color: var(--gray-text);
    font-size: 1.4rem;
    line-height: 1.4;
}

.btn-section {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--secundario) !important;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s, gap 0.2s;
}

.btn-section:hover,
.btn-section:focus {
    color: var(--hover-secundario) !important;
    text-decoration: none;
    gap: 0.8rem;
}

.btn-section {
    height: 15px;
    width: 15px;
}

/* = INICIO NOSOTROS = */

.content-img-nosotros img {
    border-radius: var(--radius);
}

/* = FIN NOSOTROS = */

/* Espaciado vertical de secciones principales */
.carruseles-productos {
    padding: var(--section-gap) 0;
}

.nuestras-marcas {
    padding: var(--section-gap) 0 0;
    margin: 0;
}

.blog-semar {
    padding: var(--section-gap) 0 0;
    margin: 0;
}

/* ===== TOP HEADER ===== */
.ht-redesign {
    background-color: var(--secundario);
}

.ht-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.ht-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.ht-left svg {
    color: var(--principal);
    flex-shrink: 0;
}

.ht-promo-carousel {
    overflow: hidden;
    height: 1.6rem;
    display: flex;
    align-items: center;
}

.ht-promo-track {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.ht-promo-item {
    height: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    line-height: 1;
}

.ht-promo-item svg {
    color: var(--principal);
    flex-shrink: 0;
}

.ht-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.ht-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.2s;
}

.ht-link:hover {
    color: #fff !important;
    text-decoration: none;
}

/* ===== HEADER MEDIO ===== */
.hm-redesign {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.hm-inner {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
}

.hm-logo-wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.hm-logo-wrap .logo {
    margin-top: 0;
    margin-bottom: 0;
}

.hm-search-wrap {
    flex: 1;
}

.hm-search-form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.hm-search-box {
    display: flex;
    align-items: center;
    border: 2px solid transparent;
    border-radius: 4rem;
    background: var(--secundario-light);
    position: relative;
    padding-right: 0.25rem;
}

.hm-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0.9rem 1.8rem;
    font-size: 1.4rem;
    background: transparent;
    min-width: 0;
    color: var(--negro);
    border-radius: var(--radius-full) 0 0 var(--radius-full);
}

.hm-search-input::placeholder {
    color: #858585;
}

.hm-search-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--secundario);
    color: #fff;
    border: none;
    padding: 0.875rem 2.2rem;
    font-size: 1.35rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    border-radius: var(--radius-full);
}

.hm-search-btn:hover,
.hm-search-btn:focus {
    background-color: var(--principal);
    color: #000;
}

.hm-actions-wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.hm-action {
    position: relative;
    padding-left: 0;
}

.hm-action-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: var(--negro) !important;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.hm-action-link:hover,
.hm-action-link:focus {
    color: var(--principal) !important;
    text-decoration: none;
}

.hm-action-label {
    font-size: 1.1rem;
    line-height: 1;
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge contador carrito */
.hm-action .cart-count {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 17px;
    height: 17px;
    background-color: var(--principal);
    color: #fff;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    font-weight: 600;
}

/* Badge contador favoritos */
.hm-action .favorite-count {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 17px;
    height: 17px;
    background-color: var(--principal);
    color: #fff;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    font-weight: 600;
}

/* ===== HEADER INFERIOR ===== */
.hb-redesign {
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.hb-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 48px;
}

.hb-left,
.hb-right {
    display: flex;
    align-items: center;
}

/* Botón Categorías */
.hb-cat-toggle {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.35rem;
    font-weight: 600;
    padding: 1.3rem 1.8rem;
    background-color: var(--principal);
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
    min-width: unset !important;
}

.category-dropdown:hover .hb-cat-toggle,
.hb-cat-toggle:focus {
    background-color: var(--secundario) !important;
    text-decoration: none;
    color: #fff !important;
}

.hb-cat-toggle::after {
    display: none !important;
}

/* Links izquierda */
.hb-nav-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--negro) !important;
    font-size: 1.3rem;
    padding: 1.3rem 1.2rem;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.hb-nav-link:hover,
.hb-nav-link:focus {
    color: var(--secundario) !important;
    text-decoration: none;
}

.hb-nav-link img,
.hb-nav-link svg {
    height: 14px;
    width: 14px;
}

/* Colores específicos izquierda */
.hb-link-comparar {
    color: var(--negro) !important;
}
.hb-link-comparar:hover {
    color: var(--secundario) !important;
    background-color: var(--secundario-light);
}

.hb-link-outlet,
.hb-link-outlet:focus {
    color: var(--rojo) !important;
}

.hb-link-outlet:hover {
    color: var(--rojo) !important;
    background-color: var(--hover-rojo);
}

.hb-link-puntos {
    color: var(--secundario) !important;
}
.hb-link-puntos:hover {
    color: var(--secundario) !important;
    background-color: var(--secundario-light);
}

.puntos-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: puntos-dot-pulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes puntos-dot-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    50%  { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Links derecha */
.hb-nav-link-right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--negro) !important;
    font-size: 1.3rem;
    padding: 1.3rem 1.2rem;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
    white-space: nowrap;
}

.hb-nav-link-right:hover,
.hb-nav-link-right:focus,
.hb-nav-link-right.active {
    text-decoration: none;
}

.hb-nav-link-right::after {
    display: none;
}

/* Pills derecha con fondo */
.hb-link-nuevos,
.hb-link-preventas,
.hb-link-giftcard {
    border-radius: var(--radius-full);
    padding: 0.55rem 1.4rem;
    margin: auto 0.2rem;
    color: #fff !important;
    font-weight: 500;
}

.hb-link-nuevos {
    color: #333 !important;
    background-color: var(--principal);
}
.hb-link-nuevos:hover,
.hb-link-nuevos.active {
    background-color: var(--hover-principal);
    color: #fff !important;
}

.hb-nav-link-right svg,
.hb-nav-link-right img {
    height: 14px;
    width: 14px;
}

.hb-link-preventas {
    background-color: var(--secundario);
}
.hb-link-preventas:hover,
.hb-link-preventas.active {
    background-color: var(--hover-secundario);
    color: #fff !important;
}

.hb-link-giftcard {
    background-color: var(--negro);
}
.hb-link-giftcard:hover,
.hb-link-giftcard.active {
    background-color: var(--hover-negro);
    color: #fff !important;
}

/* Dropdown en header inferior */
.hb-redesign .dropdown-menu {
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    width: 270px;
}

/* Hover en dropdown de categorías (desktop) */
@media (min-width: 992px) {
    .hb-redesign .category-dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* ===== DESKTOP-ONLY ACTIONS WRAPPER ===== */
.hm-desktop-actions {
    align-items: center;
    gap: 2rem;
}

/* ===== MI CUENTA / FAVORITOS EN MENÚ MOBILE ===== */
.mobile-user-nav {
    display: flex;
    gap: 0.8rem;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex: 1;
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    background-color: #f4f4f4;
    color: var(--negro) !important;
    font-size: 1.3rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-user-btn:hover {
    background-color: var(--principal);
    color: #fff !important;
    text-decoration: none;
}

/* ===== BUSCADOR MOBILE ===== */
.hm-search-mobile-wrap {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
    display: none;
}

.hm-search-mobile-wrap .hm-search-form {
    max-width: 100%;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hm-inner {
        flex-wrap: wrap;
        gap: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .hm-logo-wrap {
        flex: 1;
        gap: 3rem;
    }

    .hm-actions-wrap {
        gap: 1.4rem;
    }

    .hb-left,
    .hb-right {
        display: none;
    }

    .hm-search-mobile-wrap {
        display: block;
    }
}

@media (max-width: 575px) {
    .ht-left {
        display: none;
    }
}

/* ===== HERO REDESIGN ===== */

/* Tag superior */
.hero-tag {
    display: inline-block;
    background-color: var(--principal);
    color: var(--negro);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.28rem 0.85rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* Botón principal hero */
.intro-content .new-hero-btn {
    background-color: var(--secundario);
    border-color: var(--secundario);
    color: #fff;
    border-radius: var(--radius-full);
    box-shadow: 0 6px 20px rgba(var(--rgb-secundario), 0.35);
    font-weight: 600;
    text-transform: none;
    transition: background-color 0.25s, box-shadow 0.25s;
}

.intro-content .new-hero-btn:hover,
.intro-content .new-hero-btn:focus {
    background-color: var(--principal);
    border-color: var(--principal);
    color: #fff;
    box-shadow: 0 8px 28px rgba(var(--rgb-secundario), 0.45);
}

/* ===== HOTSPOTS ===== */

.banner-principal {
    position: relative;
}

.container-banner-principal {
    position: relative;
}

/* Overlay cuando hay texto activo */
.container-banner-principal.has-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.25) 55%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

.container-banner-principal .intro-content {
    z-index: 2;
}

.container-banner-principal img {
    border-radius: var(--radius);
}

.hero-text {
    color: #fff;
    font-size: 1.6rem;
    line-height: 1.3;
    letter-spacing: -0.025em;
    font-weight: 300;
    margin-bottom: 3rem;
}

/* Posiciones desktop */
.hero-hs-1 {
    left: 62%;
    top: 25%;
}
.hero-hs-2 {
    left: 72%;
    top: 58%;
}

.hero-hotspot {
    position: absolute;
    z-index: 10;
}

.hotspot-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secundario);
    border: 2.5px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    padding: 0;
    transition: transform 0.2s;
}

.hotspot-btn:hover {
    transform: scale(1.1);
}

.hotspot-pulse {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid var(--secundario);
    animation: hs-pulse 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes hs-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Panel desplegable */
.hotspot-panel {
    display: none;
    position: absolute;
    top: 50px;
    left: -10px;
    width: 320px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 20;
}

.hero-hotspot.active .hotspot-panel {
    display: flex;
}

/* Panel abre a la izquierda del punto */
.hero-hotspot.hs-right .hotspot-panel {
    left: auto;
    right: -10px;
}

/* Panel abre hacia arriba */
.hero-hotspot.hs-up .hotspot-panel {
    top: 3em;
}

.hotspot-img-wrap {
    display: block;
    overflow: hidden;
    min-width: 120px;
    max-width: 120px;
    padding: 0.25rem;
}

.hotspot-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.hotspot-img-wrap:hover img {
    transform: scale(1.04);
}

.hotspot-info {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hotspot-brand {
    font-size: 1.05rem;
    color: #888;
    text-decoration: none;
    font-weight: 500;
    line-height: 1;
}

.hotspot-brand:hover {
    color: var(--secundario);
    text-decoration: none;
}

.hotspot-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--negro);
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hotspot-name:hover {
    color: var(--secundario);
    text-decoration: none;
}

.hotspot-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secundario);
    margin-top: 0.15rem;
    line-height: 1;
}

.hotspot-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    white-space: nowrap;
    text-decoration: none;
    background-color: var(--principal);
    color: var(--negro);
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.35rem;
    transition: background-color 0.2s;
    font-family: inherit;
}

.hotspot-cart-btn:hover {
    text-decoration: none;
}

.hotspot-cart-btn:hover {
    background-color: var(--hover-principal);
}

/* Responsive hotspots — tablet */
@media (max-width: 991px) {
    .hero-hs-1 {
        left: 58%;
        top: 18%;
    }
    .hero-hs-2 {
        left: 70%;
        top: 55%;
    }
    .hotspot-img-wrap img {
        height: 110px;
    }
}

/* Responsive hotspots — mobile */
@media (max-width: 575px) {
    .hero-hs-1 {
        left: auto;
        right: 12px;
    }
    .hero-hs-2 {
        left: auto;
        right: 12px;
    }
    .hotspot-panel {
        width: 260px;
    }
    .hotspot-img-wrap {
        min-width: 100px;
        max-width: 100px;
    }
    .hotspot-img-wrap img {
        height: 90px;
    }
    .hotspot-info {
        padding: 0.6rem 0.8rem;
        gap: 0.2rem;
    }
    .hotspot-name {
        font-size: 1.1rem;
    }
    .hotspot-price {
        font-size: 1.2rem;
    }
    .hotspot-cart-btn {
        font-size: 1.05rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ===== CARRUSEL HERO — NAVEGACIÓN Y DOTS ===== */

.owl-banner-principal {
    position: relative;
}

/* Flechas prev/next centradas verticalmente sobre el slide */
/* .owl-banner-principal .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    display: flex !important;
    justify-content: space-between;
    padding: 0 14px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 6;
    margin: 0;
} */

.owl-banner-principal .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* left: 0; */
    pointer-events: all;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.88) !important;
    border: none;
    color: var(--negro) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s, transform 0.2s;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.owl-banner-principal .owl-nav .owl-prev {
    left: 1rem;
}

.owl-banner-principal .owl-nav .owl-next {
    right: 1rem;
}

.owl-banner-principal .owl-nav button:hover {
    background-color: var(--secundario) !important;
    color: #fff !important;
}

/* Dots sobre el slide — posición inferior */
.owl-banner-principal .owl-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 100%;
    display: flex !important;
    justify-content: center;
    gap: 6px;
    margin: 0;
    z-index: 6;
}

.owl-banner-principal .owl-dots .owl-dot {
    margin: 0;
    padding: 4px 0;
}

.owl-banner-principal .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0;
    display: block;
    transition: background-color 0.3s, transform 0.3s;
}

.owl-banner-principal .owl-dots .owl-dot.active span,
.owl-banner-principal .owl-dots .owl-dot:hover span {
    transform: scale(1.3);
    border-color: var(--secundario);
    border-radius: 0.5rem;
    height: 7px;
}

/* Responsive — tablet */
@media (max-width: 991px) {
    .owl-banner-principal .owl-nav button {
        width: 38px;
        height: 38px;
    }
    .owl-banner-principal .owl-nav {
        padding: 0 10px;
    }
}

/* Responsive — mobile */
@media (max-width: 575px) {
    .owl-banner-principal .owl-nav button {
        width: 32px;
        height: 32px;
    }
    .owl-banner-principal .owl-nav button svg {
        width: 16px;
        height: 16px;
    }
    .owl-banner-principal .owl-nav {
        padding: 0 6px;
    }
    .owl-banner-principal .owl-dots {
        bottom: 10px;
        gap: 5px;
    }
}

/* =============================================
   CARD DE PRODUCTO — REDESIGN
   ============================================= */

/* Card general */
.product.text-center:not(.product-carrito) {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: start !important;
}

/* Figure */
.product.text-center:not(.product-carrito) .product-media {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1.2rem 1.2rem;
    background: var(--secundario-light);
}

.product.product-carrito .product-media {
    margin-right: 1rem;
}

.product.product-carrito .product-title {
     -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    max-height: unset;
    overflow: unset;
}

/* Imagen principal + segunda imagen hover */
.product-media > a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 1rem;
}

.product-image.thumbs {
    display: block;
    width: 100%;
    transition: opacity 0.4s ease;
}

.product-image-secondary {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-media:hover .product-image.thumbs {
    opacity: 0;
}

.product-media:hover .product-image-secondary {
    opacity: 1;
}

/* Product body */
.product .product-body {
    background: #fff;
    text-align: start;
}

/* Título */
.product .product-title-link {
    color: var(--negro) !important;
}

/* Precios en fila */
.product-price {
    align-items: start !important;
}

.product .price-current {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.product .price-current .new-price {
    color: var(--secundario) !important;
    font-size: 1.8rem;
    font-weight: 700;
}

.product .price-current .old-price {
    color: #aaa !important;
    text-decoration: line-through;
    font-size: 1.25rem;
}

/* Botón carrito */
.product-body-cart {
    margin-top: auto;
    padding-bottom: 0.25rem;
}

/* product-action-vertical — absolute top right, columna, visible en hover */
.product .product-action-vertical {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    left: auto !important;
    transform: translateX(6px) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    flex-direction: column !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin-top: 0;
    z-index: 10;
    background-color: transparent;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s !important;
}

.product:hover .product-action-vertical {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* hover product */

.product:hover {
    border-color: var(--secundario);
    box-shadow: 0 6px 24px rgba(0, 68, 129, 0.15);
}

.product:hover .product-title-link {
    color: var(--secundario) !important;
}

.product:hover .product-image.thumbs {
    transform: scale(1.02);
}

.btn-product-icon {
    margin-top: 1rem !important;
}

.btn-product-icon:hover,
.btn-product-icon:focus {
    background: var(--secundario) !important;
    color: #fff !important;
}

.product-action {
    position: relative;
    left: unset;
    right: unset;
    bottom: unset;
    opacity: 1;
    visibility: visible;
}

.btn-product {
    gap: 0.25rem;
    min-height: 42px;
    border-radius: var(--radius-full) !important;
}

.btn-product svg {
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    height: 18px;
}

.btn-product:hover,
.btn-product:focus {
    background-color: var(--principal) !important;
    color: #000 !important;
    border-color: var(--principal);
}

/* Botón favoritos */
.btn-favorites {
    border: 1.5px solid var(--negro) !important;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-favorites:hover,
.btn-favorites:focus {
    color: var(--rojo) !important;
    border: 1px solid var(--rojo) !important;
    background-color: var(--hover-rojo) !important;
}

.btn-favorites .heart-filled {
    display: none;
    color: var(--rojo);
}

.btn-favorites .heart-outline {
    display: block;
}

.btn-favorites.is-fav .heart-outline {
    display: none;
}

.btn-favorites.is-fav .heart-filled {
    display: block;
}

.btn-favorites svg {
    transition: transform 0.2s;
}

.btn-favorites:hover svg {
    transform: scale(1.2);
}

/* =============================================
   OWL-SIMPLE — NAV SOBRE EL CARRUSEL
   ============================================= */

.owl-simple {
    position: relative;
}

.owl-simple .owl-nav button.owl-prev,
.owl-simple .owl-nav button.owl-next {
    position: absolute;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: auto;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
    z-index: 5;
}

.owl-simple .owl-nav button.owl-prev {
    left: 0;
}

.owl-simple .owl-nav button.owl-next {
    right: 0;
}

.owl-simple .owl-nav button.owl-prev:not(.disabled):hover,
.owl-simple .owl-nav button.owl-next:not(.disabled):hover {
    background-color: var(--secundario) !important;
    color: #fff !important;
    border-color: var(--secundario) !important;
}

.owl-simple .owl-nav button.disabled {
    opacity: 0.35;
}

@media (max-width: 991px) {
    .owl-simple .owl-nav button.owl-prev {
        left: -12px;
    }
    .owl-simple .owl-nav button.owl-next {
        right: -12px;
    }
}

/* =============================================
   OWL-FULL — NAV SOBRE EL CARRUSEL
   ============================================= */

.owl-full {
    position: relative;
}

.owl-full .owl-nav button.owl-prev,
.owl-full .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    background-color: #fff !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.owl-full .owl-nav button.owl-prev {
    left: 0;
}

.owl-full .owl-nav button.owl-next {
    right: 0;
}

.owl-full .owl-nav button.owl-prev:not(.disabled):hover,
.owl-full .owl-nav button.owl-next:not(.disabled):hover {
    background-color: var(--secundario) !important;
    color: #fff !important;
    border-color: var(--secundario) !important;
}

.owl-full .owl-nav button.disabled {
    opacity: 0.35;
}

@media (max-width: 991px) {
    .owl-full .owl-nav button.owl-prev {
        left: 0;
    }
    .owl-full .owl-nav button.owl-next {
        right: 0;
    }
}

/* =============================================
   SECCIÓN CATEGORÍAS — SWIPER
   ============================================= */

.seccion-categorias {
    padding: 0 0 var(--section-gap);
}

.swiper-categorias {
    padding: 0.5rem 0.25rem 1rem;
}

/* Card */
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 0.8rem;
    border: 1.5px solid var(--secundario);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--negro);
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.cat-card:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 24px rgba(0, 68, 129, 0.15);
    text-decoration: none;
    color: var(--negro);
}

/* Contenedor del ícono */
.cat-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--secundario-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.25s ease;
}

.cat-card:hover .cat-icon-wrap {
    background: var(--secundario);
}

/* Ícono */
.cat-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: var(--filter-secundario);
    transition: filter 0.25s ease;
}

.cat-card:hover .cat-icon {
    filter: brightness(0) invert(1);
}

/* Nombre */
.cat-nombre {
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: var(--negro);
}

@media (max-width: 575px) {
    .seccion-categorias {
        padding: var(--section-gap) 0;
    }
    .cat-icon-wrap {
        width: 46px;
        height: 46px;
    }
    .cat-icon {
        width: 24px;
        height: 24px;
    }
    .cat-nombre {
        font-size: 1rem;
    }
}

/* === INICIO CARRUSEL CATEGORIAS === */
.nav-pills + .tab-content .tab-pane {
    padding: 0;
}

/* ===== Layout principal ===== */
.carr-cat-main-row {
    display: grid;
    grid-template-columns: calc(25% - 1rem) calc(75% - 1rem);
    align-items: stretch;
    gap: 2rem;
}

/* ===== Imagen con overlay ===== */
.carr-cat-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    height: 100%;
    min-height: 280px;
}

.img-general-carr {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Overlay de color (solid) ===== */
.carr-cat-overlay-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(var(--rgb-secundario), 0.82);
}

/* ===== Contenido overlay ===== */
.carr-cat-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    color: #fff;
}

.carr-cat-overlay-top {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.carr-cat-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding-bottom: 0.75rem;
}

.carr-cat-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin: 0;
    letter-spacing: 0.02em;
}

.carr-cat-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.45;
}

/* ===== Botón Ver todos ===== */
.carr-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #333;
    background-color: #fff;
    font-weight: 600;
    font-size: 1.4rem;
    text-decoration: none;
    border-radius: var(--radius-full);
    padding: 0.45rem 1.15rem;
    transition: background 0.2s ease;
    align-self: flex-start;
}

.carr-cat-btn:hover {
    color: #fff;
    text-decoration: none;
    background: var(--secundario);
}

/* ===== Subtítulo compras-via-web ===== */
.compras-via-web-sub {
    color: var(--gray-text);
    font-size: 1.4rem;
    margin: 0.25rem 0 0;
}

.title-nuestras-marcas-sub {
    color: var(--gray-text);
    font-size: 1.4rem;
}

/* ===== Header sección marcas ===== */
.marcas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.marcas-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.marcas-header-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.marcas-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--negro);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.marcas-nav-btn:hover {
    background: var(--secundario);
    border-color: var(--secundario);
    color: #fff;
}

/* ===== Sección Puntos Cliente Fiel ===== */
.puntos-section {
    padding: var(--section-gap) 0 0;
    margin: 0;
}

.puntos-container {
    border-radius: var(--radius);
    background: #f7f8fa;
    border: 1px solid var(--border-color);
    padding: 2rem 3rem;
}

/* Header */
.puntos-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.8rem;
}

.puntos-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.puntos-icon-wrap {
    display: flex;
    align-items: start;
    gap: 0.7rem;
    margin-bottom: 0.4rem;
}

.puntos-icon-wrap img,
.puntos-icon-wrap svg {
    background: var(--principal-light);
    color: var(--secundario);
    padding: 1rem;
    border-radius: 1rem;
    width: 32px;
    height: 32px;
    box-sizing: content-box;
}

.puntos-badge {
    background: var(--principal);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.03em;
}

.puntos-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--negro);
    margin: 0;
    line-height: 1.2;
}

.puntos-desc {
    font-size: 1.4rem;
    color: var(--gray-text);
    margin: 0;
}

.puntos-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--secundario);
    color: #fff !important;
    font-size: 1.35rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
    flex-shrink: 0;
    margin-top: 0.4rem;
}

.puntos-cta-btn:hover,
.puntos-cta-btn:focus {
    background: var(--principal);
    text-decoration: none;
    color: #000 !important;
}

/* Grid de cards */
.puntos-swiper-wrap {
    position: relative;
    margin-bottom: 2.4rem;
}

.puntos-swiper .swiper-slide {
    height: auto;
}

.puntos-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--negro);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease,
        color 0.2s ease;
}

.puntos-nav-prev {
    left: 0;
}
.puntos-nav-next {
    right: 0;
}

.puntos-swiper-wrap:hover .puntos-nav-btn {
    opacity: 1;
    pointer-events: auto;
}

.puntos-nav-btn:hover {
    background: var(--secundario);
    border-color: var(--secundario);
    color: #fff;
}

.row-canjes {
    row-gap: 2rem;
}

.puntos-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 2rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    height: 100%;
}

.puntos-pts-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--principal);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    align-self: flex-start;
}

.puntos-card-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.puntos-card-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.puntos-card-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--negro);
    margin: 1rem;
    line-height: 1.3;
}

.puntos-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background-color: var(--principal);
    color: #000;
    border-radius: var(--radius-full);
    min-height: 42px;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s;
}

.puntos-card-link:hover,
.puntos-card-link:focus {
    background-color: var(--secundario);
    color: #fff !important;
    text-decoration: none;
}

/* Banner registro */
.puntos-register-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: var(--secundario);
    border-radius: var(--radius);
    padding: 2rem 2.4rem;
    margin-bottom: 2rem;
}

.puntos-register-left {
    display: flex;
    align-items: start;
    gap: 1.4rem;
    color: #fff;
}

.puntos-register-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--principal);
    border-radius: 1rem;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: #fff;
}

.puntos-register-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.2rem;
}

.puntos-register-desc {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.puntos-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--principal);
    color: #000 !important;
    font-size: 1.35rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.puntos-register-btn:hover,
.puntos-register-btn:focus {
    background: var(--hover-principal);
    text-decoration: none;
    color: #000 !important;
}

/* Footer info */
.puntos-footer-info {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--color-border);
    margin: 0rem -3rem 0;
    padding: 1rem 4rem 0;
    border-top: 1px solid var(--border-color);
}

.puntos-footer-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.25rem;
    color: var(--gray-text);
}

.puntos-footer-item img,
.puntos-footer-item svg {
    filter: var(--filter-secundario);
    height: 14px;
    width: 14px;
}

.puntos-footer-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secundario) !important;
    text-decoration: none;
    margin-left: auto;
    transition: color 0.2s;
}

.puntos-footer-link:hover {
    color: var(--hover-secundario) !important;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 991px) {
    .puntos-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    .puntos-register-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .puntos-footer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .puntos-footer-link {
        margin-left: 0;
    }
}

/* ===== Cards de marcas ===== */
.marca-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.marca-card-img {
    max-height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.25s ease;
}

.marca-card:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 18px rgba(var(--rgb-secundario), 0.15);
    border-color: var(--secundario);
}

.marca-card:hover .marca-card-img {
    filter: grayscale(0%);
}

/* ===== Sección productos-categorias ===== */
.productos-categorias {
    background-color: var(--bg-gray-light);
    padding: var(--section-gap) 0;
    margin: 0;
}

/* ===== Header sección productos-categorias ===== */
.pc-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3rem;
}

.pc-header-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--negro);
    margin: 0 0 0.6rem;
    line-height: 1.2;
}

.pc-header-desc {
    font-size: 1.5rem;
    color: #888;
    margin: 0;
}

/* ===== Tabs ===== */

.nav-links {
    display: block;
    background: var(--secundario-light) !important;
    color: var(--secundario) !important;
    border-radius: var(--radius) !important;
    padding: 0.45rem 1rem;
    font-weight: 500;
    font-size: 1.4rem;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.nav-links.active,
.nav-links:hover {
    background: var(--secundario) !important;
    color: #fff !important;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .carr-cat-main-row {
        grid-template-columns: 100%;
    }

    .carr-cat-img-wrap {
        height: 300px;
        min-height: unset;
    }
}

@media (max-width: 575px) {
    .carr-cat-img-wrap {
        height: 240px;
    }

    .carr-cat-title {
        font-size: 2.5rem;
    }

    .carr-cat-overlay {
        padding: 1.1rem;
    }
}
/* === FIN CARRUSEL CATEGORIAS === */

/* ===== BLOG SWIPER ===== */

/* Header */
.content-title-blog {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.blog-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.blog-ver-todos {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--secundario) !important;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s, gap 0.2s;
}

.blog-ver-todos:hover {
    color: var(--hover-secundario) !important;
    text-decoration: none;
    gap: 0.8rem;
}

.blog-tag {
    display: inline-block;
    background: #e6f4ea;
    color: #2e7d32;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

/* Swiper wrap */
.blog-swiper-wrap {
    position: relative;
}

.blog-swiper {
    overflow: hidden;
    border-radius: var(--radius);
}

.blog-swiper .swiper-slide {
    height: auto;
}

/* Card editorial — 2 columnas */
.blog-card {
    display: grid;
    grid-template-columns: 48% 52%;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    min-height: 420px;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    text-decoration: none;
    color: inherit;
}

/* Columna izquierda — imagen */
.blog-card-img-col {
    position: relative;
    overflow: hidden;
}

.blog-card-img-link {
    display: block;
    height: 100%;
    position: relative;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card-img-link:hover .blog-card-img {
    transform: scale(1.04);
}

/* Tag de categoría sobre imagen */
.blog-card-cat-tag {
    position: absolute;
    top: 1.4rem;
    left: 1.4rem;
    background: var(--principal);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.35rem 1.1rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
    z-index: 2;
    white-space: nowrap;
}

/* Columna derecha — contenido */
.blog-card-content {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding: 2.8rem 2.8rem 6.5rem;
}

/* Meta: fecha + tiempo de lectura */
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.blog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: var(--gray-text);
    font-weight: 400;
}

.blog-meta-item svg {
    color: var(--secundario);
    flex-shrink: 0;
}

/* Título */
.blog-card-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--negro);
    margin: 0;
    line-height: 1.3;
}

/* Descripción */
.blog-card-desc {
    font-size: 1.45rem;
    color: var(--gray-text);
    margin: 0;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Botón Leer más */
.blog-leer-mas {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--secundario);
    color: #fff !important;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.2s ease, gap 0.2s ease;
    align-self: flex-start;
    margin-top: auto;
}

.blog-leer-mas:hover,
.blog-leer-mas:focus {
    background: var(--principal);
    color: #000 !important;
    text-decoration: none;
    gap: 1rem;
}

/* Controles superpuestos — zona inferior de la 2ª columna */
.blog-controls {
    position: absolute;
    bottom: 0;
    left: 48%;
    right: 0;
    padding: 0 2.8rem 2.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.blog-controls > * {
    pointer-events: auto;
}

.blog-nav-btns {
    display: flex;
    gap: 0.6rem;
}

.blog-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--negro);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blog-nav-btn:hover {
    background: var(--secundario);
    border-color: var(--secundario);
    color: #fff;
}

/* Paginación — rectángulos horizontales */
.blog-pagination {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-pagination .swiper-pagination-bullet {
    width: 24px;
    height: 5px;
    border-radius: 3px;
    background: var(--border-color);
    opacity: 1;
    margin: 0;
    transition: background 0.3s ease, width 0.3s ease;
}

.blog-pagination .swiper-pagination-bullet-active {
    background: var(--secundario);
    width: 40px;
}

/* Responsive — Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .blog-card {
        grid-template-columns: 42% 58%;
        min-height: 360px;
    }

    .blog-card-content {
        padding: 2.2rem 2.2rem 6.5rem;
    }

    .blog-controls {
        left: 42%;
        padding: 0 2.2rem 2.2rem;
    }

    .blog-card-title {
        font-size: 2rem;
    }
}

/* Responsive — Mobile */
@media (max-width: 767px) {
    .blog-card {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .blog-card-img-col {
        height: 220px;
    }

    .blog-card-content {
        padding: 1.8rem;
        gap: 1rem;
    }

    .blog-controls {
        top: 50%;
        bottom: auto;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        padding: 0 0.8rem;
        justify-content: space-between;
    }

    .blog-nav-btns {
        width: 100%;
        justify-content: space-between;
    }

    .blog-pagination {
        display: none;
    }

    .blog-card-title {
        font-size: 1.8rem;
    }

    .blog-card-desc {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .puntos-icon-wrap,
    .puntos-register-left {
        flex-direction: column;
    }
}

.title-blog-semar {
    text-align: left !important;
}
/* ===== FIN BLOG SWIPER ===== */

/* ===== BANNER SECUNDARIO SECTION ===== */
.banner-secundario-section {
    padding: var(--section-gap) 0 0;
}

.bsec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.bsec-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

.bsec-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.bsec-item:hover .bsec-img {
    transform: scale(1.03);
}

/* Overlay */
.bsec-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bsec-item--odd .bsec-overlay {
    background: rgba(var(--rgb-secundario), 0.55);
}

.bsec-item--even .bsec-overlay {
    background: rgba(255, 255, 255, 0.58);
}

/* Tag */
.bsec-tag {
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.35rem 1.1rem;
    border-radius: var(--radius);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: fit-content;
}

.bsec-item--odd .bsec-tag {
    background: var(--principal);
    color: var(--negro);
}

.bsec-item--even .bsec-tag {
    background: var(--rojo);
    color: #fff;
}

/* Contenido editorial */
.bsec-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 3rem 2.8rem;
    margin: auto 0;
    width: 100%;
}

.bsec-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
}

.bsec-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
}

.bsec-item--odd .bsec-subtitle,
.bsec-item--odd .bsec-title {
    color: #fff;
}

.bsec-item--even .bsec-subtitle,
.bsec-item--even .bsec-title {
    color: var(--negro);
}

/* Botones */
.bsec-btn {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    font-size: 1.35rem;
    font-weight: 600;
    padding: 0.85rem 2.2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    margin-top: 0.6rem;
    transition: opacity 0.2s ease;
}

.bsec-btn:hover {
    text-decoration: none;
    opacity: 0.88;
}

.bsec-item--odd .bsec-btn {
    background: var(--principal);
    color: var(--negro) !important;
}

.bsec-item--even .bsec-btn {
    background: var(--secundario);
    color: #fff !important;
}

/* Responsive — Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .bsec-grid {
        gap: 1.4rem;
    }

    .bsec-item {
        min-height: 280px;
    }

    .bsec-title {
        font-size: 2rem;
    }

    .bsec-content {
        padding: 2.2rem;
        gap: 0.8rem;
    }
}

/* Responsive — Mobile */
@media (max-width: 767px) {
    .bsec-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .bsec-item {
        min-height: 260px;
    }

    .bsec-title {
        font-size: 2rem;
    }

    .bsec-subtitle {
        font-size: 1.2rem;
    }

    .bsec-content {
        padding: 2rem 1.8rem;
        gap: 0.8rem;
    }

    .bsec-btn {
        font-size: 1.25rem;
        padding: 0.75rem 1.8rem;
    }
}
/* ===== FIN BANNER SECUNDARIO SECTION ===== */

/* ===== BENEFICIOS SECTION ===== */
.beneficios-section {
    padding: var(--section-gap) 0 0;
    margin: 0;
}

.benef-wrap {
    background: var(--bg-gray-light);
    border-radius: var(--radius);
    padding: 2.4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
}

.benef-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.benef-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--secundario-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benef-icon {
    width: 28px;
    height: 28px;
    filter: var(--filter-secundario);
}

.benef-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.benef-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--negro);
    margin: 0;
    line-height: 1.3;
}

.benef-subtitle {
    font-size: 1.25rem;
    color: var(--gray-text);
    margin: 0;
    line-height: 1.3;
}

@media (min-width: 768px) and (max-width: 991px) {
    .benef-wrap {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem;
        gap: 1.2rem;
    }
}

@media (max-width: 767px) {
    .benef-wrap {
        grid-template-columns: 1fr;
        padding: 1.6rem;
        gap: 1rem;
    }

    .benef-item {
        padding: 1.6rem;
    }
}
/* ===== FIN BENEFICIOS SECTION ===== */

/* ===== SOBRE SECTION ===== */
.sobre-section {
    padding: var(--section-gap) 0;
}

.sobre-wrap {
    background: var(--degradado);
    border-radius: var(--radius);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sobre-tag {
    display: inline-flex;
    align-self: flex-start;
    background: var(--principal);
    color: var(--negro);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.35rem 1.2rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sobre-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.sobre-desc {
    font-size: 1.45rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.75;
}

.sobre-btns {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}

.sobre-btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--principal);
    color: var(--negro) !important;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 0.9rem 2.4rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: background 0.2s;
}

.sobre-btn-primary:hover {
    background: var(--hover-principal);
    text-decoration: none;
    color: var(--negro) !important;
}

.sobre-btn-ghost {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    font-size: 1.4rem;
    font-weight: 500;
    padding: 0.9rem 2.4rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: background 0.2s;
}

.sobre-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    text-decoration: none;
    color: #fff !important;
}

.sobre-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.sobre-stat {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 1.8rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
}

.sobre-stat-num {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--principal);
    line-height: 1;
}

.sobre-stat-label {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
}

@media (min-width: 768px) and (max-width: 991px) {
    .sobre-wrap {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem;
    }

    .sobre-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 767px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .sobre-wrap {
        grid-template-columns: 1fr;
        padding: 2.4rem 2rem;
        gap: 2.4rem;
    }

    .sobre-title {
        font-size: 2.2rem;
    }

    .sobre-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .sobre-stat-num {
        font-size: 2.2rem;
    }
}
/* ===== FIN SOBRE SECTION ===== */

/* ===== FOOTER REDESIGN ===== */
.ft-footer {
    background: #fff;
    color: var(--negro);
}

/* Anular estilos del template para el footer */
.ft-footer .footer-bottom,
.ft-footer .footer-middle {
    background: transparent;
}

/* ---- Cuerpo principal ---- */
.ft-main {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 5rem 0 4rem;
}

.ft-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* ---- Columna genérica ---- */
.ft-col {
    display: flex;
    flex-direction: column;
}

/* ---- Logo ---- */
.ft-logo {
    width: 160px;
    margin-bottom: 2.4rem;
    display: block;
}

/* ---- Info list ---- */
.ft-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.ft-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    font-size: 1.3rem;
    color: #555;
}

.ft-info-list li svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--secundario);
}

.ft-info-list a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.ft-info-list a:hover {
    color: var(--principal);
    text-decoration: none;
}

/* ---- Redes sociales ---- */
.ft-social {
    display: flex;
    gap: 1rem;
}

.ft-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secundario-light);
    color: var(--secundario);
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.ft-social-link:hover,
.ft-social-link:focus {
    background: var(--secundario);
    color: #fff !important;
    text-decoration: none;
}

/* ---- Título de columna ---- */
.ft-col-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--negro);
    margin: 0 0 1.6rem;
}

/* ---- Newsletter ---- */
.ft-col-desc {
    font-size: 1.3rem;
    color: var(--gray-text);
    line-height: 1.65;
    margin: 0 0 2rem;
}

.ft-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    background: var(--bg-gray-light);
    border: 1px solid var(--border-color);
    border-radius: 3rem;
    padding: 0.3rem 0.3rem 0.3rem 1.8rem;
    transition: border-color 0.2s;
}

.ft-form:focus-within {
    border-color: var(--principal);
}

.ft-input {
    background: transparent;
    border: none;
    padding: 0.75rem 0;
    font-size: 1.35rem;
    color: var(--negro);
    outline: none;
    flex: 1;
    min-width: 0;
}

.ft-input::placeholder {
    color: var(--gray-text);
}

.ft-input:focus {
    outline: none;
}

.ft-btn-send {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--secundario);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.85rem 1.8rem;
    font-size: 1.35rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.ft-btn-send:hover,
.ft-btn-send:focus {
    background: var(--principal);
    color: #000;
    outline: none;
}

/* ---- Lista de enlaces ---- */
.ft-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ft-links-list li a {
    font-size: 1.3rem;
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.2s;
}

.ft-links-list li a:hover {
    color: var(--principal);
    text-decoration: none;
}

/* ---- Franja inferior ---- */
.ft-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.6rem 0;
}

.ft-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.ft-bottom-porta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.ft-bottom-text {
    font-size: 1.2rem;
    color: var(--gray-text);
    line-height: 1.2;
}

.ft-porta-link {
    display: flex;
    align-items: center;
}

.ft-porta-svg {
    height: 12px;
    width: auto;
    margin-top: 0.4rem;
}

.ft-tarjetas-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

/* ---- Responsive — Tablet ---- */
@media (min-width: 768px) and (max-width: 991px) {
    .ft-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .ft-col:first-child {
        grid-column: 1 / -1;
    }

    .ft-main {
        padding: 4rem 0 3.4rem;
    }
}

/* ---- Responsive — Mobile ---- */
@media (max-width: 767px) {
    .ft-main {
        padding: 3.6rem 0 3rem;
    }

    .ft-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .ft-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.4rem;
    }
}
/* ===== FIN FOOTER REDESIGN ===== */

/* ==== INICIO POP UP ==== */

.mfp-close::before {
    font: normal normal 2.6rem / 1 "molla";
}

.newsletter-popup-container .newsletter-popup-content {
    border-radius: var(--radius);
    overflow: hidden;
}

.newsletter-popup-container .input-group .btn {
    background-color: var(--secundario);
    border-radius: var(--radius-full);
}

.newsletter-popup-container .custom-control {
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-popup-container p {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    line-height: 1.4;
    color: #000;
}

.newsletter-popup-container .custom-control {
    margin-top: 3rem;
}

/* ==== FIN POP UP ==== */

/* ==== INICIO MODAL CARRITO ==== */
.title-modal-carrito {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.modal-content {
    border-radius: var(--radius);
}

.modal-header .close {
    font-size: 2.6rem;
}

.modal-cart-product .modal-header {
    position: absolute;
    right: 1rem;
    z-index: 5;
}

.modal-cart-product .modal-header .close {
    cursor: pointer;
}

.name-modal-carrito {
    font-size: 1.6rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.total-modal-carrito {
    color: var(--secundario);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
}

/* ==== FIN MODAL CARRITO ==== */

/* ===== BUSCADOR – SELECTOR DE CATEGORÍA ===== */
.hm-cat-selector {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    border-right: 1.5px solid rgba(0, 0, 0, 0.12);
}

.hm-cat-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.2rem 0 1.6rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--negro);
    white-space: nowrap;
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    transition: color 0.2s;
    font-family: inherit;
}

.hm-cat-trigger:hover,
.hm-cat-trigger:focus {
    color: var(--secundario);
    outline: none;
}

.hm-cat-trigger svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.hm-cat-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.hm-cat-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.13);
    border: 1px solid var(--border-color);
    display: none;
    z-index: 1050;
    overflow: hidden;
    padding: 0.4rem 0;
}

.hm-cat-dropdown.is-open {
    display: block;
}

.hm-cat-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.8rem 1.4rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.35rem;
    color: var(--negro);
    font-family: inherit;
    transition: background-color 0.15s, color 0.15s;
}

.hm-cat-option:hover,
.hm-cat-option:focus {
    background: rgba(var(--rgb-principal), 0.1);
    color: var(--secundario);
    outline: none;
}

.hm-cat-option.hm-cat-active {
    color: var(--secundario);
    font-weight: 600;
}
/* ===== FIN SELECTOR DE CATEGORÍA ===== */

/* ===== PÁGINA FAVORITOS ===== */

/* Hero */
.fav-hero {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--border-color);
}

.fav-hero-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.fav-hero-icon {
    width: 64px;
    height: 64px;
    background: rgba(var(--rgb-principal), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--principal);
    flex-shrink: 0;
}

.fav-hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--negro);
    margin: 0 0 0.4rem;
    line-height: 1.2;
}

.fav-hero-desc {
    font-size: 1.5rem;
    color: #666;
    margin: 0;
}

/* Grid */
.fav-grid-section {
    padding: 4rem 0;
}

.fav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.4rem;
}

/* Estado vacío */
.fav-empty {
    padding: 6rem 0;
}

.fav-empty-inner {
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.fav-empty-icon {
    color: #ccc;
}

.fav-empty-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--negro);
    margin: 0;
}

.fav-empty-desc {
    font-size: 1.45rem;
    color: #777;
    margin: 0;
    line-height: 1.5;
}

.fav-empty-btn {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 1rem 2.4rem;
    background-color: var(--secundario);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s;
}

.fav-empty-btn:hover {
    background-color: var(--hover-secundario);
    color: #fff;
}

/* CTA inferior */
.fav-cta {
    padding: 3.5rem 0 5rem;
    border-top: 1px solid var(--border-color);
}

.fav-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

.fav-cta-text {
    font-size: 1.5rem;
    color: #555;
    margin: 0;
}

.fav-cta-btn {
    display: inline-block;
    padding: 1rem 2.4rem;
    background-color: var(--secundario);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s;
}

.fav-cta-btn:hover {
    background-color: var(--principal);
    color: #000;
}

/* Responsive */
@media (max-width: 1199px) {
    .fav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .fav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.4rem;
    }

    .fav-hero-title {
        font-size: 2.2rem;
    }

    .fav-cta-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .fav-grid {
        grid-template-columns: 1fr;
    }

    .fav-hero-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== FIN PÁGINA FAVORITOS ===== */

/* ===== POPUP AÑADIR AL CARRITO — BOTONES ===== */

.popup-btn-continuar,
.popup-btn-carrito {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.22s, color 0.22s, border-color 0.22s,
        box-shadow 0.22s;
    margin: 0.4rem;
    width: 100%;
}

.popup-btn-continuar {
    background-color: transparent;
    color: var(--secundario) !important;
    border: 2px solid var(--secundario);
}

.popup-btn-continuar:hover {
    background-color: var(--principal);
    border: 2px solid var(--principal);
    color: #000 !important;
    text-decoration: none;
}

.popup-btn-continuar:focus,
.popup-btn-continuar:focus-visible {
    outline: 3px solid rgba(var(--rgb-principal), 0.5);
    outline-offset: 2px;
    background-color: var(--principal);
    color: #fff;
    text-decoration: none;
}

.popup-btn-carrito {
    background-color: var(--secundario);
    color: #fff;
    border: 2px solid var(--secundario);
}

.popup-btn-carrito:hover {
    background-color: var(--principal);
    border-color: var(--principal);
    color: #000;
    text-decoration: none;
}

.popup-btn-carrito:focus,
.popup-btn-carrito:focus-visible {
    outline: 3px solid rgba(var(--rgb-principal), 0.5);
    outline-offset: 2px;
    background-color: var(--principal);
    border-color: var(--principal);
    color: #000;
    text-decoration: none;
}

/* ===== FIN POPUP BOTONES ===== */

/* ===== INICIO CATALOGO ===== */

.row-catalogo {
    column-gap: 4rem;
}

/* ===== Layout grid principal ===== */
.grid-catalogo {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem 4rem;
}

#price-slider {
    width: 90%;
    left: 1.8rem;
}

@media (max-width: 1100px) {
    .grid-catalogo {
        grid-template-columns: 1fr;
    }
}

/* ===== Overlay ===== */
.drawer-overlay {
    display: none;
}

@media (max-width: 1100px) {
    .drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1049;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease-in-out;
    }

    .drawer-overlay--activo {
        opacity: 1;
        pointer-events: all;
    }
}

/* ===== Aside — drawer en mobile ===== */
@media (max-width: 1100px) {
    .aside-catalogo {
        position: fixed;
        top: 0;
        left: -100%;
        width: min(320px, 85vw);
        height: 100%;
        overflow-y: auto;
        background: #fff;
        z-index: 1050;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        transition: left 0.35s ease-in-out;
    }

    .aside-catalogo.drawer-abierto {
        left: 0;
    }
}

/* ===== Header del drawer (solo mobile) ===== */
.drawer-header {
    display: none;
}

@media (max-width: 1100px) {
    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.4rem 1.6rem;
        border-bottom: 1px solid #e5e7eb;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 1;
    }

    .drawer-titulo {
        font-size: 1.6rem;
        font-weight: 700;
    }

    .drawer-cerrar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: none;
        background: transparent;
        cursor: pointer;
        color: #666;
        border-radius: 50%;
        transition: background 0.2s, color 0.2s;
    }

    .drawer-cerrar:hover,
    .drawer-cerrar:focus-visible {
        background: #f3f4f6;
        color: #1a1a2e;
        outline: none;
    }
}

/* ===== Botón Filtro (solo mobile) ===== */
.btn-filtro-drawer {
    display: none;
}

@media (max-width: 1100px) {
    .btn-filtro-drawer {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.7rem 1.4rem;
        border: 1.5px solid var(--secundario);
        border-radius: var(--radius);
        background: transparent;
        color: var(--secundario);
        font-size: 1.4rem;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 1.2rem;
        transition: background 0.2s, color 0.2s;
    }

    .btn-filtro-drawer:hover,
    .btn-filtro-drawer:focus-visible {
        background: var(--secundario);
        color: #fff;
        outline: none;
    }

    .aside-categorias,
    .aside-marcas,
    .aside-precio {
        padding: 0 2rem;
    }
}

/* ===== FIN CATALOGO ===== */

/* ===== INICIO FICHA PRODUCTO ===== */

.product-details .product-price {
    font-weight: 600;
}

/* ===== FIN FICHA PRODUCTO ===== */

/* ===== INICIO QUICKVIEW ===== */
.quickView-content .carousel-dot img {
    border-radius: 0.875rem;
}

.btn-cart-vistaprevia {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--secundario);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1.2;
    min-height: 48px;
    padding: 0.5rem 1rem;
    text-align: center;
    border-radius: var(--radius);
    transition: all 0.3s;
}

.btn-cart-vistaprevia:hover,
.btn-cart-vistaprevia:focus {
    background-color: var(--principal);
    color: #000;
}
/* ===== FIN QUICKVIEW ===== */

/* ===== INICIO BLOGS ===== */

.entry-media,
.entry-media img {
    border-radius: var(--radius);
}

.posts-list li {
    border-bottom: 1px solid #ebebeb;
        margin-bottom: 1rem !important;
}

.posts-list img {
    border-radius: 0.5rem;
}

.widget-title {
    border-bottom: 1px solid #ccc;
    padding-bottom: 1rem;
}

/* ===== FIN BLOGS ===== */

@media (max-width: 767px) {
    :root {
        --section-gap: 3rem;
    }
}
