/*
Theme Name: Midnight Drops — Christmas
Template: hello-elementor
Description: Tema de temporada de Midnight Drops: aldea nevada bajo la luna, neón cian, rojo y violeta, reno saltando, copos de nieve y nevada animada. Solo presentación; requiere el mu-plugin midnight-drops-core.
Version: 1.0.0
Author: Midnight Drops
Text Domain: midnight-drops-christmas
*/

/* ===================================================== */
/* === TOKENS ========================================== */
/* ===================================================== */
:root {
    --md-bg: #060B24;
    --md-surface: #0E1640;
    --md-surface-2: #152058;
    --md-fg: #F4F7FF;
    --md-muted: #A7B3DB;
    --md-success: #4ADE80;

    /* Neón de temporada */
    --md-xm-cyan: #3FE9FF;
    --md-xm-red: #FF3D5A;
    --md-xm-green: #5CFF8F;
    --md-xm-purple: #A64DFF;
    --md-xm-gold: #FFD166;

    /* Nombres históricos (los usa contenido viejo) → paleta de temporada */
    --md-neon-magenta: var(--md-xm-red);
    --md-neon-violet: var(--md-xm-purple);
    --md-neon-cyan: var(--md-xm-cyan);

    /* Tokens semánticos del core */
    --md-accent: var(--md-xm-purple);
    --md-accent-2: var(--md-xm-red);
    --md-highlight: var(--md-xm-cyan);
    --md-price: var(--md-xm-green);
    --md-gradient: linear-gradient(135deg, #FF3D5A 0%, #A64DFF 55%, #3FE9FF 130%);

    --md-font-display: 'Lilita One', 'Sora', system-ui, sans-serif;
    --md-font-heading: 'Sora', system-ui, sans-serif;
    --md-font-body: 'Inter', system-ui, sans-serif;
    --md-radius: 20px;
    --md-radius-pill: 999px;
    --md-header-height: 72px;
    --md-gutter: 16px;

    --md-glow-cyan: 0 0 6px rgba(63, 233, 255, .9), 0 0 18px rgba(63, 233, 255, .6), 0 0 42px rgba(63, 233, 255, .35);
    --md-glow-red: 0 0 6px rgba(255, 61, 90, .9), 0 0 18px rgba(255, 61, 90, .6), 0 0 42px rgba(255, 61, 90, .35);
    --md-glow-purple: 0 0 6px rgba(166, 77, 255, .9), 0 0 18px rgba(166, 77, 255, .6), 0 0 42px rgba(166, 77, 255, .35);
}

/* ===================================================== */
/* === BASE ============================================ */
/* ===================================================== */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    margin: 0;
    background-color: var(--md-bg);
    color: var(--md-fg);
    font-family: var(--md-font-body);
    line-height: 1.6;
    position: relative;
    /* clip (no hidden): hidden convierte al body en contenedor de scroll y el
       header deja de ser sticky. */
    overflow-x: clip;
}
html.md-no-scroll,
body.md-no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--md-font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--md-fg);
    letter-spacing: -0.01em;
}
a { color: var(--md-xm-cyan); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--md-xm-purple); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--md-xm-purple); color: #fff; }
:focus-visible { outline: 2px solid var(--md-xm-cyan); outline-offset: 3px; }

.md-skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; padding: .5rem 1rem; background: var(--md-xm-purple); color: #fff; }
.md-skip-link:focus { left: 1rem; top: 1rem; }

/* Cielo de invierno: neblina azul + estrellas que titilan, detrás de todo. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 60% 45% at 15% 10%, rgba(63, 233, 255, .16), transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 35%, rgba(255, 61, 90, .08), transparent 60%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(166, 77, 255, .22), transparent 65%),
        var(--md-bg);
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(1px 1px at 20% 30%, #fff, transparent),
        radial-gradient(1px 1px at 60% 70%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 85% 15%, #b8f6ff, transparent),
        radial-gradient(1px 1px at 40% 85%, #fff, transparent),
        radial-gradient(1px 1px at 10% 60%, #ffe9a8, transparent),
        radial-gradient(1px 1px at 75% 45%, #fff, transparent);
    background-size: 340px 340px;
    opacity: .5;
    animation: md-xm-twinkle 6s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes md-xm-twinkle { from { opacity: .25; } to { opacity: .7; } }

/* Helpers */
.md-container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 var(--md-gutter); }
@media (min-width: 768px) { .md-container { padding: 0 1.5rem; } }
.md-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.md-grid--gallery { gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .md-grid--gallery { gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }

/* ===================================================== */
/* === HEADER ========================================== */
/* ===================================================== */
.md-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(6, 11, 36, .6);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(166, 77, 255, .15);
    transition: background .25s ease, box-shadow .25s ease;
}
.md-header.is-scrolled { background: rgba(6, 11, 36, .9); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
/* Copos en las esquinas del header (giran despacio) */
.md-header__flake {
    position: absolute;
    top: -18px;
    width: 84px;
    opacity: .5;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(63, 233, 255, .5));
    animation: md-xm-spin 48s linear infinite;
}
.md-header__flake--l { left: -16px; }
.md-header__flake--r { right: -16px; animation-name: md-xm-spin-r; }
.md-header__inner {
    position: relative;
    max-width: 1280px;
    min-height: var(--md-header-height);
    margin: 0 auto;
    padding: .6rem var(--md-gutter);
    display: flex;
    align-items: center;
    gap: 1rem;
}
@media (min-width: 768px) { .md-header__inner { padding: .75rem 1.5rem; } }
.md-header__brand { display: inline-flex; align-items: center; gap: .6rem; flex: 0 0 auto; line-height: 1; }
.md-header__logo { height: 40px; width: auto; filter: drop-shadow(0 0 8px rgba(255, 61, 90, .45)); transition: filter .3s ease; }
.md-header__brand:hover .md-header__logo { filter: drop-shadow(0 0 14px rgba(255, 61, 90, .85)); }
.md-header__wordmark { display: flex; align-items: baseline; gap: .45rem; font-family: var(--md-font-heading); white-space: nowrap; }
.md-header__wordmark-top { color: var(--md-fg); font-weight: 800; font-size: 1rem; letter-spacing: .16em; text-shadow: 0 0 8px rgba(255, 255, 255, .4); }
.md-header__wordmark-bottom {
    color: var(--md-xm-cyan);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: .16em;
    text-shadow: var(--md-glow-cyan);
    animation: md-xm-flicker 7s linear infinite;
}
@media (max-width: 480px) {
    .md-header__wordmark-top, .md-header__wordmark-bottom { font-size: .82rem; letter-spacing: .12em; }
    .md-header__logo { height: 34px; }
}
@media (max-width: 359px) { .md-header__wordmark { display: none; } }

.md-header__nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.md-menu { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.md-menu li { margin: 0; padding: 0; }
.md-menu a {
    position: relative;
    padding: .35rem 0;
    color: var(--md-fg);
    font-family: var(--md-font-heading);
    font-weight: 500;
    font-size: .95rem;
}
.md-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    border-radius: 2px;
    background: var(--md-xm-purple);
    box-shadow: var(--md-glow-purple);
    transform: scaleX(0);
    transition: transform .25s ease;
}
.md-menu a:hover { color: var(--md-fg); }
.md-menu a:hover::after,
.md-menu .current-menu-item > a::after,
.md-menu .current_page_item > a::after { transform: scaleX(1); }
.md-menu__cta { padding: .55rem 1.15rem !important; font-size: .8rem !important; }
.md-header__tools { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }

.md-header__toggle { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.md-header__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: var(--md-fg); transition: transform .3s ease, opacity .2s ease, top .3s ease, background .25s ease; }
.md-header__toggle span:nth-child(1) { top: 14px; }
.md-header__toggle span:nth-child(2) { top: 21px; }
.md-header__toggle span:nth-child(3) { top: 28px; }
.md-header__toggle.is-active span:nth-child(1) { top: 21px; transform: rotate(45deg); background: var(--md-xm-cyan); }
.md-header__toggle.is-active span:nth-child(2) { opacity: 0; }
.md-header__toggle.is-active span:nth-child(3) { top: 21px; transform: rotate(-45deg); background: var(--md-xm-red); }

@media (max-width: 880px) {
    .md-header__toggle { display: block; }
    .md-header__tools { margin-left: auto; } /* el nav pasa a fixed: las herramientas van a la derecha */
    .md-header__nav {
        /* Fixed dentro de un header con backdrop-filter: unidades de viewport. */
        position: fixed;
        top: var(--md-header-height);
        left: 0;
        width: 100vw;
        height: calc(100dvh - var(--md-header-height));
        box-sizing: border-box;
        z-index: 40;
        overflow-y: auto;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        margin: 0;
        padding: 2.5rem var(--md-gutter) calc(2.5rem + env(safe-area-inset-bottom));
        background:
            url("assets/images/copo-1.webp") right -50px bottom -40px / 220px no-repeat,
            linear-gradient(160deg, #10184a 0%, #060B24 70%);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .3s ease, visibility .3s;
    }
    .md-header__nav.is-open { transform: none; visibility: visible; }
    .md-menu { flex-direction: column; gap: 1.5rem; width: 100%; text-align: center; }
    .md-menu li { width: 100%; }
    .md-menu a { display: inline-block; padding: .5rem 0; font-family: var(--md-font-display); font-size: 2.1rem; letter-spacing: .04em; }
    .md-menu__cta { font-size: 1rem !important; padding: 1rem 2rem !important; }
}

/* ===================================================== */
/* === BOTONES ========================================= */
/* ===================================================== */
.md-btn-primary, .md-btn-secondary, .md-btn-ghost, .md-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 44px;
    padding: .85rem 1.7rem;
    border: 0;
    border-radius: var(--md-radius-pill);
    font-family: var(--md-font-heading);
    font-weight: 700;
    font-size: .9rem;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
}
.md-btn-primary { background: linear-gradient(135deg, #FF3D5A, #A64DFF); color: #fff; box-shadow: 0 0 24px rgba(255, 61, 90, .4); }
.md-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 44px rgba(255, 61, 90, .7); }
.md-btn-secondary { background: transparent; color: var(--md-xm-cyan); border: 1px solid var(--md-xm-cyan); }
.md-btn-secondary:hover { color: var(--md-xm-cyan); background: rgba(63, 233, 255, .08); box-shadow: 0 0 24px rgba(63, 233, 255, .35); }
.md-btn-ghost { background: rgba(20, 16, 58, .85); color: #fff; border: 1px solid rgba(166, 77, 255, .45); box-shadow: inset 0 0 18px rgba(166, 77, 255, .25); }
.md-btn-ghost:hover { color: #fff; border-color: var(--md-xm-purple); box-shadow: inset 0 0 18px rgba(166, 77, 255, .35), 0 0 26px rgba(166, 77, 255, .5); transform: translateY(-2px); }
.md-whatsapp-btn { background: linear-gradient(135deg, #25D366, #128C7E); color: #fff !important; box-shadow: 0 0 22px rgba(37, 211, 102, .45); }
.md-whatsapp-btn:hover { transform: translateY(-2px); box-shadow: 0 0 38px rgba(37, 211, 102, .75); }
.md-whatsapp-btn::before {
    content: '';
    width: 1.05em;
    height: 1.05em;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M12.04 2c-5.52 0-10 4.48-10 10 0 1.76.46 3.4 1.27 4.83L2 22l5.32-1.27c1.36.74 2.93 1.16 4.6 1.16 5.52 0 10-4.48 10-10s-4.36-9.89-9.88-9.89zm5.84 14.13c-.25.7-1.45 1.34-2.04 1.42-.52.08-1.18.11-1.91-.12-.44-.14-1.01-.32-1.74-.64-3.06-1.32-5.06-4.41-5.21-4.61-.15-.2-1.25-1.66-1.25-3.17 0-1.51.79-2.25 1.07-2.56.28-.31.61-.39.81-.39h.59c.19 0 .45-.07.7.54.25.61.85 2.12.93 2.27.07.15.13.32.02.52-.11.2-.16.32-.31.5-.16.18-.33.4-.47.54-.16.16-.32.33-.14.65.18.32.81 1.33 1.74 2.16 1.2 1.07 2.21 1.4 2.53 1.56.32.16.5.13.69-.08.18-.21.79-.92.99-1.23.21-.32.42-.27.7-.16.29.11 1.81.85 2.12 1.01.31.16.52.24.6.37.06.13.06.78-.18 1.49z'/></svg>") center / contain no-repeat;
}

/* ===================================================== */
/* === HERO DE NAVIDAD ================================= */
/* ===================================================== */
.md-xm-hero {
    --px: 0;
    --py: 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(calc(100svh - var(--md-header-height)), 860px);
    display: flex;
    align-items: center;
    padding: 2.5rem var(--md-gutter) 4.5rem;
}
.md-xm-hero__bg {
    position: absolute;
    inset: -3%;
    z-index: -4;
    background: var(--md-xm-bg-m, var(--md-xm-bg)) center 40% / cover no-repeat;
    filter: saturate(1.05) brightness(.85);
    transform: translate(calc(var(--px) * -14px), calc(var(--py) * -10px)) scale(1.02);
    transition: transform .4s ease-out;
    animation: md-xm-zoom 26s ease-in-out infinite alternate;
}
@media (min-width: 768px) { .md-xm-hero__bg { background-image: var(--md-xm-bg); } }
/* Oscurece bordes y base para que el texto se lea sobre la aldea */
.md-xm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, rgba(6, 11, 36, .7) 100%),
        linear-gradient(180deg, rgba(6, 11, 36, .3) 0%, rgba(6, 11, 36, .05) 45%, var(--md-bg) 100%);
}
/* Halo de la luna que late (la luna está en la foto, arriba al centro) */
.md-xm-hero__moon {
    position: absolute;
    z-index: -3;
    top: 0;
    left: 50%;
    width: 320px;
    height: 320px;
    margin-left: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 240, 255, .5) 0%, rgba(63, 233, 255, .18) 40%, transparent 70%);
    filter: blur(8px);
    animation: md-xm-moon 5s ease-in-out infinite;
    pointer-events: none;
}
@media (max-width: 767px) { .md-xm-hero__moon { top: -2%; width: 200px; height: 200px; margin-left: -100px; } }
/* Bruma de nieve en dos capas */
.md-xm-hero__bruma {
    position: absolute;
    left: -50%;
    right: -50%;
    bottom: -40px;
    z-index: -2;
    height: 260px;
    background:
        radial-gradient(ellipse 30% 55% at 20% 60%, rgba(200, 225, 255, .22), transparent 70%),
        radial-gradient(ellipse 25% 45% at 55% 70%, rgba(170, 210, 255, .18), transparent 70%),
        radial-gradient(ellipse 35% 50% at 85% 55%, rgba(200, 225, 255, .2), transparent 70%);
    filter: blur(14px);
    pointer-events: none;
    animation: md-xm-bruma 38s linear infinite;
}
.md-xm-hero__bruma--2 { bottom: 20px; height: 200px; opacity: .7; animation-duration: 55s; animation-direction: reverse; }
/* Destellos que titilan sobre la aldea */
.md-xm-destellos { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.md-xm-destellos span {
    position: absolute;
    left: calc(2% + var(--i) * 7.2%);
    top: calc(8% + var(--i) * 4.5%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px #fff, 0 0 16px var(--md-xm-cyan);
    opacity: 0;
    animation: md-xm-destello calc(2.6s + var(--i) * .35s) ease-in-out infinite;
    animation-delay: calc(var(--i) * -.7s);
}
.md-xm-destellos span:nth-child(odd) { top: calc(72% - var(--i) * 4%); }
.md-xm-destellos span:nth-child(3n) { background: #fff3c4; box-shadow: 0 0 8px #fff, 0 0 16px var(--md-xm-gold); }
.md-xm-destellos span:nth-child(4n) { width: 3px; height: 3px; box-shadow: 0 0 6px #fff, 0 0 12px var(--md-xm-red); }

/* Copos en las esquinas (giran despacio y laten) */
.md-xm-copo { position: absolute; z-index: -1; width: clamp(110px, 18vw, 250px); opacity: .85; pointer-events: none; animation: md-xm-spin 70s linear infinite, md-xm-brillo 4s ease-in-out infinite alternate; }
.md-xm-copo--tl { top: -5%; left: -4%; }
.md-xm-copo--tr { top: -5%; right: -4%; animation-name: md-xm-spin-r, md-xm-brillo; animation-delay: 0s, -1s; }
.md-xm-copo--bl { bottom: -5%; left: -4%; animation-name: md-xm-spin-r, md-xm-brillo; animation-delay: 0s, -2s; }
.md-xm-copo--br { bottom: -5%; right: -4%; animation-delay: 0s, -3s; }
@media (max-width: 767px) { .md-xm-copo--bl, .md-xm-copo--br { display: none; } }

.md-xm-hero__inner {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    justify-items: center;
    text-align: center;
}
.md-xm-hero__title { margin: 0; line-height: 1; }
.md-xm-hero__title img {
    width: min(86vw, 520px);
    filter: drop-shadow(0 0 10px rgba(63, 233, 255, .55)) drop-shadow(0 0 26px rgba(63, 233, 255, .3));
    animation: md-xm-flicker 6s linear infinite;
}
.md-xm-neon-text {
    display: inline-block;
    font-family: var(--md-font-display);
    font-weight: 400;
    font-size: clamp(2.8rem, 11vw, 6rem);
    line-height: .95;
    letter-spacing: .04em;
    color: #dffbff;
    text-shadow: var(--md-glow-cyan);
    animation: md-xm-flicker 6s linear infinite;
}
.md-xm-hero__center { display: grid; justify-items: center; gap: 1.1rem; }
.md-xm-hero__logo { position: relative; width: min(52vw, 210px); }
.md-xm-hero__logo img {
    width: 100%;
    /* El logo es PNG con transparencia: solo brillo, sin fundir fondos. */
    filter: drop-shadow(0 0 18px rgba(255, 61, 90, .35)) drop-shadow(0 0 36px rgba(92, 255, 143, .25));
    animation: md-xm-float 6s ease-in-out infinite;
}
.md-xm-sparkle { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px var(--md-xm-cyan); animation: md-xm-sparkle 3s ease-in-out infinite; }
.md-xm-sparkle--1 { top: 6%; left: -6%; }
.md-xm-sparkle--2 { top: 40%; right: -8%; animation-delay: -1s; background: #fff3c4; box-shadow: 0 0 10px #fff, 0 0 20px var(--md-xm-gold); }
.md-xm-sparkle--3 { bottom: 4%; left: 12%; animation-delay: -2s; box-shadow: 0 0 10px #fff, 0 0 20px var(--md-xm-red); }
.md-xm-hero__tagline { margin: 0; max-width: 34rem; color: #dbe3ff; font-size: 1rem; line-height: 1.6; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.md-xm-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .9rem 1.1rem; margin-top: .4rem; }
.md-xm-btn-catalogo { flex-direction: column; gap: .3rem; padding: .65rem 1.6rem .6rem; }
.md-xm-btn-catalogo small {
    display: inline-block;
    padding: .14rem .6rem;
    border-radius: var(--md-radius-pill);
    background: var(--md-xm-green);
    color: #06301a;
    font-family: var(--md-font-display);
    font-size: .78rem;
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(92, 255, 143, .6);
}
.md-xm-hero__wa { position: relative; display: inline-flex; }
.md-xm-copo-btn {
    position: absolute;
    right: -24px;
    top: -24px;
    width: 44px;
    pointer-events: none;
    animation: md-xm-spin 14s linear infinite, md-xm-brillo 3s ease-in-out infinite alternate;
}
.md-xm-reno {
    position: absolute;
    z-index: 0;
    top: 12.6rem; /* móvil: junto al logo, debajo del título de dos líneas */
    right: -22px;
    width: min(25vw, 100px);
    pointer-events: none;
}
.md-xm-reno img {
    width: 100%;
    /* El reno es neón rosa pálido: el brillo rojo lo enciende. */
    filter: saturate(1.6) drop-shadow(0 0 6px rgba(255, 150, 170, .95)) drop-shadow(0 0 16px rgba(255, 61, 90, .8)) drop-shadow(0 0 36px rgba(255, 61, 90, .45));
    animation: md-xm-reno 6s ease-in-out infinite;
}
.md-xm-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    color: var(--md-muted);
    font-size: 1.4rem;
    transform: translateX(-50%);
    animation: md-xm-scroll 2.2s ease-in-out infinite;
}

@media (min-width: 900px) {
    .md-xm-hero { padding: 3rem 1.5rem 5rem; }
    .md-xm-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 440px) minmax(0, 1fr);
        align-items: center;
        gap: 2rem;
    }
    .md-xm-hero__title { align-self: center; justify-self: start; transform: translate(calc(var(--px) * 10px), calc(var(--py) * 8px)); transition: transform .4s ease-out; }
    .md-xm-hero__title img { width: min(32vw, 430px); }
    .md-xm-neon-text { font-size: clamp(3rem, 5.5vw, 5.4rem); text-align: left; }
    .md-xm-hero__logo { width: 220px; }
    .md-xm-reno {
        position: relative;
        top: auto;
        right: auto;
        justify-self: end;
        width: min(24vw, 320px);
        transform: translate(calc(var(--px) * 26px), calc(var(--py) * 18px));
        transition: transform .4s ease-out;
    }
}

/* ===================================================== */
/* === DECORACIÓN GLOBAL: nevada y copo colgante ======= */
/* ===================================================== */
.md-xm-sky { position: fixed; inset: 0; z-index: 45; overflow: hidden; pointer-events: none; }
.md-xm-nieve {
    position: absolute;
    top: -8vh;
    left: calc(1% + var(--i) * 5.5%);
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, .9), 0 0 14px rgba(63, 233, 255, .45);
    opacity: 0;
    will-change: transform;
    animation: md-xm-caer calc(12s + var(--i) * 1.1s) linear infinite;
    animation-delay: calc(var(--i) * -2.3s);
}
.md-xm-nieve:nth-child(2n) { width: 5px; height: 5px; animation-name: md-xm-caer-b; }
.md-xm-nieve:nth-child(3n) { width: 9px; height: 9px; }
.md-xm-nieve:nth-child(5n) { box-shadow: 0 0 6px rgba(255, 255, 255, .9), 0 0 14px rgba(255, 209, 102, .5); }
.md-xm-nieve--copo { width: 30px !important; height: auto !important; background: none; box-shadow: none; }
.md-xm-nieve--copo img { width: 100%; filter: drop-shadow(0 0 6px rgba(63, 233, 255, .7)); animation: md-xm-spin 9s linear infinite; }
@media (max-width: 767px) {
    .md-xm-nieve:nth-child(n+13) { display: none; }
    .md-xm-nieve--copo { width: 22px !important; }
}
/* Copo colgando de un hilo que se mece (esquina superior derecha) */
.md-xm-colgante {
    position: absolute;
    top: var(--md-header-height);
    right: 12%;
    width: 1px;
    height: 110px;
    background: linear-gradient(rgba(220, 235, 255, .6), rgba(220, 235, 255, .15));
    transform-origin: top center;
    animation: md-xm-pendulo 6s ease-in-out infinite;
}
.md-xm-colgante img { position: absolute; bottom: -16px; left: -16px; width: 32px; filter: drop-shadow(0 0 7px rgba(63, 233, 255, .8)); animation: md-xm-spin 12s linear infinite; }
@media (max-width: 767px) { .md-xm-colgante { right: 18%; height: 70px; } }

/* Copo asomado junto al botón flotante de WhatsApp */
.md-xm-peek {
    position: fixed;
    right: 4.6rem;
    bottom: 1.3rem;
    z-index: 99;
    width: 40px;
    pointer-events: none;
    animation: md-xm-spin 16s linear infinite, md-xm-brillo 3.2s ease-in-out infinite alternate;
    transition: bottom .3s ease;
}
.md-has-sticky .md-xm-peek { bottom: calc(5.8rem + env(safe-area-inset-bottom)); }

/* ===================================================== */
/* === SECCIONES ======================================= */
/* ===================================================== */
.md-section { position: relative; padding: 3.5rem 0; }
@media (min-width: 768px) { .md-section { padding: 5rem 0; } }
.md-section__header { max-width: 720px; margin: 0 auto 2.25rem; text-align: center; }
.md-section__eyebrow {
    display: inline-block;
    margin-bottom: .6rem;
    color: var(--md-xm-gold);
    font-family: var(--md-font-heading);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 209, 102, .5);
}
.md-section__title {
    margin: 0;
    font-family: var(--md-font-display);
    font-weight: 400;
    font-size: clamp(2.1rem, 7vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: .03em;
    color: #dffbff;
    text-shadow: 0 0 6px rgba(63, 233, 255, .8), 0 0 22px rgba(63, 233, 255, .4);
}
.md-section__title--xl { font-size: clamp(2.6rem, 9vw, 4.6rem); }
.md-section--alt { background: linear-gradient(180deg, transparent, rgba(14, 22, 64, .6), transparent); }

/* ===================================================== */
/* === TARJETA DE PRODUCTO ============================= */
/* ===================================================== */
.md-producto-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: var(--md-radius);
    background: linear-gradient(180deg, rgba(21, 32, 88, .92), rgba(14, 22, 64, .75));
    border: 1px solid rgba(166, 77, 255, .22);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.md-producto-card::after {
    /* Copo sutil en la esquina que aparece al pasar el mouse */
    content: '';
    position: absolute;
    top: -14px;
    right: -14px;
    width: 80px;
    height: 80px;
    background: url("assets/images/copo-1.webp") center / contain no-repeat;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.md-producto-card:hover { transform: translateY(-6px); border-color: var(--md-xm-cyan); box-shadow: 0 14px 44px rgba(63, 233, 255, .18), 0 0 0 1px rgba(63, 233, 255, .3); }
.md-producto-card:hover::after { opacity: .55; }
.md-producto-card__link { display: block; flex: 1 1 auto; color: inherit; text-decoration: none; }
.md-producto-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--md-surface-2); }
.md-producto-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .55s ease; }
.md-producto-card:hover .md-producto-card__media img { transform: scale(1.06); }
.md-producto-card__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 3rem; color: var(--md-xm-purple); }
.md-producto-card__badge {
    position: absolute;
    top: .7rem;
    left: .7rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #A64DFF, #7B2BFF);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-family: var(--md-font-heading);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(166, 77, 255, .5);
}
.md-producto-card__body { padding: .9rem .9rem .6rem; }
.md-producto-card__title { margin: 0 0 .35rem; font-size: .95rem; color: var(--md-fg); }
.md-producto-card__price { margin: 0; color: var(--md-xm-green); font-family: var(--md-font-heading); font-weight: 800; font-size: 1.05rem; text-shadow: 0 0 12px rgba(92, 255, 143, .35); }
.md-producto-card__actions { padding: 0 .9rem .9rem !important; }
@media (min-width: 700px) {
    .md-producto-card__body { padding: 1.2rem 1.25rem .8rem; }
    .md-producto-card__title { font-size: 1.08rem; }
    .md-producto-card__price { font-size: 1.25rem; }
    .md-producto-card__actions { padding: 0 1.25rem 1.25rem !important; }
}

/* ===================================================== */
/* === CATÁLOGO ======================================== */
/* ===================================================== */
.md-xm-archive { position: relative; padding: 3rem 0 4rem; overflow: hidden; }
.md-xm-archive__intro { margin: .9rem auto 0; max-width: 520px; color: var(--md-muted); }
.md-catalogo__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.4rem; }
.md-xm-cats { display: flex; gap: .5rem; margin: 0 0 1.75rem; padding-bottom: .25rem; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 768px) { .md-xm-cats { justify-content: center; flex-wrap: wrap; } }
.md-xm-cats a {
    flex: 0 0 auto;
    padding: .5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(166, 77, 255, .35);
    color: var(--md-fg);
    font-size: .85rem;
    font-weight: 600;
}
.md-xm-cats a:hover, .md-xm-cats a.is-active { border-color: var(--md-xm-cyan); color: var(--md-xm-cyan); box-shadow: 0 0 14px rgba(63, 233, 255, .3); }
.md-xm-empty { text-align: center; color: var(--md-muted); }
.md-xm-pagination { margin-top: 2.5rem; text-align: center; }
.nav-links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 .75rem;
    border-radius: 12px;
    background: var(--md-surface);
    border: 1px solid rgba(166, 77, 255, .25);
    color: var(--md-fg);
}
.page-numbers:hover, .page-numbers.current { background: var(--md-xm-purple); border-color: transparent; color: #fff; }

/* ===================================================== */
/* === FICHA: retoques de temporada sobre el core ====== */
/* ===================================================== */
.md-season-christmas .md-l-hero__title { font-size: clamp(1.8rem, 6vw, 2.9rem); }
.md-season-christmas .md-l-chip { color: var(--md-xm-gold); border-color: rgba(255, 209, 102, .5); }
.md-season-christmas .md-gallery__track { border-color: rgba(63, 233, 255, .25); box-shadow: 0 0 60px rgba(166, 77, 255, .22); }
.md-season-christmas .md-l-oferta { overflow: hidden; }
.md-season-christmas .md-l-oferta::before {
    content: '';
    position: absolute;
    top: 1rem;
    right: 2%;
    width: 120px;
    height: 120px;
    background: url("assets/images/copo-2.webp") center / contain no-repeat;
    filter: drop-shadow(0 0 12px rgba(63, 233, 255, .7));
    opacity: .9;
    animation: md-xm-spin 40s linear infinite;
    pointer-events: none;
}
@media (max-width: 767px) { .md-season-christmas .md-l-oferta::before { width: 70px; height: 70px; top: .25rem; } }
.md-season-christmas .md-pack__badge { background: linear-gradient(135deg, #FF3D5A, #c81e45); box-shadow: 0 0 12px rgba(255, 61, 90, .6); }

/* ===================================================== */
/* === CÓMO FUNCIONA y CTA ============================= */
/* ===================================================== */
.md-how__steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; padding: 0; list-style: none; }
.md-how__step {
    padding: 1.9rem 1.5rem;
    text-align: center;
    border-radius: var(--md-radius);
    background: linear-gradient(180deg, rgba(21, 32, 88, .85), rgba(14, 22, 64, .5));
    border: 1px solid rgba(166, 77, 255, .22);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.md-how__step:hover { transform: translateY(-4px); border-color: var(--md-xm-gold); box-shadow: 0 8px 32px rgba(255, 209, 102, .18); }
.md-how__num { display: inline-block; margin-bottom: .75rem; font-family: var(--md-font-display); font-size: 3rem; line-height: 1; color: var(--md-xm-gold); text-shadow: 0 0 14px rgba(255, 209, 102, .6); }
.md-how__step h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.md-how__step p { margin: 0; color: var(--md-muted); }

.md-cta { position: relative; overflow: hidden; padding: 5rem var(--md-gutter); text-align: center; }
.md-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(166, 77, 255, .25), transparent 65%); pointer-events: none; }
.md-cta__inner { position: relative; z-index: 1; }
.md-cta__inner h2 { margin: 0 0 .6rem; font-family: var(--md-font-display); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.4rem); color: #dffbff; text-shadow: var(--md-glow-cyan); }
.md-cta__inner p { margin: 0 0 1.75rem; color: var(--md-muted); }
.md-xm-cta__reno {
    position: absolute;
    top: 1rem;
    left: -180px;
    width: 130px;
    opacity: .85;
    filter: saturate(1.6) drop-shadow(0 0 6px rgba(255, 150, 170, .9)) drop-shadow(0 0 18px rgba(255, 61, 90, .7));
    animation: md-xm-cross 18s linear infinite;
    pointer-events: none;
}

/* ===================================================== */
/* === FOOTER ========================================== */
/* ===================================================== */
.md-footer {
    position: relative;
    z-index: 1;
    padding: 3rem var(--md-gutter) calc(2rem + env(safe-area-inset-bottom));
    background: rgba(6, 11, 36, .75);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(166, 77, 255, .2);
}
.md-footer__copo { position: absolute; top: -34px; left: 8%; width: 60px; animation: md-xm-spin 36s linear infinite, md-xm-brillo 4s ease-in-out infinite alternate; }
.md-footer__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; text-align: center; }
.md-footer__logo { width: 110px; height: auto; filter: drop-shadow(0 0 12px rgba(255, 61, 90, .3)); }
.md-footer__menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.md-footer__menu a { color: var(--md-muted); font-family: var(--md-font-heading); font-size: .9rem; }
.md-footer__menu a:hover { color: var(--md-xm-cyan); }
.md-footer__copy { margin: 0; color: var(--md-muted); font-size: .85rem; }

/* ===================================================== */
/* === WHATSAPP FLOTANTE =============================== */
/* ===================================================== */
.md-floating-whatsapp {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 20px rgba(37, 211, 102, .5);
    animation: md-xm-ring 2.5s ease-out infinite;
}
.md-floating-whatsapp:hover { transform: scale(1.08); }
.md-floating-whatsapp svg { width: 30px; height: 30px; fill: #fff; }

/* ===================================================== */
/* === HELLO ELEMENTOR / ELEMENTOR ===================== */
/* ===================================================== */
.site-header, .site-footer, .site-description { display: none !important; }
/* Páginas de Elementor que no son la portada (p. ej. legales): mismo ancho que las estándar. */
body[class*="elementor-page-"]:not(.home) .site-main { width: 100%; margin-inline: auto; padding-inline: var(--md-gutter); }
@media (min-width: 1200px) { body[class*="elementor-page-"]:not(.home) .site-main { max-width: 1140px; } }
.md-xm-portada-elementor .elementor-widget-md-xm-hero { width: 100%; }

/* ===================================================== */
/* === KEYFRAMES ======================================= */
/* ===================================================== */
@keyframes md-xm-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: .55; }
}
@keyframes md-xm-zoom { from { scale: 1; } to { scale: 1.06; } }
@keyframes md-xm-moon {
    0%, 100% { opacity: .65; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.08); }
}
@keyframes md-xm-bruma { from { transform: translateX(0); } to { transform: translateX(33%); } }
@keyframes md-xm-destello { 0%, 100% { opacity: 0; scale: .4; } 50% { opacity: 1; scale: 1; } }
@keyframes md-xm-spin   { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes md-xm-spin-r { from { rotate: 0deg; } to { rotate: -360deg; } }
@keyframes md-xm-brillo {
    from { filter: drop-shadow(0 0 5px rgba(63, 233, 255, .45)); }
    to   { filter: drop-shadow(0 0 14px rgba(63, 233, 255, .95)); }
}
@keyframes md-xm-float  { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes md-xm-sparkle { 0%, 100% { opacity: 0; scale: .3; } 50% { opacity: 1; scale: 1; } }
@keyframes md-xm-reno {
    0%   { translate: 0 0; rotate: -2deg; }
    25%  { translate: -8px -18px; rotate: 0deg; }
    50%  { translate: 0 -6px; rotate: 2deg; }
    75%  { translate: 8px -20px; rotate: 0deg; }
    100% { translate: 0 0; rotate: -2deg; }
}
@keyframes md-xm-scroll { 0%, 100% { translate: -50% 0; opacity: .35; } 50% { translate: -50% 10px; opacity: 1; } }
@keyframes md-xm-caer {
    0%   { transform: translate(0, 0); opacity: 0; }
    6%   { opacity: .9; }
    50%  { transform: translate(22px, 56vh); }
    94%  { opacity: .9; }
    100% { transform: translate(-16px, 112vh); opacity: 0; }
}
@keyframes md-xm-caer-b {
    0%   { transform: translate(0, 0); opacity: 0; }
    6%   { opacity: .8; }
    50%  { transform: translate(-26px, 54vh); }
    94%  { opacity: .8; }
    100% { transform: translate(14px, 112vh); opacity: 0; }
}
@keyframes md-xm-pendulo { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
@keyframes md-xm-cross {
    0%   { translate: 0 0; }
    25%  { translate: calc(25vw + 40px) -22px; }
    50%  { translate: calc(50vw + 80px) 0; }
    75%  { translate: calc(75vw + 120px) -22px; }
    100% { translate: calc(100vw + 320px) 0; }
}
@keyframes md-xm-ring {
    0%   { box-shadow: 0 4px 20px rgba(37, 211, 102, .5), 0 0 0 0 rgba(37, 211, 102, .5); }
    70%  { box-shadow: 0 4px 20px rgba(37, 211, 102, .5), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, .5), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Sin animaciones: quien lo pide en su sistema o si se apagan en el Personalizador. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .md-xm-sky, .md-xm-destellos, .md-xm-cta__reno { display: none; }
}
.md-xm-sin-decoraciones .md-xm-destellos,
.md-xm-sin-decoraciones .md-xm-cta__reno { display: none; }
