/* Solo se carga cuando CHRISTMAS_MODE=true. */
.christmas-mode {
    --primary: #a8132f;
    --primary-hover: #8a0f26;
    --primary-dark: #8a0f26;
    --rgba-primary-2: rgba(168, 19, 47, .2);
    --secondary: #43a66a;
    --secondary-hover: #368655;
    --light-dark: #f9dbe3;
    --xmas-pink: #ef5a8c;
    --xmas-gold: #f3d48a;
    --gradient1: linear-gradient(307deg, #f9dbe3 1.9%, #fbf3f4 67.57%);
    --gradient2: linear-gradient(307deg, #f9dbe3 1.9%, #f5e9cc 85.96%);
}

/* Franja superior opcional (CHRISTMAS_MESSAGE). */
.christmas-bar {
    background: var(--secondary);
    color: #fff;
    padding: 8px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
}
.christmas-bar span { color: var(--xmas-gold); margin: 0 8px; }

/* ---------- Header rojo ---------- */
.christmas-mode .site-header .header-nav .nav > li.menu-item-has-children > a::after,
.christmas-mode .site-header .header-nav .nav > li.sub-menu-down > a::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2343a66a' d='M12 0L15.4 8.6L24 12L15.4 15.4L12 24L8.6 15.4L0 12L8.6 8.6Z'/%3E%3C/svg%3E");
}
.christmas-mode .site-header .main-bar,
.christmas-mode .site-header .is-fixed .main-bar {
    background: var(--primary);
    border-bottom-color: transparent !important;
}
.christmas-mode .site-header .logo-header img { filter: brightness(0) invert(1); }
.christmas-mode .site-header .header-nav .logo-header img { filter: none; }
.christmas-mode .site-header .extra-nav .extra-cell > * { --title: #fff; --white: #fff; color: #fff; }
.christmas-mode .site-header .extra-nav .header-right > li > a,
.christmas-mode .site-header .extra-nav .header-right > li > a i { color: #fff; }
.christmas-mode .site-header .login-link .nav-link { border-color: #fff !important; }
.christmas-mode .site-header .extra-nav .bg-primary { background: #fff; color: var(--primary); }
.christmas-mode .site-header .navbar-toggler.navicon span { background: #fff; }
.christmas-mode .site-header .navbar-toggler.navicon.open span { background: #a8132f; }
/* Móvil: la barra de iconos (Inicio/Registro, buscar, favoritos, carrito) va fija abajo
   con fondo blanco; como aquí los iconos son blancos, la barra pasa a rojo. */
@media (max-width: 767px) {
    .christmas-mode .site-header .extra-nav { background: var(--primary); }
}
@media (min-width: 992px) {
    .christmas-mode .site-header .header-nav .nav > li > a { --title: #fff; --white: #fff; color: #fff; }
    .christmas-mode .site-header .header-nav .nav > li:hover > a,
    .christmas-mode .site-header .header-nav .nav > li.active > a { color: var(--xmas-gold) !important; }
    .christmas-mode .site-header .header-nav .nav > li { border-bottom-color: transparent; }
    .christmas-mode .site-header .header-nav .nav > li > hr { display: none; }
}

/* ---------- Banner de portada: fidelidad al mockup aprobado ---------- */
.xmas-hero {
    position: relative;
    display: block;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: 740px;
    height: clamp(740px, calc(100svh - 88px), 860px);
    padding: 0;
    background: #fffaf3;
}
.xmas-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1740px;
    height: 100%;
    padding: 0 clamp(38px, 5.6vw, 95px);
    margin: 0 auto;
}
.xmas-hero__row {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 0;
    gap: 0;
}
.xmas-hero__col-text {
    position: relative;
    z-index: 5;
    flex: 0 0 44%;
    max-width: 44%;
    min-width: 0;
    padding: 0 0 6px;
    margin-top: -8px;
}
.xmas-hero__col-media {
    position: absolute;
    z-index: 3;
    top: 1%;
    right: -3.5vw;
    bottom: 0;
    left: 37%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
/* Tres collares flotando: cada uno girado y a distinta altura, con un vaivén suave
   desfasado. El giro base va en --tilt para que la animación lo conserve. */
.xmas-hero__float {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96%;
    height: 64%;
    margin-right: 7vw; /* la columna sobresale 3.5vw por la derecha; el resto deja aire */
}
.xmas-hero__piece {
    --tilt: 0deg;
    display: block;
    width: auto;
    height: 100%;
    max-width: none;
    min-width: 0;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(58, 38, 49, .18));
    transform: rotate(var(--tilt));
    animation: xmas-float 6s ease-in-out infinite;
}
.xmas-hero__piece--1 { --tilt: -9deg; height: 86%; margin-top: 9%; margin-right: 1%; animation-delay: -1s; }
.xmas-hero__piece--2 { --tilt: 3deg; height: 100%; margin-top: -9%; position: relative; z-index: 1; animation-duration: 7s; animation-delay: -3s; }
.xmas-hero__piece--3 { --tilt: 10deg; height: 84%; margin-top: 13%; margin-left: 2%; animation-duration: 6.5s; animation-delay: -5s; }
@keyframes xmas-float {
    0%, 100% { transform: translateY(0) rotate(var(--tilt)); }
    50% { transform: translateY(-16px) rotate(calc(var(--tilt) + 2deg)); }
}
@media (prefers-reduced-motion: reduce) {
    .xmas-hero__piece { animation: none; }
}
.xmas-hero__bg {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    pointer-events: none;
}
.xmas-hero__social { z-index: 5; padding: 6px; border: 1px solid #a8132f1a; border-radius: 16px; background: #fffdfbea; box-shadow: 0 4px 18px #5215260a; }
.xmas-hero__social ul { gap: 6px; }
.xmas-hero__social li { padding: 0; }
.xmas-hero__social a { display: flex; align-items: center; justify-content: center; min-width: 32px; padding: 14px 8px; border-radius: 10px; color: var(--primary) !important; font-size: 10px; letter-spacing: .12em; transition: background .2s; }
.xmas-hero__social a:hover { background: #f9dbe380; }
.xmas-hero__social a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.xmas-hero__eyebrow {
    margin: 0 0 13px 35px;
    color: #111;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-family: Lufga, Arial, sans-serif;
    font-size: clamp(15px, 1.07vw, 19px);
    font-weight: 400;
    line-height: 1.43;
}
.xmas-hero__title {
    --xmas-title: clamp(72px, 6.1vw, 110px);
    position: relative;
    width: max-content;
    max-width: none;
    margin: 0 0 12px -16px;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: var(--xmas-title);
    font-weight: 400;
    line-height: .95;
    letter-spacing: -.025em;
}
.xmas-hero__title > span { display: block; }
.xmas-hero__title-red {
    position: relative;
    display: inline-block !important;
    font-size: .93em;
    color: #b0002a;
}
.xmas-hero__title-line {
    display: flex !important;
    align-items: flex-start;
    gap: .08em;
}
.xmas-hero__title-pink {
    margin: .31em 0 0 .22em;
    color: #f45190;
    font-size: .53em;
    white-space: nowrap;
}
.xmas-hero__title-green { position: relative; color: var(--secondary); font-size: 1em; }
.xmas-hero__heart { position: absolute; font-size: .26em; color: #b0002a; }
.xmas-hero__title-red .xmas-hero__heart { top: -.08em; right: 26%; }
.xmas-hero__title-green .xmas-hero__heart { top: -.05em; left: 48%; }
.xmas-hero__ribbon {
    display: block;
    width: 5.15em;
    max-width: 100%;
    height: auto;
    margin: -.15em 0 0 -.17em;
    fill: none;
    stroke: #f45190;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.xmas-hero__ribbon .xmas-hero__knot { fill: #f45190; stroke: none; }
.xmas-hero__text {
    max-width: 490px;
    margin: 0 0 27px;
    color: #101010;
    font-family: Lufga, Arial, sans-serif;
    font-size: clamp(19px, 1.24vw, 23px);
    font-weight: 400;
    line-height: 1.42;
    letter-spacing: -.025em;
}
.xmas-hero__btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    min-height: 66px;
    padding: 15px 28px;
    border: 2px solid;
    border-radius: 10px;
    font-family: Lufga, Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .2s, color .2s, transform .2s;
}
.xmas-hero__btn:hover { transform: translateY(-2px); }
.xmas-hero__btn--solid { color: #fff; background: #b80030; border-color: #b80030; }
.xmas-hero__btn--solid:hover { color: #fff; background: #990027; }
.xmas-hero__btn--green { color: #fff; background: var(--secondary); border-color: var(--secondary); }
.xmas-hero__btn--green:hover { color: #fff; background: var(--secondary-hover); border-color: var(--secondary-hover); }

/* Portátil: composición en dos columnas sin textos tapados. */
@media (max-width: 1499px) {
    .xmas-hero__inner { padding-left: clamp(55px, 7.3vw, 104px); padding-right: 20px; }
    .xmas-hero__title { --xmas-title: clamp(75px, 6.1vw, 96px); }
    .xmas-hero__col-media { left: 39%; right: -5%; }
    .xmas-hero__eyebrow { margin-left: 28px; }
    .xmas-hero__text { max-width: 420px; }
}
@media (max-width: 1199px) {
    .xmas-hero { min-height: 650px; height: auto; }
    .xmas-hero__row { min-height: 650px; }
    .xmas-hero__col-text { flex-basis: 47%; max-width: 47%; }
    .xmas-hero__title { --xmas-title: clamp(63px, 6.6vw, 79px); }
    .xmas-hero__text { font-size: 18px; max-width: 385px; }
    .xmas-hero__col-media { left: 41%; right: -6%; top: 6%; }
    .xmas-hero__eyebrow { font-size: 14px; }
    .xmas-hero__btn { min-height: 53px; font-size: 14px; padding: 13px 19px; }
}
@media (max-width: 991px) {
    .xmas-hero__bg { top: auto; height: 62%; object-position: 72% center; }
    .xmas-hero { height: auto; min-height: 0; padding: 44px 0 10px; }
    .xmas-hero__inner { padding: 0 8%; }
    .xmas-hero__row { display: block; min-height: 0; }
    .xmas-hero__col-text { width: 100%; max-width: 680px; margin: 0 auto; padding: 0; }
    .xmas-hero__title { --xmas-title: clamp(66px, 11vw, 105px); }
    .xmas-hero__eyebrow { margin-left: 15px; }
    .xmas-hero__col-media { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 100%; max-width: 780px; height: auto; margin: 8px auto 0; }
    .xmas-hero__float { width: 100%; height: clamp(220px, 56vw, 460px); margin: 0 auto; }
    .xmas-hero__text { max-width: 560px; }
}
@media (max-width: 767px) {
    .xmas-hero__bg { transform: translateY(40px); }
}
@media (max-width: 575px) {
    .xmas-hero { padding-top: 35px; }
    .xmas-hero__inner { padding: 0 5%; }
    .xmas-hero__title { --xmas-title: clamp(47px, 10.4vw, 64px); margin-left: 0; }
    .xmas-hero__eyebrow { font-size: 12px; letter-spacing: .13em; margin-left: 10px; }
    .xmas-hero__text { max-width: 100%; font-size: 17px; line-height: 1.43; margin-bottom: 20px; }
    .xmas-hero__ribbon { margin-top: -.08em; }
    .xmas-hero__btn { min-height: 48px; font-size: 12px; padding: 12px 14px; gap: 8px; }
    .xmas-hero__btn svg { width: 17px; }
    .xmas-hero__col-media { width: 100%; max-width: none; margin: 18px auto 0; }
}

/* ---------- Resto de la portada y pie ---------- */
/* Categorías destacadas sobre rosa. */
.christmas-mode .category-section { background-color: #f1c7da; margin-top: 100px; }
.christmas-mode .category-section .icon-button .word-rotate-box { background-color: #f1c7da; }
/* El círculo va a top:-7% del bloque; con la fila "Navidad" el bloque crece y el círculo
   subía dejando un hueco bajo las alas. En px, la base de las alas queda en el borde. */
.christmas-mode .category-section .icon-button { top: -67px; }
.christmas-mode .category-section .icon-button:after {
    background-image: url('data:image/svg+xml,<svg width="516" height="252" viewBox="0 0 516 252" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="257.602" cy="126" r="126" fill="%23f1c7da"/><path d="M0 124.603C81.2 112.003 128.8 74.2031 182 25.2031L135.8 124.603H0Z" fill="%23f1c7da"/><path d="M515.203 124.603C434.003 112.003 386.403 74.2031 333.203 25.2031L379.403 124.603H515.203Z" fill="%23f1c7da"/></svg>');
}
@media (max-width: 991px) { .christmas-mode .category-section { margin-top: 40px; } }
/* Tarjeta "Navidad": más alta que la proporción original (2559x614), así que se
   recortan los lados. El recorte (>125px por lado) se lleva también las esquinas
   negras que trae la imagen, por eso el redondeo va en px. En pantallas estrechas
   se recorta más y el encuadre se corre a la derecha para no cortar el texto. */
.xmas-cat-img { display: block; height: auto; aspect-ratio: 3.6 / 1; object-fit: cover; object-position: center; border: 4px solid #fff; border-radius: 30px; box-shadow: 0 15px 30px rgba(0, 0, 0, .1); transition: transform .4s ease; }
@media (max-width: 767px) { .xmas-cat-img { aspect-ratio: 2.4 / 1; object-position: 60% center; border-radius: 20px; } }
a:hover > .xmas-cat-img { transform: translateY(-4px); }
/* Tira de texto en movimiento y pie de página en rojo. */
.christmas-mode .home-ticker { background-color: var(--primary); }
@media (max-width: 767px) {
    .christmas-mode .home-ticker { margin-top: -10px; }
}
.christmas-mode footer,
.christmas-mode footer .bg-secondary { background-color: var(--primary); }
.christmas-mode footer .hover\:text-secondary:hover { color: var(--primary); }
