:root {
    --papaya: #F2921D;
    --turquesa: #4EC5EA;
    --ciruela: #5B1F8C;
    --crema: #FFF8EE;
    --tinta: #241C1B;
    --amarillo: #F5C331;
    --rosa: #D6249F;
    --rojo: #E8402C;
    --azul: #2C6FE8;
    --radius-lg: 28px;
    --radius-sm: 14px;
    --max-w: 1360px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Work Sans', sans-serif;
    color: var(--tinta);
    background: #FFFFFF;
    line-height: 1.55;
}

h1,
h2,
h3,
.display {
    font-family: 'Baloo 2', sans-serif;
    margin: 0;
    line-height: 1.1;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}

.wrap-full {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

@media (max-width:700px) {

    .wrap,
    .wrap-full {
        padding: 0 18px;
    }
}

/* ---------- Utility shapes (no external images) ---------- */
.blob {
    position: absolute;
    border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
}
/* =========================================================
   TOP BAR · marquesina infinita v2
   Reemplaza TODO tu bloque "Top bar (marquesina infinita)".
   ========================================================= */

.topbar {
    /* degradado morado + tira arcoíris animada (colores del logo) abajo */
    background:
        linear-gradient(90deg,
            #ff1a1a, #f59a00, #f0c000, #22c722, #00c8ff, #1a3cff, #9a1fc4, #ff2bd6, #ff1a1a)
            0 100% / 720px 3px repeat-x,
        linear-gradient(90deg, var(--ciruela, #5b1f8c) 0%, #7a1fb8 50%, var(--ciruela, #5b1f8c) 100%);
    color: var(--crema, #fff7ec);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    overflow: hidden;
    animation: topbarStripe 9s linear infinite;
}
@keyframes topbarStripe {
    from { background-position: 0 100%, 0 0; }
    to   { background-position: -720px 100%, 0 0; }
}

/* difuminado en los bordes */
.topbar-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

/* ---------- Track ---------- */
.topbar-track {
    display: flex;
    align-items: center;
    width: max-content;
    padding: 9px 0 12px;       /* el espacio extra abajo es para la tira de colores */
    white-space: nowrap;
}

/* La animación solo arranca cuando el JS preparó los grupos */
.topbar-track.is-ready {
    animation: topbarMarquee var(--tb-dur, 30s) linear infinite;
    will-change: transform;
}
.topbar:hover .topbar-track { animation-play-state: paused; }

@keyframes topbarMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }   /* = un grupo completo, sin saltos */
}

.topbar-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 44px;
    padding-right: 44px;       /* cierra el ciclo con el mismo espacio */
}

/* ---------- Mensajes ---------- */
.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.topbar-emoji {
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    animation: topbarBob 2.6s ease-in-out infinite;
}
.topbar-item:nth-child(3n+2) .topbar-emoji { animation-delay: -.9s; }
.topbar-item:nth-child(3n+3) .topbar-emoji { animation-delay: -1.8s; }
@keyframes topbarBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-2px) rotate(-8deg); }
}

/* estrellita separadora */
.topbar-item::after {
    content: "✦";
    margin-left: 44px;
    font-size: 11px;
    color: #ffd400;
    animation: topbarTwinkle 2.4s ease-in-out infinite;
}
.topbar-item:nth-child(even)::after { animation-delay: -1.2s; }
@keyframes topbarTwinkle {
    0%, 100% { opacity: .35; transform: scale(.8) rotate(0deg); }
    50%      { opacity: 1;   transform: scale(1.2) rotate(90deg); }
}

/* ---------- Sin JS: se ven los mensajes centrados, sin animación ---------- */
.topbar-track:not(.is-ready) { width: 100%; justify-content: center; }
.topbar-track:not(.is-ready) .topbar-group { flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding-right: 0; }
.topbar-track:not(.is-ready) .topbar-item::after { display: none; }



/* Distribución de los grupos para el desplazamiento continuo */
.topbar-track.is-ready {
    justify-content: flex-start;
}

.topbar-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 44px;
    padding-right: 44px;
}

/* Separación visual consistente */
.topbar-item {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}

/* El grupo duplicado solo sirve para crear el ciclo infinito */
.topbar-group[aria-hidden="true"] {
    pointer-events: none;
}

/* Evita que los mensajes salten a otra línea */
.topbar-track.is-ready .topbar-group {
    flex-wrap: nowrap;
}

/* Accesibilidad: detener el movimiento si el usuario lo solicita */
@media (prefers-reduced-motion: reduce) {
    .topbar-track.is-ready {
        animation: none;
        transform: none;
    }
}


/* ---------- Móvil ---------- */
@media (max-width: 600px) {
    .topbar { font-size: 12px; }
    .topbar-group { gap: 30px; padding-right: 30px; }
    .topbar-item::after { margin-left: 30px; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
    .topbar { animation: none; }
    .topbar-track.is-ready { animation: none; }
    .topbar-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .topbar-group[aria-hidden="true"] { display: none; }
    .topbar-emoji, .topbar-item::after { animation: none; }
}

/* ---------- Header ---------- */
header.site {
    background: var(--crema);
    border-bottom: 1px solid rgba(36, 28, 27, .08);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Baloo 2', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--ciruela);
}

.logo .dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, var(--papaya), var(--amarillo), var(--turquesa), var(--rosa), var(--papaya));
    flex-shrink: 0;
}

.logo-img {
    height: 48px;
    width: auto;
    flex-shrink: 0;
}

.logo-img.lg {
    height: 72px;
}

nav.main-nav {
    display: flex;
    gap: 28px;
    font-weight: 600;
    font-size: 15px;
}

nav.main-nav a {
    position: relative;
    padding: 6px 0;
}

nav.main-nav a:hover {
    color: var(--papaya);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.search-pill {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(36, 28, 27, .12);
    border-radius: 999px;
    padding: 8px 16px;
    gap: 8px;
    min-width: 200px;
}

.search-pill input {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    background: transparent;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(36, 28, 27, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--papaya);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Carrusel de marcas (marquee infinito) ---------- */
.carousel-head-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 18px;
}

.carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(36, 28, 27, .12);
    font-size: 17px;
    color: var(--ciruela);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, transform .15s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--amarillo);
    transform: translateY(-2px);
}

.brands-section {
    background: #fff;
    padding: 72px 0;
}

.brand-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-viewport {
    overflow: hidden;
    flex: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}

.brand-track {
    display: flex;
    gap: 28px;
    width: max-content;
    will-change: transform;
}

.brand-tile {
    flex: 0 0 auto;
    width: 188px;
    height: 102px;
    background: #fff;
    border: 1px solid rgba(36, 28, 27, .09);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    filter: grayscale(1);
    opacity: .55;
    transition: filter .3s ease, opacity .3s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.brand-tile:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-4px) scale(1.045);
    box-shadow: 0 16px 28px rgba(61, 30, 66, .14);
    border-color: rgba(91, 31, 140, .18);
}

.brand-wordmark {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 17px;
    text-align: center;
    line-height: 1.2;
    letter-spacing: .2px;
}

@media (prefers-reduced-motion: reduce) {
    .brand-tile {
        filter: none;
        opacity: 1;
    }
}

@media (max-width:700px) {
    .brand-viewport {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    }

    .brand-tile {
        width: 150px;
        height: 86px;
    }

    .brand-arrow {
        display: none;
    }
}

/* ---------- Panel del carrito ---------- */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(36, 28, 27, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 95;
}

.cart-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 360px;
    max-width: 88vw;
    background: var(--crema);
    z-index: 110;
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -12px 0 30px rgba(0, 0, 0, .15);
}

.cart-drawer.is-open {
    transform: translateX(0);
}

.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(36, 28, 27, .08);
}

.cart-head h3 {
    font-family: 'Baloo 2', sans-serif;
    font-size: 19px;
    color: var(--ciruela);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    color: #8a7b74;
    margin-top: 40px;
    font-size: 14px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(36, 28, 27, .07);
    animation: cartItemIn .3s ease;
}

@keyframes cartItemIn {
    from {
        opacity: 0;
        transform: translateX(14px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--tinta);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 13px;
    color: var(--papaya);
    font-weight: 700;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(36, 28, 27, .15);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ciruela);
}

.qty-btn:hover {
    background: var(--amarillo);
}

.cart-item-qty span {
    font-size: 13px;
    font-weight: 700;
    min-width: 14px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    color: #b79b93;
    font-size: 16px;
    padding: 4px;
}

.cart-item-remove:hover {
    color: var(--rojo);
}

.cart-foot {
    padding: 18px 20px 22px;
    border-top: 1px solid rgba(36, 28, 27, .08);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 16px;
    color: var(--ciruela);
    margin-bottom: 14px;
}

.cart-checkout {
    width: 100%;
    justify-content: center;
}

/* ---------- Barra de progreso de scroll ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--papaya), var(--rosa), var(--turquesa));
    z-index: 200;
    transition: width .1s linear;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
    z-index: 150;
    animation: waPulse 2.4s ease-in-out infinite;
}

.whatsapp-fab:hover {
    animation-play-state: paused;
    transform: scale(1.06);
}

@keyframes waPulse {

    0%,
    100% {
        box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
    }

    50% {
        box-shadow: 0 10px 24px rgba(37, 211, 102, .75), 0 0 0 10px rgba(37, 211, 102, .12);
    }
}

@media (max-width:600px) {
    .whatsapp-fab {
        width: 52px;
        height: 52px;
        bottom: 18px;
        right: 18px;
    }
}

/* ---------- Contador regresivo de ofertas ---------- */
.countdown-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    padding: 12px 22px;
    margin-bottom: 32px;
}

.countdown-label {
    font-weight: 700;
    font-size: 14px;
}

.countdown-units {
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-unit {
    background: rgba(255, 255, 255, .18);
    border-radius: 10px;
    padding: 6px 10px;
    text-align: center;
    min-width: 52px;
}

.countdown-unit span {
    display: block;
    font-family: 'Baloo 2', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.countdown-unit small {
    font-size: 10px;
    opacity: .8;
}

.countdown-colon {
    font-weight: 800;
    font-size: 16px;
}

/* ---------- Tilt 3D en tarjetas ---------- */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform .15s ease, box-shadow .15s ease;
    will-change: transform;
}

/* ---------- Estadísticas animadas ---------- */
.stats-band {
    background: var(--ciruela);
    color: var(--crema);
    padding: 56px 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-number {
    font-family: 'Baloo 2', sans-serif;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    color: var(--amarillo);
}

.stat-label {
    margin-top: 6px;
    font-size: 14px;
    color: rgba(255, 246, 234, .85);
    font-weight: 600;
}

@media (max-width:700px) {
    .stats-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
    }
}

/* ---------- Confeti al agregar al carrito ---------- */
.confetti-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 180;
    overflow: hidden;
}

.confetti-piece {
    position: fixed;
    border-radius: 3px;
    opacity: 0;
}

@keyframes confettiBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    100% {
        opacity: 0;
        transform: var(--confetti-end) rotate(var(--confetti-rot)) scale(.6);
    }
}

.cart-count.bump {
    animation: cartBump .4s ease;
}

@keyframes cartBump {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

/* ---------- Efecto scroll reveal (fade + pop) ---------- */
.reveal {
    opacity: 0;
    transform: scale(.9) translateY(22px);
    transition: opacity .65s cubic-bezier(.22, 1, .36, 1), transform .65s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Sidebar / menú lateral ---------- */
.nav-toggle {
    display: flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(36, 28, 27, .12);
    align-items: center;
    justify-content: center;
    font-size: 16px;
    order: -1;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(36, 28, 27, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 90;
}

.sidebar-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 300px;
    max-width: 82vw;
    background: var(--crema);
    z-index: 100;
    transform: translateX(-100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 12px 0 30px rgba(0, 0, 0, .15);
}

.sidebar.is-open {
    transform: translateX(0);
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(36, 28, 27, .08);
}

.sidebar-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(36, 28, 27, .12);
    font-size: 16px;
}

.sidebar-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.sidebar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid rgba(36, 28, 27, .12);
    border-radius: 999px;
    padding: 10px 16px;
    margin-bottom: 22px;
}

.sidebar-search input {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    background: transparent;
}

.sidebar-section {
    margin-bottom: 26px;
}

.sidebar-label {
    font-family: 'Baloo 2', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--ciruela);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 12px;
}

.sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 4px;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid rgba(36, 28, 27, .06);
}

.sidebar-links a:hover {
    color: var(--papaya);
}

.sidebar-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-cats a {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(36, 28, 27, .1);
    font-size: 13px;
    font-weight: 600;
}

.sidebar-cats a:hover {
    background: var(--amarillo);
    border-color: var(--amarillo);
}

.sidebar-foot {
    padding: 20px;
    border-top: 1px solid rgba(36, 28, 27, .08);
    font-size: 13px;
    color: #6b5c56;
}

@media (min-width:961px) {
    .nav-toggle {
        display: none;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(560px, 78vh, 660px);
    color: var(--crema);
}

.hero .blob {
    z-index: 0;
}

.hero .blob.b1 {
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, .18);
    opacity: .5;
    top: -140px;
    right: -100px;
}

.hero .blob.b2 {
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, .14);
    opacity: .5;
    bottom: -120px;
    left: -60px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 72px 24px 96px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
    z-index: 1;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.hero-inner {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .16);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 800;
    margin-bottom: 18px;
}

.hero p.lead {
    font-size: 17px;
    max-width: 46ch;
    color: rgba(255, 246, 234, .9);
    margin-bottom: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    transition: transform .15s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--papaya);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 246, 234, .5);
    color: var(--crema);
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* animación de entrada del texto, se dispara al activarse el slide */
.hero-slide .hero-eyebrow,
.hero-slide h1,
.hero-slide p.lead,
.hero-slide .hero-btns {
    opacity: 0;
    transform: translateY(22px);
}

.hero-slide.is-active .hero-eyebrow {
    animation: heroFadeUp .7s ease forwards;
    animation-delay: .10s;
}

.hero-slide.is-active h1 {
    animation: heroFadeUp .7s ease forwards;
    animation-delay: .22s;
}

.hero-slide.is-active p.lead {
    animation: heroFadeUp .7s ease forwards;
    animation-delay: .34s;
}

.hero-slide.is-active .hero-btns {
    animation: heroFadeUp .7s ease forwards;
    animation-delay: .46s;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-visual {
    position: relative;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.candy-jar {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1/1;
}

.candy-piece {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
    animation: candyFloat 4.5s ease-in-out infinite;
}

@keyframes candyFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-16px) rotate(6deg);
    }
}

.hero-slide.is-active .candy-piece {
    animation: candyFloat 4.5s ease-in-out infinite, popIn .6s ease backwards;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.4);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* dots y flechas del slider */
.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .4);
    padding: 0;
    transition: width .25s ease, background .25s ease;
}

.hero-dot.is-active {
    width: 30px;
    background: #fff;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, .3);
}

.hero-arrow.prev {
    left: 18px;
}

.hero-arrow.next {
    right: 18px;
}

@media (max-width:700px) {
    .hero-arrow {
        display: none;
    }
}

/* ---------- Section heading pattern ---------- */
.section {
    padding: 64px 24px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.section-head h2 {
    font-size: clamp(24px, 3vw, 34px);
    color: var(--ciruela);
}

.section-head p {
    margin: 8px 0 0;
    color: #5c4f4a;
    max-width: 44ch;
}

.see-all {
    font-weight: 700;
    color: var(--papaya);
    white-space: nowrap;
}

/* ---------- Categories ---------- */
.category-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
    perspective: 1000px;
}
 
/* ---------- Paleta rotativa (se repite cada 6 tarjetas) ---------- */
.category-card                  { --c1: #ff4b5c; --c2: #ff8a5c; --tint: #fff0f1; }
.category-card:nth-child(6n+2)  { --c1: #ffb300; --c2: #ffd84d; --tint: #fff8e1; }
.category-card:nth-child(6n+3)  { --c1: #22c55e; --c2: #7be495; --tint: #ecfbf1; }
.category-card:nth-child(6n+4)  { --c1: #00b8f5; --c2: #66dcff; --tint: #e6f8ff; }
.category-card:nth-child(6n+5)  { --c1: #9b3df0; --c2: #c98bff; --tint: #f5ebff; }
.category-card:nth-child(6n+6)  { --c1: #ff3fb4; --c2: #ff8fd6; --tint: #ffedf8; }
 
/* ---------- Tarjeta ---------- */
.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 14px 20px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(36, 28, 27, .06);
    box-shadow: 0 6px 16px rgba(61, 30, 66, .06);
    transform-style: preserve-3d;
    transition: box-shadow .35s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1), border-color .3s ease;
    isolation: isolate;
 
    /* entrada escalonada */
    opacity: 0;
    transform: translateY(26px) scale(.94);
}
 
.category-card.is-in {
    opacity: 1;
    transform: none;
    transition:
        opacity .6s ease calc(var(--i, 0) * 70ms),
        transform .7s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i, 0) * 70ms),
        box-shadow .35s ease,
        border-color .3s ease;
}
 
/* Cabecera de color con ola */
.category-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 92px;
    z-index: -1;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    border-radius: 0 0 50% 50% / 0 0 34px 34px;
    transition: height .4s cubic-bezier(.34, 1.56, .64, 1);
}
 
/* Puntitos decorativos */
.category-card::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 12px;
    width: 46px;
    height: 46px;
    z-index: -1;
    opacity: .5;
    background:
        radial-gradient(circle, rgba(255, 255, 255, .9) 2.5px, transparent 3px) 0 0 / 12px 12px;
    transition: transform .6s ease;
}
 
.category-card:hover,
.category-card:focus-visible {
    transform: translateY(-8px) rotate(-1deg);
    border-color: var(--c1);
    box-shadow: 0 20px 36px -8px color-mix(in srgb, var(--c1) 45%, transparent);
    outline: none;
}
.category-card.is-in:hover,
.category-card.is-in:focus-visible {
    transform: translateY(-8px) rotate(-1deg);
}
.category-card:hover::before { height: 104px; }
.category-card:hover::after  { transform: translate(-6px, 6px) rotate(20deg); }
 
/* ---------- Icono ---------- */
.category-icon {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 20px auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    line-height: 1;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .14), inset 0 0 0 4px var(--tint);
    transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
 
/* aro giratorio punteado */
.category-icon::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px dashed var(--c1);
    opacity: 0;
    transform: scale(.85);
    transition: opacity .3s ease, transform .4s ease;
}
 
.category-icon .category-img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .18));
    animation: catIdle 3.2s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -.4s);
}
 
@keyframes catIdle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-4px) rotate(6deg); }
}
 
.category-card:hover .category-icon {
    transform: scale(1.14) rotate(-8deg);
}
.category-card:hover .category-icon::before {
    opacity: 1;
    transform: scale(1);
    animation: catSpin 6s linear infinite;
}
.category-card:hover .category-icon .category-img {
    animation: catWiggle .6s ease-in-out infinite;
}
 
@keyframes catSpin   { to { transform: rotate(360deg); } }
@keyframes catWiggle {
    0%, 100% { transform: rotate(-10deg) scale(1.05); }
    50%      { transform: rotate(10deg)  scale(1.15); }
}
 
/* ---------- Textos ---------- */
.category-card span.category-name {
    font-weight: 800;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: .01em;
    color: #2b1d2e;
}
 
.category-card small {
    display: inline-block;
    margin-top: 2px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--c1);
    background: var(--tint);
    transition: background .3s ease, color .3s ease;
}
.category-card:hover small {
    color: #fff;
    background: linear-gradient(135deg, var(--c1), var(--c2));
}
 
/* Flecha que aparece al hacer hover */
.category-arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    opacity: 0;
    transform: translateX(-10px) scale(.6);
    transition: opacity .3s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.category-card:hover .category-arrow {
    opacity: 1;
    transform: none;
}
 
/* Brillo que cruza la tarjeta al hover */
.category-shine {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%);
    background-size: 250% 100%;
    background-position: 150% 0;
}
.category-card:hover .category-shine {
    animation: catShine .9s ease forwards;
}
@keyframes catShine { to { background-position: -50% 0; } }
 
/* ---------- Responsive ---------- */
@media (max-width: 1200px) { .category-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .category-row { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (max-width: 560px)  {
    .category-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-icon { width: 78px; height: 78px; margin-top: 18px; }
    .category-icon .category-img { padding: 9px; }
    .category-card span.category-name { font-size: 14px; }
}
 
/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
    .category-card,
    .category-card.is-in { opacity: 1; transform: none; transition: box-shadow .2s ease; }
    .category-icon .category-img,
    .category-card:hover .category-icon::before,
    .category-card:hover .category-shine { animation: none; }
}

/* ---------- Offers grid ---------- */
.offers-band {
    background: var(--turquesa);
    color: #fff;
}

.offers-band .section-head h2,
.offers-band .section-head p {
    color: #fff;
}

.offers-band .see-all {
    color: var(--amarillo);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.offer-card {
    background: var(--crema);
    color: var(--tinta);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.offer-media {
    aspect-ratio: 4/3;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.offer-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--papaya);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.offer-body {
    padding: 16px;
}

.offer-body h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.offer-body p {
    font-size: 13px;
    color: #6b5c56;
    margin: 0 0 12px;
}

.offer-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-now {
    font-weight: 800;
    font-size: 17px;
    color: var(--ciruela);
}

.price-old {
    font-size: 13px;
    color: #9b8b85;
    text-decoration: line-through;
}

.btn-add {
    width: 100%;
    padding: 10px;
    border-radius: 999px;
    background: var(--ciruela);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.btn-add:hover {
    background: var(--papaya);
}

/* candy shape helpers for placeholder art */
.shape-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

/* ---------- Recomendaciones ---------- */
.reco-section {
    background: #fff;
}

.reco-viewport {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin: 0 -40px;
    padding: 0 40px 10px;
}

.reco-viewport::-webkit-scrollbar {
    display: none;
}

@media (max-width:700px) {
    .reco-viewport {
        margin: 0 -18px;
        padding: 0 18px 10px;
    }
}

.reco-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

.reco-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid rgba(36, 28, 27, .08);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}

.reco-card:hover {
    box-shadow: 0 16px 28px rgba(61, 30, 66, .12);
    transform: translateY(-4px);
}

.reco-media {
    aspect-ratio: 1/1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
}

.reco-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.reco-body {
    padding: 14px;
}

.reco-body h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.reco-rating {
    font-size: 11px;
    color: var(--papaya);
    margin-bottom: 8px;
}

.reco-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reco-price {
    font-weight: 800;
    font-size: 15px;
    color: var(--ciruela);
}

.reco-add {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ciruela);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reco-add:hover {
    background: var(--papaya);
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 26px;
    border: 1px solid rgba(36, 28, 27, .07);
}

.stars {
    color: var(--amarillo);
    font-size: 15px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-card p.quote {
    font-size: 15px;
    color: #4a3d38;
    margin-bottom: 18px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
}

.avatar-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rosa);
}

/* ---------- Newsletter ---------- */
.newsletter {
    background: var(--amarillo);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.newsletter h2 {
    color: var(--ciruela);
    font-size: 26px;
    max-width: 20ch;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 14px 18px;
    border-radius: 999px;
    border: none;
    font-family: inherit;
    min-width: 240px;
}

/* ---------- Footer ---------- */
footer.site {
    background: var(--ciruela);
    color: rgba(255, 246, 234, .85);
    padding: 64px 24px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-grid h4 {
    color: #fff;
    font-family: 'Baloo 2', sans-serif;
    font-size: 15px;
    margin-bottom: 16px;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.footer-grid ul a:hover {
    color: var(--amarillo);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    nav.main-nav {
        display: none;
    }

    .search-pill {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .category-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .category-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .offer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   Extensiones propias para /catalogo y /producto.php (no existen en la
   plantilla original: ahi no hay selector de categorias obligatorio ni
   pagina de detalle de producto).
   ===================================================================== */

.category-card.is-active {
    border-color: var(--papaya);
    box-shadow: 0 0 0 2px var(--papaya);
}

.category-card small {
    display: block;
    color: #9b8b85;
    font-size: 12px;
    margin-top: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* =========================================================
   TARJETAS DE PRODUCTO · versión sobria (un solo color)
   Reemplaza tu bloque .product-card ... .product-body .btn-add
   (no requiere cambios en chocoProductCard)

   Para cambiar el color de TODAS las tarjetas, edita las 4 variables
   de abajo. Ideas sobrias:
     vino      #a8264f / #861d3e   (por defecto)
     ciruela   #6f2a5e / #561f48
     grafito   #3a3340 / #26212b
     verde     #2f6b4f / #235140
   ========================================================= */

.product-card {
    --pc-accent:      #a8264f;   /* botón, hover, borde */
    --pc-accent-dark: #861d3e;   /* hover del botón */
    --pc-soft:        #f6f3f2;   /* fondo de la imagen */
    --pc-tint:        #f9e9ee;   /* tono suave del acento */
}

/* ---------- Tarjeta ---------- */
.product-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(36, 28, 27, .08);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(36, 28, 27, .05);
    transition:
        box-shadow .3s ease,
        transform .35s cubic-bezier(.34, 1.56, .64, 1),
        border-color .3s ease,
        opacity .6s ease;
}

.product-card:hover,
.product-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(36, 28, 27, .16);
    box-shadow: 0 18px 32px -10px rgba(36, 28, 27, .22);
}

/* Estado inicial de la animación de entrada (lo activa productos.js) */
.product-card.pc-pre {
    opacity: 0;
    transform: translateY(28px) scale(.97);
}

/* ---------- Imagen ---------- */
.product-media {
    aspect-ratio: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    overflow: hidden;   
}

.product-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 7%;
    object-fit: contain;

    transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), filter .4s ease;
}
.product-card:hover .product-media img {
    transform: scale(1.08) translateY(-2px);

}

/* ---------- Badge ---------- */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    background: var(--pc-accent);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .9);
}

/* ---------- Cuerpo ---------- */
.product-body {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-brand {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8c817d;
}

.product-body h3 {
    margin-bottom: 4px;
    min-height: 38px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
    color: #241c1b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .25s ease;
}
.product-card:hover .product-body h3 { color: var(--pc-accent); }

.product-unit {
    margin-bottom: 10px;
    font-size: 12px;
    color: #9b8b85;
}

/* ---------- Precio ---------- */
.product-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 12px;
}
.product-price-row > :first-child {
    font-size: 19px;
    font-weight: 800;
    color: #241c1b;
}
.product-price-row del,
.product-price-row s,
.product-price-row .old,
.product-price-row [class*="old"] {
    font-size: 13px;
    font-weight: 500;
    color: #b3a5a0;
    text-decoration: line-through;
}

/* ---------- Botón agregar ---------- */
.product-body .btn-add,
.product-card .btn-add {
    width: 100%;
    margin-top: 0;
    padding: 11px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: var(--pc-accent);
    box-shadow: none;
    transition: background .25s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.product-card .btn-add:hover {
    background: var(--pc-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -6px rgba(134, 29, 62, .55);
}
.product-card .btn-add:active { transform: scale(.97); }
.product-card .btn-add:focus-visible { outline: 3px solid var(--pc-tint); outline-offset: 3px; }

/* ---------- Encabezado de "También te puede gustar" ---------- */
.reco-section .see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    color: #a8264f;
    background: #f9e9ee;
    transition: background .25s ease, color .25s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.reco-section .see-all:hover {
    color: #fff;
    background: #a8264f;
    transform: translateX(4px);
}

/* ---------- Móvil ---------- */
@media (max-width: 560px) {
    .product-card { border-radius: 16px; }
    .product-body { padding: 10px 12px 14px; }
    .product-body h3 { font-size: 13.5px; min-height: 35px; }
    .product-price-row > :first-child { font-size: 17px; }
    .product-badge { top: 8px; left: 8px; font-size: 11px; padding: 4px 10px; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
    .product-card, .product-card.pc-pre { opacity: 1; transform: none; transition: box-shadow .2s ease; }
    .product-card:hover .product-media img { transform: none; }
}
/* ---------- Buscador y filtros del catálogo ---------- */
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.catalog-search-form {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 260px;
    max-width: 560px;
    flex-wrap: wrap;
}

.catalog-search-form input {
    flex: 1;
    min-width: 160px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(36, 28, 27, .12);
    font-family: inherit;
    font-size: 14px;
}

.catalog-search-form select {
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid rgba(36, 28, 27, .12);
    font-family: inherit;
    font-size: 13px;
    background: #fff;
    color: var(--tinta);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--crema);
    color: var(--ciruela);
    border-radius: 999px;
    padding: 6px 8px 6px 14px;
    font-size: 13px;
    font-weight: 600;
}

.filter-chip a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(91, 31, 140, .12);
    font-size: 11px;
}

.filter-chip a:hover {
    background: var(--papaya);
    color: #fff;
}

.catalog-empty {
    text-align: center;
    padding: 64px 24px;
    color: #6b5c56;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(36, 28, 27, .12);
}

.pagination a:hover {
    background: var(--amarillo);
    border-color: var(--amarillo);
}

.pagination .is-active {
    background: var(--ciruela);
    color: #fff;
    border-color: var(--ciruela);
}

.breadcrumb {
    font-size: 13px;
    color: #6b5c56;
    margin-bottom: 20px;
}

.breadcrumb a:hover {
    color: var(--papaya);
}

/* ---------- Página de producto ---------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
}

@media (max-width: 800px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
}

.product-detail-media {
    aspect-ratio: 1/1;
 
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 110px;
    overflow: hidden;
}

.product-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-info h1 {
    font-size: clamp(22px, 3vw, 32px);
    color: var(--tinta);
    margin-bottom: 10px;
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 18px 0;
}

.product-detail-price .price-now {
    font-size: 30px;
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.meta-chip {
    background: var(--crema);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ciruela);
}

.related-section {
    margin-top: 72px;
}


/* =========================================================
   HERO SLIDER – versión llamativa
   Reemplaza tu bloque CSS "Corrección: mostrar el banner completo"
   ========================================================= */

#heroSlider.hero {
    --dur: 5000ms;                 /* debe coincidir con DURATION del JS */
    position: relative;
    display: grid;                 /* todas las slides en la misma celda */
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background: #e91527;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
}

#heroSlider .blob { display: none; }

/* ---------- Slides ---------- */
#heroSlider .hero-slide {
    grid-area: 1 / 1;
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transform: translateX(calc(var(--dir, 1) * 6%)) scale(1.1);
    filter: blur(10px) saturate(1.6) brightness(1.15);
    transition:
        opacity .8s ease,
        transform 1.1s cubic-bezier(.22, 1, .36, 1),
        filter .9s ease,
        visibility 0s linear .9s;
    will-change: transform, opacity, filter;
}

#heroSlider .hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 3;
    transform: none;
    filter: none;
    transition-delay: 0s;
}

#heroSlider .hero-slide.is-leaving {
    opacity: 0;
    visibility: visible;
    z-index: 2;
    transform: translateX(calc(var(--dir, 1) * -6%)) scale(.94);
    filter: blur(8px) brightness(.9);
    transition-delay: 0s;
}

/* ---------- Banner + Ken Burns + parallax ---------- */
#heroSlider .hero-banner-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
    transition: transform .25s ease-out;
}

#heroSlider .hero-banner-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    transform-origin: 50% 50%;
}

#heroSlider .hero-slide.is-active .hero-banner-image {
    animation: heroKenBurns calc(var(--dur) + 2500ms) ease-out forwards;
}

@keyframes heroKenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.07); }
}

/* ---------- Destello diagonal (shine) ---------- */
#heroSlider .hero-slide::after {
    content: "";
    position: absolute;
    top: -20%;
    left: 0;
    width: 28%;
    height: 140%;
    pointer-events: none;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 255, 255, .0) 30%,
        rgba(255, 255, 255, .55) 50%,
        rgba(255, 255, 255, .0) 70%,
        transparent 100%
    );
    mix-blend-mode: soft-light;
    transform: translateX(-160%) skewX(-18deg);
    opacity: 0;
}

#heroSlider .hero-slide.is-active::after {
    animation: heroShine 1.6s cubic-bezier(.4, 0, .2, 1) .5s 1 forwards;
}

@keyframes heroShine {
    0%   { transform: translateX(-160%) skewX(-18deg); opacity: 1; }
    100% { transform: translateX(520%)  skewX(-18deg); opacity: 1; }
}

/* ---------- Capa de partículas / chispas ---------- */
#heroSlider .hero-fx {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

#heroSlider .hero-spark {
    position: absolute;
    bottom: -8%;
    left: var(--x);
    width: var(--s);
    height: var(--s);
    background: var(--c);
    opacity: 0;
    filter: drop-shadow(0 0 6px var(--c));
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    animation: heroFloat var(--t) linear var(--d) infinite;
}

#heroSlider .hero-spark.is-dot {
    clip-path: circle(50%);
}

@keyframes heroFloat {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(.4); opacity: 0; }
    10%  { opacity: .95; }
    50%  { transform: translate3d(var(--dx), -55vh, 0) rotate(180deg) scale(1); opacity: .9; }
    100% { transform: translate3d(calc(var(--dx) * -1), -110vh, 0) rotate(360deg) scale(.5); opacity: 0; }
}

/* ---------- Flechas ---------- */
#heroSlider .hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 54px;
    height: 54px;
    margin-top: -27px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    color: #fff;
    background: rgba(233, 21, 39, .55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: pointer;
    opacity: 0;
    transition: opacity .3s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1), background .3s ease;
}

#heroSlider .hero-arrow.prev { left: 18px;  transform: translateX(-20px); }
#heroSlider .hero-arrow.next { right: 18px; transform: translateX(20px); }

#heroSlider:hover .hero-arrow,
#heroSlider:focus-within .hero-arrow {
    opacity: 1;
    transform: translateX(0);
}

#heroSlider .hero-arrow:hover {
    background: #ffd400;
    color: #e91527;
    transform: scale(1.12);
}

#heroSlider .hero-arrow svg { width: 24px; height: 24px; }

@media (hover: none) {
    #heroSlider .hero-arrow { opacity: .85; transform: none; width: 40px; height: 40px; margin-top: -20px; }
    #heroSlider .hero-arrow.prev { left: 8px; }
    #heroSlider .hero-arrow.next { right: 8px; }
}

/* ---------- Dots con barra de progreso ---------- */
#heroSlider .hero-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 6;
    display: flex;
    gap: 10px;
    padding: 8px 14px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(0, 0, 0, .25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

#heroSlider .hero-dot {
    position: relative;
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, .55);
    transition: width .45s cubic-bezier(.34, 1.56, .64, 1), background .3s;
}

#heroSlider .hero-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffd400;
    transform: scaleX(0);
    transform-origin: left center;
}

#heroSlider .hero-dot.is-active {
    width: 44px;
}

#heroSlider .hero-dot.is-active::after {
    animation: heroProgress var(--dur) linear forwards;
}

#heroSlider.is-paused .hero-dot.is-active::after {
    animation-play-state: paused;
}

@keyframes heroProgress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

#heroSlider .hero-dot:hover { background: #fff; }

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
    #heroSlider .hero-slide,
    #heroSlider .hero-slide.is-leaving {
        transform: none;
        filter: none;
        transition: opacity .4s ease, visibility 0s linear .4s;
    }
    #heroSlider .hero-slide.is-active .hero-banner-image,
    #heroSlider .hero-slide.is-active::after,
    #heroSlider .hero-spark { animation: none; }
    #heroSlider .hero-fx { display: none; }
    #heroSlider .hero-banner-link { transform: none; }
}

/* =========================================================
   BENEFICIOS · "Para el antojo, la fiesta o el negocio"
   ========================================================= */

.benefits {
    position: relative;
    padding: 56px 20px 68px;
    overflow: hidden;
    background: #fff5f0;
    border-top: 4px solid #ffb877;
}

/* confeti suave de fondo */
.benefits::before,
.benefits::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}
.benefits::before { width: 260px; height: 260px; left: -90px; top: -90px;   background: radial-gradient(circle, rgba(255, 63, 180, .14), transparent 70%); }
.benefits::after  { width: 300px; height: 300px; right: -110px; bottom: -120px; background: radial-gradient(circle, rgba(0, 184, 245, .16), transparent 70%); }

.benefits-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
}

/* ---------- Título ---------- */
.benefits-title {
    margin: 0 auto 46px;
    text-align: center;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    font-weight: 800;
    line-height: 1.2;
    color: #2b1d2e;
}
.benefits-title svg {
    display: block;
    width: 150px;
    height: 12px;
    margin: 8px auto 0;
    overflow: visible;
}
.benefits-title path {
    fill: none;
    stroke: #ff3fb4;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
}
.benefits.is-in .benefits-title path {
    animation: benDraw 1s ease .3s forwards;
}
@keyframes benDraw { to { stroke-dashoffset: 0; } }

/* ---------- Grid ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 24px;
}

/* paleta por item */
.benefit               { --a: #ff3fb4; --b: #ffe0f3; }
.benefit:nth-child(2)  { --a: #ffb300; --b: #fff0c2; }
.benefit:nth-child(3)  { --a: #22c55e; --b: #d9f8e3; }
.benefit:nth-child(4)  { --a: #00b8f5; --b: #d6f3ff; }

.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 6px 10px;
    text-align: center;
    opacity: 0;
    transform: translateY(28px);
}
.benefits.is-in .benefit {
    opacity: 1;
    transform: none;
    transition:
        opacity .6s ease calc(var(--i, 0) * 120ms),
        transform .7s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i, 0) * 120ms);
}

/* ---------- Icono con blob que se transforma ---------- */
.benefit-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
}
.benefit-icon::before {
    content: "";
    position: absolute;
    inset: 4px;
    background: var(--b);
    border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
    animation: benMorph 7s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -1.6s);
    transition: background .3s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes benMorph {
    0%, 100% { border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; }
    33%      { border-radius: 44% 56% 42% 58% / 56% 44% 58% 42%; }
    66%      { border-radius: 52% 48% 60% 40% / 42% 58% 46% 54%; }
}

.benefit-icon svg {
    position: relative;
    width: 92px;
    height: 92px;
    overflow: visible;
    animation: benFloat 3.4s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -.7s);
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes benFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

.benefit svg .ln {
    fill: none;
    stroke: #2b1d2e;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* chispa decorativa */
.benefit-icon::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: var(--a);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    animation: benTwinkle 2.4s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -.5s);
}
@keyframes benTwinkle {
    0%, 100% { transform: scale(.3) rotate(0deg);  opacity: 0; }
    50%      { transform: scale(1)  rotate(90deg); opacity: 1; }
}

.benefit:hover .benefit-icon::before { background: var(--a); transform: scale(1.06); }
.benefit:hover .benefit-icon svg     { animation: benWiggle .7s ease-in-out infinite; }
@keyframes benWiggle {
    0%, 100% { transform: rotate(-6deg) scale(1.08); }
    50%      { transform: rotate(6deg)  scale(1.14); }
}

/* ---------- Texto ---------- */
.benefit h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #2b1d2e;
}
.benefit p {
    margin: -8px 0 0;
    max-width: 240px;
    font-size: 14px;
    line-height: 1.5;
    color: #6b5a6e;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; }
}
@media (max-width: 480px) {
    .benefits { padding: 44px 14px 52px; }
    .benefit-icon { width: 108px; height: 108px; }
    .benefit-icon svg { width: 76px; height: 76px; }
    .benefit h3 { font-size: 15px; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
    .benefit, .benefits.is-in .benefit { opacity: 1; transform: none; transition: none; }
    .benefit-icon::before, .benefit-icon::after, .benefit-icon svg,
    .benefit:hover .benefit-icon svg { animation: none; }
    .benefits-title path { stroke-dashoffset: 0; animation: none; }
}

/* =========================================================
   CINTA DE MARCAS · v2
   Reemplaza TODO tu bloque "Carrusel de marcas (marquee infinito)".
   Todas las reglas llevan el prefijo .brands-section para ganarle
   a cualquier CSS viejo de .brand-* que haya quedado en tu hoja.
   (marcas.php no cambia: mismo HTML y mismo JS.)
   ========================================================= */

.brands-section {
    position: relative;
    padding: 72px 0 24px;
    overflow: hidden;
    background: #fff;
}

/* ---------- Escenario ---------- */
.brands-section .brands-stage {
    position: relative;
    margin-top: 8px;
    padding: 84px 0 92px;
}

/* Las cintas ocupan TODO el ancho de la pantalla (sin bordes visibles) */
.brands-section .brand-ribbon {
    position: relative;
    width: 120vw;
    margin-left: calc(50% - 60vw);
}

/* ---------- Cinta principal (morada) ---------- */
.brands-section .brand-ribbon--main {
    z-index: 2;
    padding: 26px 0;
    transform: rotate(-2deg);
    background: linear-gradient(100deg, #4a1a78 0%, #7a1fb8 50%, #4a1a78 100%);
    box-shadow: 0 24px 30px -18px rgba(74, 26, 120, .65);
}
.brands-section .brand-ribbon--main::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .22) 50%, transparent 58%);
    background-size: 260% 100%;
    background-position: 150% 0;
    animation: brandSheen 8s ease-in-out infinite;
}
@keyframes brandSheen {
    0%        { background-position: 150% 0; }
    45%, 100% { background-position: -60% 0; }
}

/* ---------- Cinta de fondo (amarilla) ---------- */
.brands-section .brand-ribbon--back {
    position: absolute;
    z-index: 1;
    top: 50%;
    padding: 15px 0;
    transform: translateY(-50%) rotate(3deg);
    background: #ffd400;
    box-shadow: 0 10px 16px -8px rgba(0, 0, 0, .25);
}
.brands-section .brand-chip {
    flex: 0 0 auto;
    padding: 0 26px;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #4a1a78;
}
.brands-section .brand-chip::before {
    content: "★";
    margin-right: 26px;
    color: #e0206a;
}

/* ---------- Viewport + track ---------- */
.brands-section .brand-viewport {
    overflow: hidden;
    flex: none;
    padding: 16px 0;
    /* anula la máscara/difuminado del CSS anterior */
    -webkit-mask-image: none;
    mask-image: none;
}

.brands-section .brand-track {
    display: flex;
    gap: 0;
    width: max-content;
    will-change: transform;
    animation: brandScroll var(--brand-dur, 40s) linear infinite;
}
.brands-section .brand-track.is-reverse { animation-direction: reverse; }

@keyframes brandScroll {
    to { transform: translateX(-50%); }
}

.brands-section .brand-group {
    display: flex;
    flex: 0 0 auto;
    gap: 26px;
    padding-right: 26px;
}
.brands-section .brand-ribbon--back .brand-group { gap: 0; padding-right: 0; }

.brands-section .brand-ribbon:hover .brand-track { animation-play-state: paused; }
/* =========================================================
   CINTA DE MARCAS · v2
   Reemplaza TODO tu bloque "Carrusel de marcas (marquee infinito)".
   Todas las reglas llevan el prefijo .brands-section para ganarle
   a cualquier CSS viejo de .brand-* que haya quedado en tu hoja.
   (marcas.php no cambia: mismo HTML y mismo JS.)
   ========================================================= */

.brands-section {
    position: relative;
    padding: 72px 0 24px;
    overflow: hidden;
    background: #fff;
}

/* ---------- Escenario ---------- */
.brands-section .brands-stage {
    position: relative;
    margin-top: 8px;
    padding: 84px 0 92px;
}

/* Las cintas ocupan TODO el ancho de la pantalla (sin bordes visibles) */
.brands-section .brand-ribbon {
    position: relative;
    width: 120vw;
    margin-left: calc(50% - 60vw);
}

/* ---------- Cinta principal (morada) ---------- */
.brands-section .brand-ribbon--main {
    z-index: 2;
    padding: 26px 0;
    transform: rotate(-2deg);
    background: linear-gradient(100deg, #4a1a78 0%, #7a1fb8 50%, #4a1a78 100%);
    box-shadow: 0 24px 30px -18px rgba(74, 26, 120, .65);
}
.brands-section .brand-ribbon--main::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .22) 50%, transparent 58%);
    background-size: 260% 100%;
    background-position: 150% 0;
    animation: brandSheen 8s ease-in-out infinite;
}
@keyframes brandSheen {
    0%        { background-position: 150% 0; }
    45%, 100% { background-position: -60% 0; }
}

/* ---------- Cinta de fondo (amarilla) ---------- */
.brands-section .brand-ribbon--back {
    position: absolute;
    z-index: 1;
    top: 50%;
    padding: 15px 0;
    transform: translateY(-50%) rotate(3deg);
    background: #ffd400;
    box-shadow: 0 10px 16px -8px rgba(0, 0, 0, .25);
}
.brands-section .brand-chip {
    flex: 0 0 auto;
    padding: 0 26px;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #4a1a78;
}
.brands-section .brand-chip::before {
    content: "★";
    margin-right: 26px;
    color: #e0206a;
}

/* ---------- Viewport + track ---------- */
.brands-section .brand-viewport {
    overflow: hidden;
    flex: none;
    padding: 16px 0;
    /* anula la máscara/difuminado del CSS anterior */
    -webkit-mask-image: none;
    mask-image: none;
}

.brands-section .brand-track {
    display: flex;
    gap: 0;
    width: max-content;
    will-change: transform;
    animation: brandScroll var(--brand-dur, 40s) linear infinite;
}
.brands-section .brand-track.is-reverse { animation-direction: reverse; }

@keyframes brandScroll {
    to { transform: translateX(-50%); }
}

.brands-section .brand-group {
    display: flex;
    flex: 0 0 auto;
    gap: 26px;
    padding-right: 26px;
}
.brands-section .brand-ribbon--back .brand-group { gap: 0; padding-right: 0; }

.brands-section .brand-ribbon:hover .brand-track { animation-play-state: paused; }

/* ---------- Tarjeta de marca (colores a pleno, sin gris ni opacidad) ---------- */
.brands-section .brand-tile {
    --bc: #e0206a;
    flex: 0 0 auto;
    width: 190px;
    height: 104px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .45);
    text-decoration: none;
    /* anula grayscale/opacidad del CSS anterior */
    filter: none;
    opacity: 1;
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease, opacity .3s ease, filter .3s ease;
}

/* color del nombre cuando aún no hay logo */
.brands-section .brand-tile:nth-child(6n+1) { --bc: #e0206a; }
.brands-section .brand-tile:nth-child(6n+2) { --bc: #6b21a8; }
.brands-section .brand-tile:nth-child(6n+3) { --bc: #ea7a00; }
.brands-section .brand-tile:nth-child(6n+4) { --bc: #0a93d1; }
.brands-section .brand-tile:nth-child(6n+5) { --bc: #1f9d4d; }
.brands-section .brand-tile:nth-child(6n+6) { --bc: #e5301c; }

.brands-section .brand-logo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: brandBob 4.2s ease-in-out infinite;
}
.brands-section .brand-tile:nth-child(3n+2) .brand-logo { animation-delay: -1.4s; }
.brands-section .brand-tile:nth-child(3n+3) .brand-logo { animation-delay: -2.8s; }
@keyframes brandBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

.brands-section .brand-wordmark {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: .02em;
    text-align: center;
    text-transform: uppercase;
    color: var(--bc);
}

/* ---------- Hover ---------- */
.brands-section .brand-tile:hover,
.brands-section .brand-tile:focus-visible {
    opacity: 1;
    filter: none;
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 22px 30px -10px rgba(0, 0, 0, .55), 0 0 0 4px #ffd400;
    outline: none;
}
.brands-section .brand-tile:hover .brand-logo { animation-play-state: paused; }

/* las demás se atenúan un poco mientras miras una */
.brands-section .brand-ribbon--main:hover .brand-tile:not(:hover):not(:focus-visible) {
    opacity: .75;
}

/* ---------- Móvil ---------- */
@media (max-width: 700px) {
    .brands-section { padding: 52px 0 16px; }
    .brands-section .brands-stage { padding: 60px 0 66px; }
    .brands-section .brand-ribbon--main { padding: 16px 0; transform: rotate(-1.6deg); }
    .brands-section .brand-ribbon--back { padding: 10px 0; transform: translateY(-50%) rotate(2.4deg); }
    .brands-section .brand-group { gap: 16px; padding-right: 16px; }
    .brands-section .brand-tile { width: 142px; height: 82px; padding: 10px 14px; border-radius: 16px; }
    .brands-section .brand-wordmark { font-size: 15px; }
    .brands-section .brand-chip { font-size: 14px; padding: 0 18px; }
    .brands-section .brand-chip::before { margin-right: 18px; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
    .brands-section .brand-track { animation: none; }
    .brands-section .brand-viewport { overflow-x: auto; }
    .brands-section .brand-group[aria-hidden="true"] { display: none; }
    .brands-section .brand-ribbon--main::after,
    .brands-section .brand-logo { animation: none; }
}

/* ==========================================
   CHOCOLANDIA - PROMOCIÓN DÍA DE MUERTOS
   Estilos aislados para no afectar otras
   secciones de la tienda.
========================================== */

.cdm-promo {
    --cdm-naranja: #ff8a19;
    --cdm-morado: #40145d;
    --cdm-rosa: #ed55b0;
    --cdm-amarillo: #ffdc67;

    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr)
                           minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(20px, 4vw, 48px);
    width: 100%;
    min-height: 310px;
    padding: 52px clamp(24px, 4vw, 56px) 32px;
    /* margin: 20px auto;*/
    margin-top: 90px; /* espacio para que la imagen sobresalga por arriba */
    z-index: 2;
    overflow: visible;
    isolation: isolate;
    box-sizing: border-box;
     /*border-radius: 28px; */
    color: #fff;
    background:
        radial-gradient(
            circle at 15% 90%,
            rgba(255, 138, 25, .22),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 15%,
            rgba(237, 85, 176, .2),
            transparent 30%
        ),
        linear-gradient(120deg, #240b39, #48145e 58%, #251039);
    box-shadow: 0 12px 32px rgba(43, 13, 57, .17);
}

/* Textura decorativa */
.cdm-promo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .18;
    background-image:
        radial-gradient(#ffdc67 1px, transparent 1.5px);
    background-size: 23px 23px;
    mask-image: linear-gradient(
        90deg, #000, transparent 55%, #000
    );
}

/* Papel picado superior */
.cdm-papel-picado {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 34px;
    display: flex;
    justify-content: space-around;
    overflow: hidden;
    pointer-events: none;
}

.cdm-papel-picado span {
    display: grid;
    place-items: center;
    width: 13%;
    height: 42px;
    color: #40145d;
    font-size: 19px;
    font-weight: 900;
    background: var(--cdm-naranja);
    clip-path: polygon(
        0 0, 100% 0, 100% 82%,
        85% 100%, 70% 82%, 50% 100%,
        30% 82%, 15% 100%, 0 82%
    );
}

.cdm-papel-picado span:nth-child(2),
.cdm-papel-picado span:nth-child(5) {
    background: var(--cdm-rosa);
}

.cdm-papel-picado span:nth-child(3),
.cdm-papel-picado span:nth-child(6) {
    background: var(--cdm-amarillo);
}

/* Área del producto */
.cdm-producto {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 235px;
}

.cdm-halo {
    position: absolute;
    width: min(90%, 280px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 138, 25, .30),
        rgba(237, 85, 176, .10) 55%,
        transparent 72%
    );
    filter: blur(8px);
}

.cdm-imagen-link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 235px;
    text-decoration: none;
}

.cdm-imagen {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 386px; /* sobresale ~85px por encima de la sección, sobre la cinta */
    object-fit: contain;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, .35));
    transition: transform .35s ease, filter .35s ease;
}

.cdm-producto:hover .cdm-imagen {
    transform: translateY(-5px) scale(1.035);
    filter: drop-shadow(0 20px 20px rgba(0, 0, 0, .4));
}

.cdm-sin-imagen {
    position: relative;
    font-size: 100px;
}

.cdm-etiqueta {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-top: 10px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 220, 103, .5);
    border-radius: 50px;
    color: var(--cdm-amarillo);
    background: rgba(28, 8, 43, .72);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

/* Contenido */
.cdm-contenido {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.cdm-sobretitulo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--cdm-amarillo);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.cdm-sobretitulo span {
    font-size: 19px;
}

.cdm-titulo {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -.8px;
    overflow-wrap: anywhere;
}

.cdm-marca {
    margin-top: 10px;
    color: #ffb7e5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.cdm-descripcion {
    max-width: 510px;
    margin: 13px 0;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    line-height: 1.65;
}

.cdm-detalles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0 20px;
}

.cdm-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 50px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-size: 11px;
}

/* Precio y botón */
.cdm-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.cdm-precio {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cdm-precio-label {
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.cdm-precio strong {
    color: var(--cdm-amarillo);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 900;
}

.cdm-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 50px;
    color: #2b103b;
    background: linear-gradient(135deg, #ffdc67, #ff9c35);
    box-shadow: 0 5px 16px rgba(255, 138, 25, .22);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.cdm-boton:hover {
    color: #2b103b;
    transform: translateY(-3px);
    box-shadow: 0 9px 22px rgba(255, 138, 25, .35);
}

.cdm-boton span {
    font-size: 20px;
    transition: transform .2s ease;
}

.cdm-boton:hover span {
    transform: translateX(4px);
}

/* Calaverita decorativa */
.cdm-esquina {
    position: absolute;
    right: 18px;
    top: 46px;
    color: rgba(255, 255, 255, .10);
    font-size: 65px;
    pointer-events: none;
}

.cdm-decor {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.cdm-decor-1 {
    top: 43%;
    left: 42%;
    color: rgba(255, 220, 103, .6);
    font-size: 23px;
}

.cdm-decor-2 {
    bottom: 8px;
    left: 12px;
    color: rgba(255, 138, 25, .5);
    font-size: 35px;
}

.cdm-decor-3 {
    right: 28%;
    bottom: 18px;
    color: rgba(237, 85, 176, .65);
    font-size: 28px;
}

/* Tabletas */
@media (max-width: 760px) {
    .cdm-promo {
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
        gap: 18px;
        padding: 48px 22px 25px;
        border-radius: 22px;
    }

    .cdm-producto,
    .cdm-imagen-link {
        min-height: 180px;
        height: 180px;
    }

    .cdm-promo {
        margin-top: 60px;
    }

    .cdm-imagen {
        max-height: 235px;
    }

    .cdm-titulo {
        font-size: clamp(22px, 3.5vw, 29px);
    }

    .cdm-descripcion {
        font-size: 13px;
    }

    .cdm-pie {
        align-items: flex-start;
    }

    .cdm-boton {
        padding: 0 16px;
        font-size: 12px;
    }
}

/* Celulares */
@media (max-width: 520px) {
    .cdm-promo {
        grid-template-columns: 1fr;
        gap: 17px;
        padding: 48px 20px 25px;
    }

    .cdm-producto {
        min-height: 190px;
    }

    .cdm-imagen-link {
        height: 190px;
    }

    .cdm-imagen {
        max-width: 300px;
    }

    .cdm-etiqueta {
        margin-top: 6px;
    }

    .cdm-contenido {
        text-align: center;
    }

    .cdm-sobretitulo {
        justify-content: center;
    }

    .cdm-titulo {
        font-size: 28px;
    }

    .cdm-descripcion {
        margin-left: auto;
        margin-right: auto;
    }

    .cdm-detalles {
        justify-content: center;
    }

    .cdm-pie {
        justify-content: center;
        align-items: center;
        gap: 17px;
    }

    .cdm-precio {
        text-align: left;
    }

    .cdm-esquina {
        top: 38px;
        right: 10px;
        font-size: 43px;
    }

    .cdm-decor-1 {
        display: none;
    }
}

/* Respeta la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .cdm-imagen,
    .cdm-boton,
    .cdm-boton span {
        transition: none;
    }
}