:root {
    /* Fondos Oscuros Premium (Alineados con el azul marino muy oscuro del logo) */
    --bg-primary: #07070A;
    /* Un negro con un levísimo toque azul/púrpura */
    --bg-secondary: #101016;
    /* Fondo de tarjetas, un gris azulado muy oscuro */

    /* Bordes y Separadores */
    --border-color: #21212D;
    /* Sutil, pero acompaña la paleta fría */

    /* Textos */
    --text-primary: #FFFFFF;
    --text-secondary: #9494A6;
    /* Gris lavado con tinte frío */

    /* Colores de Acento (Extraídos del Logo) */
    --purple-primary: #A855F7;
    /* El púrpura eléctrico del texto "PSYCHO" */
    --purple-hover: #D946EF;
    /* El tono magenta/fucsia brillante para hovers */
    --purple-pastel: #E9D5FF;
    /* El color lila claro del centro de la espiral */

    /* Degradado Principal (El alma de tu nueva marca) */
    --gradient-primary: linear-gradient(135deg,
            #6366F1,
            /* Índigo/Azul del traje */
            #A855F7,
            /* Púrpura del logo */
            #D946EF);
    /* Fucsia brillante */
}

::selection {
    background: rgba(168, 85, 247, .85);
    color: white;
}

::-moz-selection {
    background: rgba(168, 85, 247, .85);
    color: white;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: white;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: auto;
}

.logo,
.hero h1,
.products h2,
.card-content h3,
.price,
.buy-btn {
    font-family: 'Space Grotesk', sans-serif;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
    pointer-events: none;
    z-index: -2;
}

/* HEADER */

header {
    isolation: isolate;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 3%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 1000;
    background:
        linear-gradient(to bottom,
            rgba(10, 10, 15, .82),
            rgba(10, 10, 15, .62));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom:
        1px solid rgba(255, 255, 255, .04);
    box-shadow:
        0 10px 35px rgba(0, 0, 0, .22);
    transition:
        background .4s ease,
        border-color .4s ease,
        box-shadow .4s ease,
        padding .4s ease,
        backdrop-filter .4s ease;
}

header.scrolled {
    padding: 14px 3%;
    background:
        rgba(10, 10, 15, .88);
    backdrop-filter:
        blur(24px) saturate(180%);
    border-bottom:
        1px solid rgba(255, 255, 255, .06);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, .32);
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, .12),
            transparent);
    opacity: .6;
}

/* EFECTO LIGHT TOP */

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            transparent,
            rgba(168, 85, 247, .12),
            rgba(217, 70, 239, .06),
            transparent);
    opacity: .9;
    pointer-events: none;
}

/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 10px rgba(168, 85, 247, .30)) drop-shadow(0 0 22px rgba(217, 70, 239, .14));
    transition:
        transform .4s ease,
        filter .4s ease;
}

.logo:hover img {
    transform:
        rotate(-8deg) scale(1.08);
    filter:
        drop-shadow(0 0 14px rgba(168, 85, 247, .45)) drop-shadow(0 0 28px rgba(217, 70, 239, .18));
}

/* TEXTO */

.logo span {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 3px;
    font-family: 'Orbitron', sans-serif;
    background:
        linear-gradient(135deg,
            #ffffff,
            #E9D5FF,
            #A855F7);

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo:hover span {
    filter:
        drop-shadow(0 0 10px rgba(168, 85, 247, .22));
}

/* LINKS */

nav {
    display: flex;
    align-items: center;
    gap: 42px;
    justify-self: center;
    position: relative;
    z-index: 2;
}

nav button,
nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: none;
    border: none;
    color: rgba(255, 255, 255, .58);
    text-decoration: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    transition:
        color .3s ease,
        transform .3s ease;
}

nav button:hover,
nav a:hover {
    color: white;
}

nav button::after,
nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background:
        linear-gradient(90deg,
            #A855F7,
            #D946EF);
    transform: translateX(-50%);
    transition: width .3s ease;
}

nav button:hover::after,
nav a:hover::after {
    width: 100%;
}

nav button.active,
nav a.active {
    color: white;
}

nav button.active::after,
nav a.active::after {
    width: 100%;
}

/* HEADER ACTIONS */

.header-actions {
    display: flex;
    align-items: center;
    justify-self: end;
    padding-bottom: 4px;
    gap: 12px;
    position: relative;
    z-index: 2;
}

/* ICON BUTTON */

.header-icon {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    border:
        1px solid rgba(255, 255, 255, .06);
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, .06),
            rgba(255, 255, 255, .025));
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    cursor: pointer;
    transition:
        transform .35s ease,
        border-color .35s ease,
        color .35s ease,
        box-shadow .35s ease,
        background .35s ease;
}

/* GLOW */

.header-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at top,
            rgba(168, 85, 247, .22),
            transparent 70%);
    opacity: 0;
    transition: opacity .35s ease;
}

/* HOVER */

.header-icon:hover {
    transform: translateY(-2px) scale(1.02);
    color: white;
    border-color:
        rgba(168, 85, 247, .35);
    background:
        linear-gradient(180deg,
            rgba(168, 85, 247, .12),
            rgba(255, 255, 255, .04));
    box-shadow:
        0 8px 24px rgba(0, 0, 0, .20),
        0 0 18px rgba(168, 85, 247, .10);
}

.header-icon:hover::before {
    opacity: 1;
}

.cart-header-btn {
    position: relative;
}

.cart-count-wrapper {
    position: absolute;
    top: -6px;
    right: -6px;
    animation: cartFloat 2.8s ease-in-out infinite;
}

.cart-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background:
        linear-gradient(135deg,
            #A855F7,
            #D946EF);
    border:
        2px solid rgba(10, 10, 15, .95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: white;
    box-shadow:
        0 0 18px rgba(168, 85, 247, .35);
    backdrop-filter: blur(10px);
}

.cart-count.bump {
    animation: cartCountPop .35s ease;
}

@keyframes cartCountPop {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(168, 85, 247, 0);
    }

    40% {
        transform: scale(1.3);

        box-shadow:
            0 0 18px rgba(168, 85, 247, .45),
            0 0 32px rgba(168, 85, 247, .25);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(168, 85, 247, 0);
    }
}

@keyframes cartFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0);
    }
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 120px 8%;
    background: var(--bg-primary);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: .65;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 350px;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.9) 70%,
            #000000 100%);
    pointer-events: none;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at left,
            rgba(168, 85, 247, .18),
            transparent 40%),

        radial-gradient(circle at top right,
            rgba(217, 70, 239, .12),
            transparent 35%);
}

.hero-content {
    max-width: 750px;
    position: relative;
    z-index: 2;
    animation: heroReveal 1s ease;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 72px;
    margin-bottom: 20px;
    line-height: 1;
    letter-spacing: -3px;
    font-weight: 700;
    background: linear-gradient(to bottom,
            #ffffff,
            #E9D5FF);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    text-shadow:
        0 0 40px rgba(168, 85, 247, .25);
}

.hero h1::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle,
            rgba(168, 85, 247, .22),
            transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero p {
    max-width: 560px;
    line-height: 1.7;
    font-size: 19px;
    color: rgba(255, 255, 255, .72);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 11px 18px;

    margin-bottom: 26px;

    border-radius: 999px;

    background:
        linear-gradient(135deg,
            rgba(15, 15, 20, .72),
            rgba(25, 25, 35, .58));

    border: 1px solid rgba(168, 85, 247, .22);

    backdrop-filter: blur(18px);

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .03) inset,
        0 8px 30px rgba(0, 0, 0, .35),
        0 0 25px rgba(168, 85, 247, .12);

    color: #F5E9FF;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.hero-badge span {
    width: 8px;
    height: 8px;

    border-radius: 999px;

    background: #D946EF;

    box-shadow:
        0 0 12px #D946EF,
        0 0 24px rgba(217, 70, 239, .65);
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(to right,
            rgba(0, 0, 0, .78) 0%,
            rgba(0, 0, 0, .42) 45%,
            rgba(0, 0, 0, .18) 100%),

        linear-gradient(to bottom,
            rgba(0, 0, 0, .15) 0%,
            rgba(0, 0, 0, .55) 100%);

    z-index: 1;
}

.hero-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 16px 34px;

    border: none;
    border-radius: 14px;

    background: var(--gradient-primary);

    color: white;

    font-weight: 600;

    transition:
        transform .3s ease,
        box-shadow .3s ease;

    cursor: pointer;
    text-decoration: none;
}

.hero-primary-btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 35px rgba(168, 85, 247, .35);
}

.hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 16px 30px;

    border-radius: 14px;

    border: 1px solid rgba(255, 255, 255, .08);

    background: rgba(255, 255, 255, .05);

    backdrop-filter: blur(14px);

    color: white;

    font-weight: 500;
    font-size: 15px;

    cursor: pointer;

    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.hero-secondary-btn i {
    font-size: 14px;

    color: #E9D5FF;

    transition:
        transform .3s ease,
        color .3s ease;
}

.hero-secondary-btn:hover {
    transform: translateY(-3px);

    background: rgba(255, 255, 255, .08);

    border-color: rgba(168, 85, 247, .35);

    box-shadow:
        0 10px 30px rgba(168, 85, 247, .12);
}

.hero-secondary-btn:hover i {
    transform: translateX(3px);

    color: #ffffff;
}

.hero-secondary-btn:active {
    transform: scale(.97);
}

/* SEARCH INPUT */

.search-box {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 60px;
    z-index: 50;
}

/* BRILLO SUPERIOR */

.search-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, .12),
            rgba(255, 255, 255, .02),
            rgba(168, 85, 247, .18));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: .8;
    transform: translateZ(0);
    will-change: opacity;
}

/* GLOW DETRÁS */

.search-box::after {
    content: '';
    position: absolute;
    /* Lo hacemos un poco más ancho que el input para que el glow asome por los lados */
    inset: 4px -10px;
    background: var(--gradient-primary);
    /* Usamos tu degradado de marca */
    filter: blur(35px);
    z-index: -1;
    opacity: 0.25;
    /* Sutil por defecto */
    transform: translateY(4px) scale(0.95);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-icon {
    position: absolute;
    z-index: 3;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .42);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-box input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 58px;
    padding: 0 130px 0 56px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(20, 20, 28, 0.6), rgba(10, 10, 15, 0.8));
    /* El saturate(150%) hace que el cristal se vea increíblemente premium */
    backdrop-filter: blur(24px) saturate(150%);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, .03),
        /* Brillo interno superior */
        inset 0 -2px 6px rgba(0, 0, 0, .4),
        /* Sombra interna inferior */
        0 10px 30px rgba(0, 0, 0, .3);
    /* Sombra exterior */
    color: white;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .2px;
    outline: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* PLACEHOLDER */

.search-box input::placeholder {
    color: rgba(255, 255, 255, .28);
    transition:
        opacity .3s ease,
        transform .3s ease;
}

.search-box input:focus::placeholder {
    opacity: .55;
    transform: translateX(2px);
}

/* HOVER */

.search-box:hover input {
    border-color: rgba(255, 255, 255, .08);
    transform: translateY(-1px);
}

/* FOCUS */

.search-box input:focus {
    background: linear-gradient(180deg, rgba(30, 30, 40, 0.7), rgba(15, 15, 20, 0.9));
    border-color: rgba(217, 70, 239, 0.5);
    /* Tu purple-hover para el borde */
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, .05),
        0 0 0 4px rgba(168, 85, 247, .15),
        /* Anillo de focus suave */
        0 12px 30px rgba(0, 0, 0, .4);
    transform: translateY(-2px);
}

/* ICONO EN FOCUS */

.search-box:focus-within .search-icon {
    color: #D946EF;
    /* Tu fucsia brillante */
    transform: translateY(-50%) scale(1.15) rotate(-5deg);
    /* Pequeño giro dinámico */
    filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.6));
    /* Efecto neón real */
}

/* GLOW MÁS FUERTE */

.search-box:focus-within::after {
    opacity: 0.65;
    transform: translateY(8px) scale(1.02);
    /* Se expande hacia abajo suavemente */
}

.currency-dropdown {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

/* BOTÓN */

.currency-trigger {
    height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .06);
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, .06),
            rgba(255, 255, 255, .03));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition:
        border-color .3s ease,
        background .3s ease,
        transform .3s ease;
}

.currency-trigger:hover {
    border-color: rgba(168, 85, 247, .25);
    transform: translateY(-1px);
}

.currency-arrow {
    position: static;
    transform: none;
    font-size: 10px;
    color: rgba(255, 255, 255, .5);
    transition:
        transform .3s ease,
        color .3s ease;
}

/* MENU */

.currency-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 150px;
    padding: 6px;
    border-radius: 16px;
    background:
        rgba(15, 15, 20, .95);
    border: 1px solid rgba(255, 255, 255, .06);
    backdrop-filter: blur(16px);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, .35);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform:
        translateY(-6px) scale(.96);
    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s;
}

/* OPEN */

.currency-dropdown.active .currency-menu {
    opacity: 1;
    visibility: visible;
    transform:
        translateY(0) scale(1);
}

.currency-dropdown.active .currency-arrow {
    transform: rotate(180deg);
}

/* OPTIONS */

#selectedCurrency {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.currency-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 42px;
    gap: 12px;
    padding: 0 14px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}

.currency-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    border-radius: 8px;
    background:
        rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .05);
    color: var(--purple-pastel);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
}

.currency-option strong {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.currency-option:hover {
    background:
        rgba(255, 255, 255, .04);
    color: white;
    transform: translateX(2px);
}

.currency-option.active {
    background:
        linear-gradient(135deg,
            rgba(168, 85, 247, .22),
            rgba(168, 85, 247, .10));
    color: white;
    box-shadow:
        0 0 18px rgba(168, 85, 247, .12);
}

.empty-search {
    grid-column: 1 / -1;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.empty-search-icon {
    width: 90px;
    height: 90px;
    border-radius: 28px 12px 28px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    background:
        linear-gradient(145deg,
            rgba(168, 85, 247, .14),
            rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .04),
        0 10px 30px rgba(0, 0, 0, .25),
        0 0 35px rgba(168, 85, 247, .10);
    backdrop-filter: blur(12px);
}

.empty-search-icon i {
    font-size: 30px;
    color: var(--purple-pastel);
    opacity: .9;
}

.empty-search h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Space Grotesk', sans-serif;
}

.empty-search p {
    max-width: 340px;
    color: rgba(255, 255, 255, .5);
    line-height: 1.7;
    font-size: 14px;
}

.empty-search-reset {
    position: relative;
    margin-top: 26px;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--purple-pastel);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .8px;
    cursor: pointer;
    transition:
        color .3s ease,
        opacity .3s ease;
}

.empty-search-reset:hover {
    color: var(--purple-primary);
    opacity: .95;
}

/* LÍNEAS */

.empty-search-reset::before,
.empty-search-reset::after {
    content: '';
    position: absolute;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: var(--purple-primary);
    transition: width .35s ease;
}

/* IZQUIERDA → CENTRO */

.empty-search-reset::before {
    right: 50%;
}

/* DERECHA → CENTRO */

.empty-search-reset::after {
    left: 50%;
}

.empty-search-reset:hover::before,
.empty-search-reset:hover::after {
    width: 50%;
}

/* SECTION TITLE */

.section-title {
    margin-bottom: 70px;
    text-align: center;
}

.section-title h2 {
    position: relative;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 50px;

    line-height: 1;

    margin-bottom: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    cursor: default;
    transition: .35s ease;

    background: linear-gradient(to bottom,
            #ffffff,
            #d8b4fe);

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: var(--text-secondary);

    max-width: 620px;

    margin: auto;

    line-height: 1.7;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    width: 70px;
    height: 5px;
    border-radius: 999px;
    background: var(--gradient-primary);
    transition: .35s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, .35);
}

.section-title h2:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 25px rgba(59, 130, 246, .25);
}

.section-title h2:hover::after {
    width: 100%;
}

.section-badge {
    width: fit-content;

    margin: 0 auto 18px;

    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(168, 85, 247, .12);

    border: 1px solid rgba(217, 70, 239, .22);

    color: var(--purple-pastel);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;

    text-transform: uppercase;

    backdrop-filter: blur(12px);
}

/* PRODUCTS */

.products {
    position: relative;
    padding: 80px 8% 100px;
    z-index: 2;
    margin-top: -80px;
    background: var(--bg-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;

    z-index: 1;
}

.card {
    background: var(--bg-secondary);
    border-radius:
        24px 10px 24px 10px;
    overflow: hidden;
    transition: .35s ease;
    position: relative;
    will-change: transform;
}

.card::after {
    content: '';

    position: absolute;
    top: -120%;
    left: -120%;

    width: 220%;
    height: 220%;

    background: linear-gradient(120deg,
            transparent 30%,
            rgba(255, 255, 255, .06),
            transparent 70%);

    transform: rotate(25deg);

    transition: .8s;
    pointer-events: none;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px 10px 24px 10px;
    padding: 1px;
    background: var(--gradient-primary);

    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

.card:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, .25);
    /* Púrpura con opacidad */
    border-color: rgba(217, 70, 239, .5);
}

.card:hover::after {
    top: 100%;
    left: 100%;
}

.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;

    /* MODIFICADO: Agregamos un padding interno y un fondo oscuro con blur */
    padding: 0;
    background: #08080C;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;

    /* CAMBIA ESTO: 'contain' hace que la imagen se reduzca hasta caber ENTERA */
    object-fit: cover;
    object-position: center;

    /* Opcional: Un leve reflejo brillante detrás para que no se vea vacío */
    filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.25));

    transition: transform .5s ease;
}

.card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* O 'contain' si lo prefieres, igual que con las imágenes */
    object-position: center;
    transition: transform .5s ease;
}

.card:hover video {
    transform: scale(1.05);
    /* El efecto de zoom al pasar el mouse sigue funcionando */
}

.card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
}

.line {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
}

.line::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 999px;
    background: var(--gradient-primary);
    transition: .55s cubic-bezier(.19, 1, .22, 1);
}

.card:hover .line::before {
    width: 100%;
}

.card-content p {
    color: #71717A;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
}

.price {
    display: block;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 25px;

    transition:
        color .35s ease,
        text-shadow .35s ease,
        transform .35s ease;
}

.card:hover .price {
    color: var(--purple-pastel);

    transform: scale(1.03);

    text-shadow:
        0 0 10px rgba(168, 85, 247, .35),
        0 0 25px rgba(217, 70, 239, .18);
}

.card-buttons {
    display: flex;
    gap: 15px;
}

.cart-btn {
    width: 40px;
    height: 40px;

    border-radius: 999px;

    background: rgba(255, 255, 255, .03);

    border: 1px solid rgba(255, 255, 255, .08);

    color: white;

    font-size: 14px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.cart-header {

    display: flex;
    flex-direction: column;

    gap: 6px;
}

.cart-header h2 {

    font-size: 24px;

    font-weight: 800;

    letter-spacing: 1px;
}

#cartCountText {

    font-size: 12px;

    color: var(--text-secondary);

    letter-spacing: 1px;
}

.cart-header-divider {

    width: 100%;
    height: 1px;

    margin-top: 18px;

    background:
        linear-gradient(to right,
            rgba(168, 85, 247, .25),
            rgba(255, 255, 255, .06),
            transparent);
}

.cart-btn:hover {
    transform:
        translateY(-3px) scale(1.04);

    background:
        linear-gradient(135deg,
            rgba(168, 85, 247, .18),
            rgba(217, 70, 239, .12));

    border-color:
        rgba(217, 70, 239, .45);

    box-shadow:
        0 0 20px rgba(168, 85, 247, .22),
        0 0 40px rgba(217, 70, 239, .12);
}

.cart-btn:hover i {
    transform: scale(1.04);
}

.cart-btn i {
    pointer-events: none;
    transition: transform .3s ease;
}

.buy-btn {
    flex: 1;
    border: none;
    border-radius: 18px;

    background: var(--gradient-primary);

    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

.buy-btn:hover {
    opacity: .9;
    transform: scale(1.02);
}

/* FOOTER */
.footer {
    position: relative;
    width: 100%;
    margin-top: 0;
    backdrop-filter: blur(12px);

    background: rgba(16, 16, 22, .9);

    box-shadow: 0 -10px 40px rgba(0, 0, 0, .5);

    color: #cfcfcf;
    padding: 30px 25px 15px;
}

/* Glow ambiental superior más visible */
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top center,
            rgba(168, 85, 247, .28),
            transparent 55%);
    pointer-events: none;
}

/* Línea de borde superior con gradiente */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(168, 85, 247, .5),
            rgba(217, 70, 239, .35),
            transparent);
    box-shadow: 0 0 12px rgba(168, 85, 247, .3);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== TOP ===== */
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(20px, 4vw, 40px);
}

/* LOGO */
.footer-brand h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    letter-spacing: 3px;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #A855F7;
}

.footer-brand p {
    max-width: 260px;
    font-size: 13px;
    opacity: 0.8;
}

/* LINKS */
.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.footer-links h4 {
    color: #fff;
    font-size: 13px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-links a {
    display: block;
    font-size: 12.5px;
    margin-bottom: 6px;
    color: #9494A6;
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-links div:hover {
    transform: translateY(-2px);
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
    transform: translateX(3px);
}

/* ===== BOTTOM ===== */
.footer-bottom {
    position: relative;
    margin-top: clamp(15px, 3vh, 25px);
    padding-top: clamp(12px, 2vh, 18px);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(8px, 2vw, 16px);
    flex-wrap: wrap;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(168, 85, 247, .35),
            rgba(255, 255, 255, .06),
            transparent);
}

.footer-bottom span {
    font-size: 12px;
    opacity: 0.7;
    white-space: nowrap;
}

/* SOCIAL */
.footer-socials a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #9494A6;
    text-decoration: none;
    transition:
        color .25s ease,
        transform .25s ease;
}

.footer-socials a:hover {
    color: #fff;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(168, 85, 247, .5);
}

.footer-socials a i {
    font-size: 15px;
    transition:
        color .25s ease,
        transform .25s ease;
}

.footer-socials a:hover i {
    color: var(--purple-primary);
    transform: scale(1.15);
}

/* VIEW BUTTON */

.view-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(10, 10, 15, .65);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    z-index: 5;
    transition: .3s ease;
}

.view-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(168, 85, 247, .18);
    border-color: rgba(217, 70, 239, .35);
    box-shadow: 0 0 25px rgba(168, 85, 247, .25);
}

/* MODAL */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    perspective: 1200px;
    transition: .35s ease;
    z-index: 5000;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 950px;
    /* Un fondo ligeramente más oscuro para resaltar el contenido */
    background: rgba(10, 10, 15, .98);
    box-shadow:
        0 40px 120px rgba(0, 0, 0, .6),
        0 0 0 1px rgba(255, 255, 255, .05),
        0 0 60px rgba(168, 85, 247, .12);
    /* Brillo morado un pelín más fuerte */
    /* 👇 EL BORDE INSANO DE TUS CARDS */
    border-radius: 24px 10px 24px 10px;
    overflow: hidden;
    opacity: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transform: scale(.88) translateY(40px) rotateX(6deg);
    mask-image: radial-gradient(white, black);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    transition:
        opacity .4s ease,
        transform .7s cubic-bezier(.16, 1, .3, 1);
    position: relative;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    backface-visibility: hidden;
    isolation: isolate;
}

.modal::selection {
    background: rgba(168, 85, 247, .25);
}

.modal>* {
    position: relative;
    z-index: 1;
}

.modal::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    top: -120px;
    right: -120px;
    background:
        radial-gradient(circle,
            rgba(168, 85, 247, .22),
            transparent 70%);
    pointer-events: none;
    filter: blur(40px);
    user-select: none;
    z-index: 0;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, .25),
            rgba(168, 85, 247, .55),
            rgba(255, 255, 255, .25),
            transparent);
    background-size: 200% 100%;
    animation: modalLine 6s linear infinite;
    border-radius: 999px;
    user-select: none;
    pointer-events: none;
}

@keyframes modalLine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.modal-overlay.active .modal {
    opacity: 1;
    transform:
        scale(1) translateY(0) rotateX(0deg);
}

.modal-image,
.modal-image img,
.modal-image video {
    display: block;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.modal-image {
    position: relative;
    height: 100%;
    /* Aseguramos que la imagen/video respete las esquinas del modal */
    border-radius: 24px 0 0 24px;
    overflow: hidden;
}

.modal-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,
            transparent,
            rgba(10, 10, 15, .45));
    pointer-events: none;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-badge {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin-bottom: 18px;
    border-radius: 5px;
    background: rgba(168, 85, 247, .12);
    border: 1px solid rgba(217, 70, 239, .22);
    color: var(--purple-pastel);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 20px rgba(168, 85, 247, .12);
}

.modal-badge i {
    font-size: 11px;
    color: var(--purple-pastel);
}

.modal-content {
    /* Un poco más de espacio respirable */
    padding: 60px 52px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(18px);
    /* Línea sutil que separa la imagen del contenido */
    border-left: 1px solid rgba(255, 255, 255, .03);
    /* Degradado sutil en el fondo del contenido para dar profundidad */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), transparent);
}

.modal-content h2 {
    font-size: 42px;
    font-family: 'Oxanium', sans-serif;
    margin-bottom: 8px;
    text-wrap: balance;
    line-height: 1;
}

.modal-price {
    font-family: 'Exo 2', sans-serif;
    color: var(--purple-primary);
    font-size: 32px;
    font-weight: 700;
    position: relative;
    width: fit-content;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-shadow:
        0 0 20px rgba(168, 85, 247, .18);
}

.modal-price::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--gradient-primary);
    opacity: .7;
}

.modal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.modal-features-wrapper {
    position: relative;
    padding: 24px;
    margin-bottom: 35px;
    /* 👇 EL MISMO PATRÓN DE BORDES PARA CONSISTENCIA */
    border-radius: 18px 8px 18px 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.modal-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
    border-radius: 18px;
    transition: .3s ease;
}

.feature:hover {
    color: var(--purple-pastel);
    transform: translateX(4px);
}

.modal-buy-btn {
    position: relative;
    margin-top: auto;
    height: 50px;
    border: none;
    /* 👇 PATRÓN DE BORDES DINÁMICO */
    border-radius: 14px 6px 14px 6px;
    background: var(--gradient-primary);
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    flex: 1;
    overflow: hidden;
    transition: .3s;
}

.modal-buy-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 0 30px rgba(168, 85, 247, .35);
}

.modal-buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, .25),
            transparent);
    transform: skewX(-25deg);
    transition: .7s ease;
}

.modal-buy-btn:hover::before {
    left: 130%;
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .06),
        0 10px 25px rgba(0, 0, 0, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: .25s ease;
    backdrop-filter: blur(12px);
}

.close-modal:hover {
    transform: rotate(90deg) scale(1.05);
    background: rgba(168, 85, 247, .12);
    border-color: rgba(217, 70, 239, .3);
    backdrop-filter: blur(18px);
    box-shadow: 0 0 20px rgba(168, 85, 247, .2);
}

.close-modal i {
    font-size: 15px;
    transform: rotate(45deg);
}

.modal-actions {
    display: flex;
    gap: 14px;
    margin-top: auto;
}

.modal-cart-btn {
    min-width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, .08);
    /* 👇 PATRÓN DE BORDES DINÁMICO */
    border-radius: 14px 6px 14px 6px;
    background: rgba(255, 255, 255, .04);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .3s ease;
    backdrop-filter: blur(12px);
}

.modal-cart-btn i {
    font-size: 14px;
}

.modal-cart-btn:hover {
    transform: translateY(-2px);
    background: rgba(168, 85, 247, .12);
    border-color: rgba(217, 70, 239, .3);
    box-shadow:
        0 0 24px rgba(168, 85, 247, .18);
}

/* SCROLLBAR */

/* Forzar la desaparición de las flechas */
::-webkit-scrollbar-button {
    display: none;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #09090B;
}

::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.75);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D946EF;
}

/* PAYMENT MODAL */

.payment-modal {
    width: 100%;
    max-width: 350px;
    background: rgba(16, 16, 22, .96);
    box-shadow: 0 -1px 20px rgba(168, 85, 247, .15);
    border-radius: 28px;
    /* Mantenemos simetría en el contenedor principal */
    padding: 35px 25px 25px 25px;
    /* Ajuste de padding para equilibrar el botón de cerrar */
    position: relative;
    opacity: 0;
    transform: scale(.9) translateY(20px);
    transition: .35s ease;
}

#paymentModal.active .payment-modal {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.payment-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, .35),
            rgba(168, 85, 247, .45),
            rgba(255, 255, 255, .35),
            transparent);
    border-radius: 999px;
    pointer-events: none;
}

.payment-qr {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
    /* Clave para que el resplandor se posicione bien */
    z-index: 1;
}

/* EFECTO GLOW CON TU DEGRADADO (Oculto por defecto) */
.payment-qr::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: var(--gradient-primary);
    /* Tu degradado estrella */
    filter: blur(18px);
    /* El desenfoque que crea el "resplandor" */
    border-radius: 24px 10px 24px 10px;
    /* Misma forma asimétrica */
    opacity: 0;
    transform: translateY(0) scale(0.9);
    /* Aquí está la magia: más tiempo y un frenado súper suave */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
    /* Lo mandamos detrás del QR */
}

.payment-qr img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 24px 10px 24px 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 0 30px rgba(168, 85, 247, .25);
    /* Aplicamos la misma transición suave a la imagen */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* EL HOVER MÁGICO */
.payment-qr:hover::before {
    opacity: 0.6;
    /* Hacemos visible el resplandor de degradado */
    transform: translateY(-4px) scale(1.05);
    /* Lo expandimos un poquito */
}

.payment-qr:hover img {
    transform: translateY(-4px);
    /* El QR se eleva */
    border-color: rgba(217, 70, 239, 0.4);
    /* Un toque del purple-hover en el borde */
}

.save-qr-btn {
    width: fit-content;
    min-width: 100px;
    height: 44px;
    /* Un poco más estilizado */
    margin: 0 auto 30px auto;
    padding: 0 24px;
    border: none;
    border-radius: 16px 6px 16px 6px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: .3s ease;
    backdrop-filter: blur(12px);
}

.save-qr-btn:hover {
    transform: translateY(-2px);
    background: rgba(168, 85, 247, .12);
    border-color: rgba(217, 70, 239, .35);
    box-shadow: 0 0 25px rgba(168, 85, 247, .25);
}

.save-qr-btn i {
    font-size: 15px;
    color: var(--purple-pastel);
}

/* PAYMENT SUBTITLE */
.payment-subtitle {
    text-align: center;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-subtitle h3 {
    font-family: 'Orbitron', sans-serif;
    /* Tu nueva fuente premium */
    font-size: 22px;
    /* Un poco más grande para que la fuente luzca bien */
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
    background: var(--gradient-primary);
    /* Usando tu degradado principal */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.payment-subtitle p {
    color: var(--text-secondary);
    /* Usando tu variable de texto secundario */
    font-size: 13px;
    margin: 0;
    font-weight: 400;
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-card {
    position: relative;
    overflow: hidden;
    padding: 16px;
    border-radius: 24px 10px 24px 10px;
    /* ¡Tu toque personal aquí! */
    background: linear-gradient(135deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    border: 1px solid rgba(255, 255, 255, .06);
    backdrop-filter: blur(16px);
    transition: all .35s ease;
}

.payment-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px 10px 24px 10px;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(255, 255, 255, .05);
    padding: 1px;
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, .12),
            rgba(255, 255, 255, .03),
            rgba(168, 85, 247, .18));
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.payment-card::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    border-radius: 23px 9px 23px 9px;
    background:
        linear-gradient(90deg,
            rgba(16, 16, 22, .96),
            rgba(16, 16, 22, .96));
    transition:
        background .35s ease,
        opacity .35s ease;
    z-index: -1;
}

.payment-card:hover {
    border-color: rgba(168, 85, 247, .25);
    background: linear-gradient(135deg, rgba(168, 85, 247, .05), rgba(255, 255, 255, .01));
    box-shadow: 0 4px 20px rgba(168, 85, 247, .10);
    transform: translateY(-2px);
}

.payment-card:hover::after {
    background:
        linear-gradient(90deg,
            rgba(168, 85, 247, .14),
            rgba(217, 70, 239, .08),
            rgba(16, 16, 22, .96));
}

.payment-card:hover::before {
    border-color: rgba(255, 255, 255, .08);
}

.payment-label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    /* Mejor contraste jerárquico */
    font-size: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-combined {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, .08), transparent);
}

.payment-number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.payment-number {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Space Grotesk', sans-serif;
    color: white;
}

.small-label {
    font-size: 11px;
}

.payment-owner {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, .82);
}

.copy-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px 6px 12px 6px;
    /* Combinando con tu estilo asimétrico */
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s ease;
}

.copy-btn:hover {
    background: rgba(168, 85, 247, .15);
    border-color: rgba(217, 70, 239, .4);
    color: white;
    transform: scale(1.05);
}

.copy-btn i {
    font-size: 15px;
}

.owner-section {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-direction: row;
}

.owner-icon {
    min-width: 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.owner-icon i {
    color: #4ade80;
    font-size: 16px;
}

.owner-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.binance-icon {
    background: rgba(234, 179, 8, .1);
    border: 1px solid rgba(234, 179, 8, .2);
}

.binance-icon i {
    color: #facc15;
}

.copy-btn.success {
    background: rgba(34, 197, 94, .15);
    border-color: rgba(34, 197, 94, .3);
    color: #4ade80;
}

.copy-btn.success i {
    color: #22c55e;
}

.payment-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: left;
}

.payment-footer i {
    color: #25D366;
    /* Verde oficial de WhatsApp */
    font-size: 20px;
    filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.3));
    /* Un resplandor muy ligero */
}

.payment-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
}




.cart-modal {
    position: fixed;
    font-family: 'Oxanium', sans-serif;
    top: 0;
    right: 0;
    width: 25%;
    min-width: 460px;
    max-width: 540px;
    height: 100vh;
    background: rgba(10, 10, 15, .98);
    border-left: 1px solid rgba(255, 255, 255, .06);
    backdrop-filter: blur(18px);
    padding: 25px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.19, 1, .22, 1);
    overflow: hidden;
}

#cartModal {
    justify-content: flex-end;
}

#cartModal.active .cart-modal {
    transform: translateX(0);
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 16px 0;
    flex: 1;
    overflow-y: auto;
    padding:
        6px 6px 0 0;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    justify-content: space-between;
    padding: 16px;
    border-radius: 24px 10px 24px 10px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .05);
    transition:
        transform .28s ease,
        background .28s ease,
        border-color .28s ease,
        box-shadow .28s ease;
}

.cart-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .045);
    border-color: rgba(168, 85, 247, .18);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, .22),
        0 0 12px rgba(168, 85, 247, .10);
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
}

.cart-item-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-item-name {
    font-weight: 600;
}

.cart-item-badge {
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(168, 85, 247, .14);
    border: 1px solid rgba(168, 85, 247, .25);
    color: var(--purple-pastel);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.cart-item-price {
    color: var(--purple-pastel);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .3px;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow:
        0 0 10px rgba(168, 85, 247, .18);
}

.cart-item-period {
    font-size: 11px;
    color: var(--text-secondary);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: transparent;
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .25s ease;
}

.qty-btn i {
    font-size: 10px;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.016);
    color: var(--purple-primary);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 24px 10px 24px 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, .06);
    transition:
        transform .3s ease,
        border-color .3s ease;
}

.cart-item:hover .cart-item-image {
    transform: scale(1.03);
    border-color: rgba(168, 85, 247, .25);
}

.remove-cart-item {
    width: 25px;
    height: 25px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--purple-pastel);
    cursor: pointer;
    transition: .3s;
}

.remove-cart-item:hover {
    background: rgba(255, 255, 255, 0.016);
    color: #f85252;
}

.cart-footer {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding: 24px;
    background:
        linear-gradient(180deg,
            rgba(18, 18, 28, .98),
            rgba(10, 10, 18, 1));
    border-top: 1px solid rgba(168, 85, 247, .12);
    box-shadow:
        0 -10px 40px rgba(0, 0, 0, .45);
    margin-left: -25px;
    margin-right: -25px;
    margin-bottom: -25px;
}

.cart-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background:
        linear-gradient(to right,
            transparent,
            rgba(168, 85, 247, .45),
            transparent);
}

.cart-footer-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.clear-cart-btn {
    height: 48px;
    flex: 1.5;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: white;
    font-size: 9.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: .3s ease;
    backdrop-filter: blur(12px);
}

.clear-cart-btn:hover {
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .35);
    color: #fca5a5;
    transform: translateY(-2px);
    box-shadow:
        0 0 25px rgba(239, 68, 68, .18);
}

.clear-cart-btn i {
    font-size: 14px;
}

.cart-checkout-btn {
    height: 48px;
    flex: 8.5;
    border: none;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: white;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        gap .3s ease;
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    gap: 16px;
    box-shadow:
        0 0 30px rgba(168, 85, 247, .25);
}

.cart-checkout-btn i {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform .3s ease;
}

.cart-checkout-btn:hover i {
    transform: translateX(4px) translateY(-1px);
}

.cart-checkout-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    gap: 12px !important;
    filter: grayscale(.2);
}

.cart-checkout-btn:disabled i {
    transform: none !important;
}

.empty-cart {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-cart-icon {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 36px 14px 36px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 34px;
    background:
        linear-gradient(145deg,
            rgba(168, 85, 247, .16),
            rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 10px 30px rgba(0, 0, 0, .35),
        0 0 35px rgba(168, 85, 247, .12);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.empty-cart-icon i {
    font-size: 44px;
    color: var(--purple-pastel);
    text-shadow:
        0 0 18px rgba(168, 85, 247, .35);
    z-index: 2;
}

.empty-cart-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left,
            rgba(255, 255, 255, .12),
            transparent 45%);
    pointer-events: none;
}

.empty-cart h3 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
}

.empty-cart p {
    color: rgba(255, 255, 255, .55);
    max-width: 280px;
    line-height: 1.8;
    font-size: 14px;
    letter-spacing: .2px;
    margin-bottom: 34px;
}

.empty-cart-link {
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--purple-pastel);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        color .25s ease,
        opacity .25s ease;
}

.empty-cart-link:hover {
    color: var(--purple-primary);
    opacity: .95;
}

.empty-cart-link:hover::before,
.empty-cart-link:hover::after {
    width: 50%;
}

.empty-cart-link::before,
.empty-cart-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--purple-primary);
    transition: width .3s ease;
}

.empty-cart-link::before {
    left: 50%;
}

.empty-cart-link::after {
    right: 50%;
}

.cart-modal button,
.cart-modal input {
    font-family: inherit;
}

.cart-count:empty {
    display: none;
}

.cart-summary {
    padding: 15px;
    margin-bottom: 14px;
    border-radius: 12px;
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, .04),
            rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .06);
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

/* SUBTOTAL TEXTO */

.summary-row span {
    font-size: 13px;
    color: var(--purple-pastel);
    font-weight: 500;
}

/* TOTAL TEXTO */

.total-row span {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.45),
        0 0 18px rgba(255, 255, 255, 0.25);
}

.summary-row strong {
    font-family: 'Space Grotesk', sans-serif;
}

/* SUBTOTAL PRECIO */

#cartSubtotal {
    font-size: 15px;
    color: var(--purple-pastel);
    font-weight: 600;
}

/* TOTAL PRECIO */

#cartTotal {
    font-size: 24px;
    color: var(--purple-primary);
    font-weight: 700;
    text-shadow:
        0 0 20px rgba(168, 85, 247, .25);
}

.summary-divider {
    width: 100%;
    height: 1px;
    margin: 18px 0;
    background:
        linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, .08),
            transparent);
}

.cart-user {
    margin-bottom: 16px;
}

.cart-user label {
    display: block;
    margin-bottom: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--purple-primary);
}

.cart-input {
    position: relative;
}

.cart-input input:placeholder-shown {
    opacity: .9;
}

.cart-input i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple-primary);
    font-size: 12px;
    pointer-events: none;
    transition:
        color .3s ease,
        transform .3s ease;
}

/* ICONO EN FOCUS */

.cart-input:focus-within i {

    transform:
        translateY(-50%) scale(1.08);
}

.cart-input input {
    width: 100%;
    height: 50px;
    padding: 0 18px 0 46px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    outline: none;
    color: var(--purple-pastel);
    font-size: 14px;
    font-family: inherit;
    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        background .3s ease,
        color .3s ease;
}

/* FOCUS */

.cart-input input:focus {
    background: rgba(255, 255, 255, .045);
    border-color: rgba(168, 85, 247, .35);
    box-shadow:
        0 0 0 4px rgba(168, 85, 247, .08),
        0 0 24px rgba(168, 85, 247, .10);
}

.cart-input input::placeholder {
    color: rgba(255, 255, 255, .32);
    letter-spacing: .2px;
}

/* ERROR */

.cart-input.input-error input {
    border-color: rgba(248, 82, 82, .9);
    box-shadow:
        0 0 0 3px rgba(248, 82, 82, .12),
        0 0 30px rgba(248, 82, 82, .28);
    color: #ffd2d2;
    animation: inputShake .35s ease;
}

.cart-input.input-error i {
    color: #ff7b7b;
}

.cart-input input:-webkit-autofill,
.cart-input input:-webkit-autofill:hover,
.cart-input input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--purple-pastel);
    transition: background-color 9999s ease-in-out 0s;
    box-shadow: 0 0 0px 1000px transparent inset;
}

@keyframes inputShake {

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }
}

/* HOW MODAL */

.how-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: .35s ease;
    z-index: 9999;
}

.how-modal.active {
    opacity: 1;
    visibility: visible;
}

.how-modal-content {
    position: relative;
    width: 100%;
    max-width: 680px;
    padding: 42px;
    border-radius: 32px;
    background:
        linear-gradient(180deg,
            rgba(18, 18, 24, .98),
            rgba(10, 10, 15, .98));
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, .55);
    overflow: hidden;
    transform: scale(.95);
    transition: .35s ease;
}

.how-modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 78%;
    height: 1px;
    background:
        linear-gradient(90deg,
            transparent,
            rgba(217, 70, 239, .85),
            rgba(168, 85, 247, .85),
            transparent);
    box-shadow:
        0 0 18px rgba(168, 85, 247, .45);
    z-index: 2;
}

.how-modal-content::before {
    content: '';
    position: absolute;
    inset: -120px;
    background:
        radial-gradient(circle at top left,
            rgba(168, 85, 247, .22),
            transparent 30%),
        radial-gradient(circle at bottom right,
            rgba(217, 70, 239, .16),
            transparent 35%);
    pointer-events: none;
    z-index: 0;
}

.how-top,
.how-steps {
    position: relative;
    z-index: 1;
}

.how-modal.active .how-modal-content {
    transform: scale(1);
}

.how-badge {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(168, 85, 247, .12);
    border: 1px solid rgba(168, 85, 247, .22);
    color: #E9D5FF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.how-top h2 {
    margin-top: 22px;
    font-size: 46px;
    line-height: 1;
}

.how-top p {
    margin-top: 14px;
    color: rgba(255, 255, 255, .62);
    line-height: 1.7;
}

.how-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 42px;
}

.how-step {
    position: relative;
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: 24px;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, .045),
            rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .05);
    transition:
        transform .35s ease,
        border-color .35s ease,
        background .35s ease,
        box-shadow .35s ease;
    overflow: hidden;
}

.how-step::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(168, 85, 247, .08),
            transparent 40%);
    opacity: 0;
    transition: .35s ease;
}

.how-step:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, .18);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, .35);
}

.how-step:hover::before {
    opacity: 1;
}

.how-step-content h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.how-step-content p {
    color: rgba(255, 255, 255, .62);
    line-height: 1.6;
}

.how-step-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.how-step-icon {
    min-width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background:
        linear-gradient(135deg,
            rgba(168, 85, 247, .18),
            rgba(217, 70, 239, .12));
    border: 1px solid rgba(168, 85, 247, .18);
    color: #F5E9FF;
    font-size: 20px;
    box-shadow:
        0 10px 30px rgba(168, 85, 247, .16);
}

.how-step-number {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .42);
    text-transform: uppercase;
}

/* =========================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ========================================= */

/* --- TABLETS Y PANTALLAS MEDIANAS (Max 1024px) --- */
@media (max-width: 1024px) {

    /* Reducimos la grilla a 2 columnas */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Escalamos los textos principales */
    .hero h1 {
        font-size: 56px;
    }

    .section-title h2 {
        font-size: 42px;
    }

    /* Ajustamos el nav para que no se desborde */
    nav {
        gap: 20px;
    }

    /* PRODUCT MODAL */
    .modal {
        grid-template-columns: 1fr;
        max-width: 550px;
        transform: scale(.95) translateY(20px);
    }

    .modal-image {
        height: 280px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .03);
    }

    .modal-image::after {
        background: linear-gradient(to bottom, transparent, rgba(10, 10, 15, .6));
    }

    .modal-content {
        border-left: none;
        padding: 40px 35px;
    }

    /* CART MODAL */
    .cart-modal {
        min-width: 400px;
        width: 60%;
    }

    .how-steps {
        margin-top: 32px;
        gap: 20px;
    }

    .how-step {
        padding: 20px;
    }

    .footer {
        padding: 30px 20px 15px;
        /* Reducimos ligeramente el padding lateral */
    }

    .footer-brand p {
        max-width: 100%;
        /* El texto se adapta mejor al flujo del contenedor */
    }
}

/* --- MÓVILES (Max 768px) --- */
@media (max-width: 768px) {

    /* HEADER: Mantenemos el logo y los iconos al costado, no debajo */
    header {
        grid-template-columns: 1fr auto;
        padding: 15px 5%;
    }

    /* Ocultamos la navegación textual para móviles (ideal para un menú hamburguesa futuro) */
    nav {
        display: none;
    }

    /* HERO: Ajustamos paddings y centramos contenido */
    .hero {
        padding: 120px 5% 60px;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .hero p {
        font-size: 16px;
        max-width: 100%;
    }

    /* Botones del hero apilados para ser fáciles de tocar */
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-primary-btn,
    .hero-secondary-btn {
        width: 100%;
    }

    /* BÚSQUEDA */
    .search-box {
        max-width: 100%;
        margin-bottom: 40px;
    }

    /* PRODUCTOS: Colapsa a 1 columna */
    .products {
        padding: 60px 5% 80px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    /* PRODUCT MODAL */
    .modal {
        max-width: 100%;
        margin: 0 16px;
    }

    .modal-content {
        padding: 30px 24px;
    }

    .modal-content h2 {
        font-size: 32px;
    }

    .modal-price {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .modal-features-wrapper {
        padding: 18px;
        margin-bottom: 25px;
    }

    .close-modal {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    .close-modal i {
        font-size: 13px;
    }

    /* CART MODAL */
    .cart-modal {
        width: 100%;
        min-width: 100%;
        padding: 20px;
    }

    .cart-item {
        padding: 14px;
        gap: 12px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-price {
        font-size: 14px;
    }

    .cart-footer {
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: -20px;
        padding: 20px;
    }

    /* PAYMENT MODAL */
    .payment-modal {
        max-width: calc(100% - 32px);
        margin: 0 16px;
        padding: 30px 20px 20px 20px;
    }

    .payment-number {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .payment-qr {
        margin-bottom: 14px;
    }

    .payment-qr img {
        width: 120px;
        height: 120px;
    }

    .payment-qr::before {
        width: 120px;
        height: 120px;
    }

    /* HOW MODAL */
    .how-modal-content {
        max-width: calc(100% - 32px);
        margin: 0 16px;
        padding: 30px 20px;
    }

    .how-top h2 {
        font-size: 32px;
        margin-top: 16px;
    }

    /* HOW STEPS - 768px */
    .how-steps {
        margin-top: 28px;
        gap: 16px;
    }

    .how-step {
        padding: 18px;
        gap: 16px;
        border-radius: 20px;
        /* Suavizamos un poco el borde en pantallas menores */
    }

    .how-step-icon {
        min-width: 50px;
        height: 50px;
        font-size: 18px;
        border-radius: 14px;
    }

    .how-step-content h3 {
        font-size: 16px;
    }

    .how-step-content p {
        font-size: 14px;
    }

    .footer-top {
        /* Forzamos que la marca quede arriba sola y los links abajo */
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .footer-brand p {
        max-width: 320px;
        margin: 0 auto;
        /* Centramos el texto descriptivo de la marca */
    }

    .footer-links {
        /* Mantiene los enlaces ordenados pero centrados */
        text-align: center;
    }

    .footer-links a:hover {
        transform: translateY(-2px);
        /* En móvil es mejor moverlo hacia arriba que hacia la derecha */
    }

    .footer-bottom {
        /* Apilamos el copyright y las redes verticalmente */
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-socials a {
        margin: 0 10px;
        /* Separación simétrica para links centrados */
    }

}

/* --- DISPOSITIVOS PEQUEÑOS (Max 480px) --- */
@media (max-width: 480px) {
    /* --- AJUSTES DEL HERO PARA MÓVIL --- */

    .hero {
        /* Cambiamos el 5% por un padding fijo de 24px para garantizar márgenes laterales */
        padding: 100px 24px 60px;
    }

    .hero::before {
        /* Bajamos la intensidad de los destellos radiales para que el texto resalte */
        opacity: 0.4;
    }

    .hero-badge {
        margin-bottom: 20px;
        transform: scale(0.9);
        /* Lo achicamos un pelo para que no quite protagonismo */
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.15;
        /* Juntamos las líneas del título */
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.6;
        /* Le damos aire entre líneas */
        padding: 0 10px;
        /* Lo empujamos hacia el centro para que no roce los bordes */
        margin-bottom: 32px;
        /* Más espacio antes de los botones */
        color: rgba(255, 255, 255, 0.65);
        /* Lo oscurecemos un 1% más para mejorar la jerarquía */
    }

    .section-title h2 {
        font-size: 32px;
    }

    /* Mantenemos el botón del carrito y el botón de compra al costado uno del otro */
    .card-buttons {
        gap: 10px;
    }

    .buy-btn {
        font-size: 14px;
        padding: 12px 10px;
    }

    .cart-btn {
        width: 38px;
        height: 38px;
    }

    .price {
        font-size: 28px;
    }

    /* Ajuste fino al input de búsqueda para pantallas muy estrechas */
    .search-box input {
        padding: 0 100px 0 45px;
        /* Menos padding derecho para que el texto no se corte tan rápido */
        font-size: 14px;
    }

    /* PRODUCT MODAL */
    .modal-image {
        height: 220px;
    }

    .modal-content h2 {
        font-size: 28px;
    }

    .modal-actions {
        flex-direction: column-reverse;
        gap: 14px;
        /* Un pelín más de espacio entre los botones */
    }

    .modal-buy-btn,
    .modal-cart-btn {
        width: 100%;
        min-height: 50px;
        /* Cambiado a min-height para mejor adaptabilidad */
        font-size: 14px;
        padding: 12px 20px;
        /* Damos aire interno al texto */
        display: flex;
        /* Asegura centrado perfecto con el padding */
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        /* CRITICAL: La magia anticolapso que evita que se aplaste verticalmente */
    }

    /* CART MODAL */
    .cart-footer-actions {
        flex-direction: column;
        gap: 14px;
    }

    .clear-cart-btn,
    .cart-checkout-btn {
        width: 100%;
        min-height: 50px;
        /* Usar min-height fuerza a que no bajen de este tamaño */
        padding: 12px 20px;
        /* Le damos aire al texto por dentro */
        display: flex;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        /* MAGIA: Esto evita que flexbox los aplaste si falta espacio */
    }

    .clear-cart-btn {
        font-size: 14px;
        /* Subimos un poco el texto para que empate con el ícono */
    }

    .cart-checkout-btn {
        font-size: 15px;
        font-weight: bold;
    }

    /* EMPTY CART ICON */
    .empty-cart-icon {
        width: 90px;
        height: 90px;
    }

    .empty-cart-icon i {
        font-size: 34px;
    }

    .empty-cart h3 {
        font-size: 24px;
    }

    /* HOW MODAL */
    .how-top h2 {
        font-size: 28px;
    }

    /* HOW STEPS - 480px */
    .how-steps {
        margin-top: 24px;
        gap: 12px;
    }

    .how-step {
        padding: 16px;
        gap: 14px;
        border-radius: 16px;
    }

    .how-step-icon {
        min-width: 44px;
        /* Lo achicamos para que el texto respire */
        height: 44px;
        font-size: 16px;
        border-radius: 12px;
    }

    .how-step-number {
        font-size: 10px;
        /* Un pelín más chico */
    }

    .how-step-content h3 {
        font-size: 15px;
        margin-bottom: 4px;
        /* Menos espacio entre título y texto */
    }

    .how-step-content p {
        font-size: 13px;
        /* Texto más compacto pero legible */
        line-height: 1.4;
    }

    .footer {
        padding: 25px 15px 15px;
        /* Optimizamos espacio en pantallas chicas */
    }

    .footer-brand h2 {
        font-size: 20px;
        /* Reducimos un toque el tamaño del logo */
        letter-spacing: 2px;
    }

    .footer-links {
        /* Forzamos una sola columna para que los enlaces no se encimen */
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom span {
        /* FIX CRÍTICO: Cambiamos de 'nowrap' a 'normal' para que el texto del */
        /* copyright no se salga de la pantalla si el teléfono es muy angosto */
        white-space: normal;
        font-size: 11px;
        line-height: 1.4;
    }

    .footer-socials a {
        font-size: 13px;
        /* Hacemos los enlaces de redes un poco más fáciles de tocar */
    }

}

/* ==========================================
   CHECKOUT SUMMARY MODAL
   ========================================== */

.checkout-summary-box {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 860px;
    max-height: 88vh;
    background: rgba(10, 10, 15, .98);
    border-radius: 28px;
    box-shadow:
        0 40px 120px rgba(0, 0, 0, .65),
        0 0 0 1px rgba(255, 255, 255, .05),
        0 0 80px rgba(168, 85, 247, .14);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    opacity: 0;
    transform: scale(.9) translateY(30px);
    transition:
        opacity .4s ease,
        transform .6s cubic-bezier(.16, 1, .3, 1);
}

/* Línea animada superior — igual que el modal de producto */
.checkout-summary-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, .2),
            rgba(168, 85, 247, .55),
            rgba(217, 70, 239, .55),
            rgba(255, 255, 255, .2),
            transparent);
    background-size: 200% 100%;
    animation: modalLine 6s linear infinite;
    border-radius: 999px;
    z-index: 2;
    pointer-events: none;
}

/* Glow ambiental en esquina superior derecha */
.checkout-summary-box::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle,
            rgba(168, 85, 247, .2),
            transparent 70%);
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

#checkoutSummaryModal.active .checkout-summary-box {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.checkout-summary-left {
    position: relative;
    z-index: 1;
    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, .05);
}

.checkout-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    width: fit-content;
    background: rgba(168, 85, 247, .12);
    border: 1px solid rgba(168, 85, 247, .22);
    color: var(--purple-pastel);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.checkout-summary-badge i {
    font-size: 11px;
}

.checkout-summary-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -.5px;
}

.checkout-summary-client {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.checkout-summary-client i {
    color: var(--purple-primary);
    font-size: 12px;
}

.checkout-summary-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 230px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 20px;
}

.checkout-summary-items::-webkit-scrollbar {
    width: 4px;
}

.checkout-summary-items::-webkit-scrollbar-track {
    background: transparent;
}

.checkout-summary-items::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--purple-primary), var(--purple-hover));
    border-radius: 999px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .05);
    transition:
        border-color .2s ease,
        background .2s ease;
}

.checkout-item:hover {
    border-color: rgba(168, 85, 247, .18);
    background: rgba(168, 85, 247, .04);
}

.checkout-item-img {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, .06);
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-item-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-item-qty {
    display: block;
    font-size: 11px;
    color: var(--purple-pastel);
    font-weight: 600;
    margin-top: 3px;
    letter-spacing: .3px;
}

.checkout-item-price {
    font-size: 13px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.checkout-summary-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(168, 85, 247, .14), rgba(99, 102, 241, .08));
    border: 1px solid rgba(168, 85, 247, .22);
}

.checkout-summary-total-row span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, .55);
}

.checkout-summary-total-row strong {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -.5px;
    background: linear-gradient(135deg, #ffffff, var(--purple-pastel));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, .4));
}

.checkout-summary-right {
    position: relative;
    z-index: 1;
    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background: linear-gradient(180deg, rgba(168, 85, 247, .06), transparent);
    overflow-y: auto;
}

.checkout-payment-header {
    text-align: center;
}

.checkout-payment-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            rgba(168, 85, 247, .22),
            rgba(217, 70, 239, .12));
    border: 1px solid rgba(168, 85, 247, .22);
    color: #d8b4fe;
    font-size: 20px;
    box-shadow: 0 10px 30px rgba(168, 85, 247, .2);
    margin: 0 auto 14px;
}

.checkout-payment-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
}

.checkout-payment-header p {
    font-size: 12px;
    color: rgba(255, 255, 255, .42);
    line-height: 1.6;
}

.checkout-qr-container {
    padding: 14px;
    border-radius: 24px 10px 24px 10px;
    background: white;
    box-shadow:
        0 0 40px rgba(168, 85, 247, .28),
        0 0 0 1px rgba(168, 85, 247, .15);
    transition:
        transform .4s cubic-bezier(.16, 1, .3, 1),
        box-shadow .4s ease;
}

.checkout-qr-container:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 60px rgba(168, 85, 247, .45),
        0 0 0 1px rgba(217, 70, 239, .35);
}

.checkout-qr-img {
    width: 158px;
    height: 158px;
    display: block;
    border-radius: 10px 4px 10px 4px;
}

.checkout-yape-number {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
}

.checkout-yape-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--purple-pastel);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(168, 85, 247, .12);
    border: 1px solid rgba(168, 85, 247, .2);
}

.checkout-yape-digits {
    font-size: 20px;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    letter-spacing: 1.5px;
}

.checkout-payment-note {
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
    text-align: center;
    line-height: 1.7;
    padding: 0 8px;
}

.checkout-whatsapp-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
    letter-spacing: .3px;
}

.checkout-whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, .25),
            transparent);
    transform: skewX(-25deg);
    transition: .7s ease;
}

.checkout-whatsapp-btn:hover::before {
    left: 130%;
}

.checkout-whatsapp-btn i {
    font-size: 18px;
}

.checkout-whatsapp-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 12px 35px rgba(37, 211, 102, .35);
}

.checkout-whatsapp-btn:active {
    transform: scale(.97);
}

/* ==========================================
   MOBILE CHECKOUT BOTTOM SHEET
   ========================================== */

#checkoutMobileModal {
    align-items: flex-end;
    padding: 0;
}

.cms-sheet {
    position: relative;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    background: rgba(10, 10, 15, .99);
    border-radius: 28px 28px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
    box-shadow:
        0 -20px 60px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(168, 85, 247, .06);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 22px 40px;
    padding-bottom: env(safe-area-inset-bottom, 40px);
    opacity: 0;
    transform: translateY(100%);
    transition:
        opacity .35s ease,
        transform .5s cubic-bezier(.16, 1, .3, 1);
}

#checkoutMobileModal.active .cms-sheet {
    opacity: 1;
    transform: translateY(0);
}

.cms-handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    margin: 2px auto 4px;
    flex-shrink: 0;
}

.cms-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin: 0;
}

.cms-client {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-weight: 500;
}

.cms-client i {
    color: var(--purple-primary);
    font-size: 12px;
}

.cms-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}

.cms-items::-webkit-scrollbar {
    width: 4px;
}

.cms-items::-webkit-scrollbar-track {
    background: transparent;
}

.cms-items::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 999px;
}

.cms-pay-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(168, 85, 247, .3), transparent);
    flex-shrink: 0;
}

.cms-pay-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cms-pay-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.cms-pay-header i {
    color: var(--purple-pastel);
    font-size: 18px;
}

.cms-yape-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
}

.cms-yape-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cms-yape-number {
    font-size: 22px;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    letter-spacing: 2px;
}

.cms-note {
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
    text-align: center;
    line-height: 1.7;
}

