:root {
    --shadow-deep: 0 10px 30px rgba(0, 0, 0, 0.5);
    --neon-green: #39ff14;
    --hot-neon: #ff1a1a;
    --red-glow: #ff4d4d;
    --blue-glow: #4d94ff;
    --purple-glow: #b366ff;
    /* Variables de color para el tema de compra, adaptadas a 'Parejas' */
    --primary-color: var(--hot-neon); /* Rojo neón como color primario */
    --danger-color: #EF4444;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;

    /* Variables estilo Niños (Glassmorphism) */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #fff;
    user-select: none;
    overflow-y: auto; /* Habilitar scroll vertical */
    background-color: #111827;
}

.background-container {
    position: fixed;
    top: -5%; left: -5%; width: 110%; height: 110%;
    z-index: -1;
    background-size: cover;
    animation: ken-burns 30s infinite;
    filter: blur(5px) brightness(0.5);
}

@keyframes ken-burns {
    0%, 100% { transform: scale(1) rotate(0.5deg); }
    50% { transform: scale(1.1) rotate(-0.5deg); }
}

.main {
    display: flex; justify-content: center; align-items: center;
    width: 100%; min-height: 100vh; padding: 1rem;
    box-sizing: border-box; position: relative; z-index: 2;
}

.game-container {
    display: none; flex-direction: column; justify-content: center;
    align-items: center; width: 100%; max-width: 400px;
    text-align: center; position: relative;
    padding-top: 3rem; /* Espacio para el contador */
}

.loading-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    z-index: 100; backdrop-filter: blur(8px);
}
.shuffle-animation-container {
    position: relative; width: 70vw; max-width: 300px;
    aspect-ratio: 7 / 10; margin: 1rem auto;
}
.card-shuffle {
    position: absolute; width: 100%; height: 100%; border-radius: 15px;
    box-shadow: var(--shadow-deep); background-size: cover; background-position: center;
}
.loading-container .card-1 { animation: shuffle-1 2.5s ease-in-out forwards; }
.loading-container .card-2 { animation: shuffle-2 2.5s ease-in-out forwards; }
.loading-container .card-3 { animation: shuffle-3 2.5s ease-in-out forwards; }
.shuffling-text { margin-top: 2rem; font-size: 1.5rem; color: #fff; letter-spacing: 1px; }
@keyframes shuffle-1 { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 25% { transform: translate(-40vw, -10vh) rotate(-25deg); } 50% { transform: translate(40vw, 10vh) rotate(25deg); } 75% { transform: translate(0, 0) rotate(0); } }
@keyframes shuffle-2 { 0%, 100% { transform: translate(0, 0) rotate(2deg); } 25% { transform: translate(35vw, -8vh) rotate(20deg); } 50% { transform: translate(-35vw, 8vh) rotate(-20deg); } 75% { transform: translate(0, 0) rotate(0); } }
@keyframes shuffle-3 { 0%, 100% { transform: translate(0, 0) rotate(10deg); } 25% { transform: translate(-30vw, 12vh) rotate(-15deg); } 50% { transform: translate(30vw, -12vh) rotate(15deg); } 75% { transform: translate(0, 0) rotate(0); } }
.game-board-main {
    position: relative; width: 70vw; max-width: 300px;
    aspect-ratio: 7 / 10; margin: 0.5rem auto 1rem auto; perspective: 1500px;
}
.card-inner {
    position: relative; width: 100%; height: 100%;
    transition: transform 0.8s cubic-bezier(0.6, 0.02, 0.4, 1);
    transform-style: preserve-3d;
}
.card-inner.is-flipped { transform: rotateY(180deg); }
.card-face {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden; border-radius: 20px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 20px; box-sizing: border-box;
    background-size: cover; background-position: center;
    box-shadow: var(--shadow-deep);
}
.card-back { background-image: url('../images/parejas/ParejasNew.webp'); }
.card-front { transform: rotateY(180deg); background-color: rgba(0, 0, 0, 0.3); }
.content-wrapper { background-color: rgba(0, 0, 0, 0.6); padding: 15px; border-radius: 10px; backdrop-filter: blur(4px); }
.card-icon { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 1rem; text-shadow: 0 0 10px rgba(0,0,0,0.5); }
.card-text { font-size: clamp(1rem, 4vw, 1.5rem); font-weight: 600; text-shadow: 0 2px 8px rgba(0,0,0,0.7); }

/* --- ICONOS SUPERIORES (CON NUEVO BOTÓN DE CATEGORÍA) --- */
.top-right-icons {
    position: fixed; top: 20px; right: 20px;
    display: flex; flex-direction: column; gap: 15px; z-index: 10;
}
.btn-icon {
    font-size: 2.5rem; color: #ffc107; cursor: pointer;
    background: none; border: none; padding: 0; margin: 0;
    transition: transform 0.2s ease, color 0.3s;
}
.btn-icon:hover { transform: scale(1.15); }
.trophy-icon { color: #888; --fa-primary-color: #c9b037; --fa-secondary-color: #fff; }
.trophy-icon.unlocked { color: #ffdd40; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* --- CONTADOR DE DEMO Y CRONÓMETRO (ESTILO NIÑOS) --- */
.timer-section {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 5;
    white-space: nowrap;
}
.timer-section .fa-duotone { font-size: 1.4em; color: var(--primary-color); }

/* --- BOTONES DE ACCIÓN (ESTILO NIÑOS) --- */
.section-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    width: 70vw;
    max-width: 300px;
}
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    transition: all 250ms ease;
    text-decoration: none;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.3); }
.btn:disabled { cursor: not-allowed; opacity: 0.6; transform: none; }
.btn-success { background-image: linear-gradient(135deg, rgba(255, 26, 26, 0.85), rgba(200, 35, 35, 0.85)); }
.btn-danger { background-image: linear-gradient(135deg, rgba(85, 85, 85, 0.85), rgba(34, 34, 34, 0.85)); }
.btn-primary { background-image: linear-gradient(135deg, var(--blue-glow), #0069d9); }


/* --- MODALES GENERALES --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    /* Fondo oscuro más transparente */
    background: rgba(0,0,0,0.6);
    /* Desenfoque más intenso para el efecto esmerilado */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
    padding: 1rem;
    box-sizing: border-box;
}
.modal-content {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 15px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-height: 85vh;
    overflow-y: auto;
    box-sizing: border-box;
}

/* --- BOTÓN DE CIERRE MEJORADO --- */
.btn-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1); /* Fondo sutil */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.btn-close-modal:hover {
    background: var(--hot-neon); /* Rojo neón al hover */
    border-color: var(--hot-neon);
    transform: rotate(90deg) scale(1.1); /* Efecto de rotación */
    box-shadow: 0 0 10px var(--hot-neon);
}

.instructions-text p { margin-bottom: 1rem; line-height: 1.6; }

/* --- NUEVO: ESTILOS PARA EL CHECKBOX DE EDAD --- */
.age-verification {
    margin: 1.5rem 0;
}
.age-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}
.age-checkbox-label:hover {
    color: #fff;
}
#age-confirm-checkbox {
    display: none; /* Ocultar el checkbox original */
}
.custom-checkbox {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 2px solid var(--danger-color);
    background-color: rgba(239, 68, 68, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.custom-checkbox i {
    font-size: 1rem;
    color: #fff;
    transform: scale(0);
    transition: transform 0.2s ease;
}
#age-confirm-checkbox:checked + .custom-checkbox {
    background-color: #28a745;
    border-color: #28a745;
    transform: scale(1.1);
}
#age-confirm-checkbox:checked + .custom-checkbox i {
    transform: scale(1);
}

/* Botón de Aceptar Ancho */
#accept-instructions-button {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}
.animate-fade-in { animation: fadeIn 0.8s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- ESTILOS PARA EL MODAL DE DADOS --- */
.dice-modal-content { max-width: 640px; padding: 1.5rem; }
.dice-modal-content h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.dice-modal-content .subtitle { font-size: 1rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 1.5rem; }
.scene { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem; margin: 1.5rem 0; perspective: 800px; }
.cube-container { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.cube { width: 64px; height: 64px; position: relative; transform-style: preserve-3d; transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1); }
.face { position: absolute; width: 64px; height: 64px; background-color: rgba(255, 255, 255, 0.95); border: 1px solid #ddd; border-radius: 10px; background-size: 48px 48px; background-repeat: no-repeat; background-position: center; box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.6); }
.face.front  { transform: translateZ(32px); background-image: url('../dados/faces/dice-1.svg'); }
.face.back   { transform: rotateY(180deg) translateZ(32px); background-image: url('../dados/faces/dice-6.svg'); }
.face.right  { transform: rotateY(90deg) translateZ(32px); background-image: url('../dados/faces/dice-2.svg'); }
.face.left   { transform: rotateY(-90deg) translateZ(32px); background-image: url('../dados/faces/dice-5.svg'); }
.face.top    { transform: rotateX(90deg) translateZ(32px); background-image: url('../dados/faces/dice-3.svg'); }
.face.bottom { transform: rotateX(-90deg) translateZ(32px); background-image: url('../dados/faces/dice-4.svg'); }
.label { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; }
.btn-roll { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: bold; color: #fff; background: linear-gradient(135deg, #8e2de2, #4a00e0); border: none; border-radius: 40px; padding: 0.7rem 1.8rem; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.2rem; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4); }
.btn-roll:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); }
.btn-roll:disabled { cursor: not-allowed; opacity: 0.6; }
#result-container { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.5rem; }
.result-item { background-color: rgba(255, 255, 255, 0.05); padding: 0.8rem; border-radius: 8px; display: flex; align-items: center; gap: 0.8rem; border-left-width: 4px; border-left-style: solid; }
.result-red { background-color: rgba(255, 77, 77, 0.1); border-left-color: var(--red-glow); }
.result-red i { color: var(--red-glow); }
.result-blue { background-color: rgba(77, 148, 255, 0.1); border-left-color: var(--blue-glow); }
.result-blue i { color: var(--blue-glow); }
.result-purple { background-color: rgba(179, 102, 255, 0.1); border-left-color: var(--purple-glow); }
.result-purple i { color: var(--purple-glow); }
.result-item i { font-size: 1.5rem; min-width: 25px; }
.result-item p { margin: 0; font-size: 1rem; text-align: left; }
.btn-hot { font-family: 'Poppins', sans-serif; font-size: 1.2rem; font-weight: bold; color: var(--hot-neon); background-color: transparent; border: 2px solid var(--hot-neon); border-radius: 50px; padding: 0.8rem 2rem; margin-top: 2rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.6rem; text-shadow: 0 0 10px var(--hot-neon); box-shadow: 0 0 15px var(--hot-neon), inset 0 0 10px var(--hot-neon); transition: all 0.3s ease; }
.btn-hot:hover { color: #fff; background-color: rgba(255, 26, 26, 0.2); box-shadow: 0 0 25px var(--hot-neon), inset 0 0 15px var(--hot-neon); transform: scale(1.05); }
.btn-hot i { --fa-primary-color: #ff8080; --fa-secondary-color: #ffcccc; }

/* --- MODAL DE CATEGORÍAS (DISEÑO ULTRA-TRANSPARENTE SIN MARCO) --- */
.category-modal-content {
    max-width: 700px;
    padding: 2rem;
    /* Sin fondo, sin borde, sin sombra */
    background: transparent;
    border: none;
    box-shadow: none;
    /* El backdrop-filter se aplica en el .modal-overlay */
}

.category-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
}

.category-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); /* Sombra de texto más fuerte para contraste */
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.category-header .subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9); /* Texto más brillante */
    margin: 0;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

.category-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en escritorio */
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.btn-category {
    border-radius: 18px;
    /* Borde muy sutil y transparente */
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Sombra suave solo para separar del fondo */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    aspect-ratio: 1 / 1;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 200px;
    margin: 0 auto;
}
.btn-category::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Gradiente más oscuro para legibilidad del texto sobre la imagen */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.7) 100%);
    transition: background 0.3s ease;
}
.btn-category:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5); /* Sombra más fuerte al hover */
}
.btn-category:hover::after { background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%, rgba(0,0,0,0.6) 100%); }
.category-text-container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.category-text-container i {
    font-size: 2.5rem;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,0.8));
    transition: transform 0.3s ease;
    color: var(--hot-neon);
}
.btn-category:hover .category-text-container i {
    transform: scale(1.1) rotate(5deg);
    color: #fff;
}
.category-text-container span {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,1); /* Sombra negra sólida para texto */
}
.btn-category[data-category="calentamiento"] { background-image: url('../images/parejas/56.webp'); }
.btn-category[data-category="sexo_intenso"] { background-image: url('../images/parejas/130.webp'); }
.btn-category[data-category="tabu_fetiches"] { background-image: url('../images/parejas/236.webp'); }
.btn-category[data-category="fantasias_trios"] { background-image: url('../images/parejas/301.webp'); }
.btn-category[data-category="locura_final"] { background-image: url('../images/parejas/389.webp'); }
.btn-category[data-category="all"] { background-image: url('../images/parejas/399.webp'); }

/* --- NUEVO: ESTILOS PARA EL BOTÓN DE SALIDA (PUERTA) --- */
.btn-exit-game {
    background-image: linear-gradient(135deg, #3b82f6, #2563eb); /* Azul distintivo */
}

.btn-exit-game:hover {
    background-image: linear-gradient(135deg, #60a5fa, #3b82f6); /* Azul más claro al hover */
}

.btn-exit-game i {
    font-size: 1.1rem;
}

/* --- MODAL DE FIN DE DEMO (SIN MARCO) --- */
#demo-end-modal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}
.demo-end-content .icon-container {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--primary-color);
}
.demo-end-content h2 { font-size: 2rem; margin-bottom: 0.5rem; color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.demo-end-content p { font-size: 1.1rem; color: #eee; margin-bottom: 1.5rem; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.demo-end-content .btn-success { width: 100%; max-width: 300px; margin: 1rem auto 0 auto; padding: 14px; font-size: 1.1rem; font-weight: 700; border-radius: 50px; display: flex; align-items: center; justify-content: center; gap: 0.8rem; background-image: linear-gradient(135deg, #28a745, #218838); }
.demo-end-content .btn-success i { font-size: 1.3em; }

/* --- MODAL DE COMPRA (TEMA BLANCO PROFESIONAL) --- */
#purchase-modal .modal-content { background-color: var(--bg-white) !important; color: var(--text-dark) !important; border: none !important; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; padding: 0 !important; overflow: hidden; display: block !important; }
#purchase-modal .modal-container { width: 100%; max-width: 100%; padding: 2rem; box-sizing: border-box; overflow-y: auto; max-height: 90vh; }
#purchase-modal .btn-close-modal { color: var(--text-light) !important; top: 1rem; right: 1rem; z-index: 20; }
#purchase-modal .btn-close-modal:hover { color: var(--danger-color) !important; }
#purchase-modal h2 { display: flex; align-items: center; justify-content: center; gap: 0.5rem; color: var(--text-dark) !important; font-weight: 700; font-size: 1.5rem; margin-top: 0; margin-bottom: 1.5rem; }
#purchase-modal .product-showcase { background-color: var(--bg-light) !important; border: 1px solid var(--border-color) !important; border-radius: 12px; padding: 1.2rem; margin-bottom: 1.5rem; width: 100%; box-sizing: border-box; text-align: left; }
#purchase-modal .product-header-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
#purchase-modal .product-img-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border-color); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
#purchase-modal .product-title-info { flex: 1; }
#purchase-modal .product-title-info h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.25rem 0; color: var(--text-dark) !important; }
#purchase-modal .product-desc { font-size: 0.9rem; color: var(--text-medium) !important; margin: 0; font-weight: 500; line-height: 1.4; }
#purchase-modal .product-benefits { margin-bottom: 1rem; }
#purchase-modal .product-benefits ul { list-style: none; padding: 0; margin: 0; }
#purchase-modal .product-benefits li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; color: var(--text-medium) !important; font-size: 0.9rem; font-weight: 500; }
#purchase-modal .product-benefits .fa-duotone { color: var(--primary-color); font-size: 1.1em; }
#purchase-modal .product-pricing-highlight { display: flex; align-items: baseline; justify-content: flex-end; gap: 1rem; margin-top: 0.5rem; }
#purchase-modal .product-pricing-highlight .price-old { font-size: 1.1rem; text-decoration: line-through; color: var(--text-light) !important; font-weight: 500; }
#purchase-modal .product-pricing-highlight .price-new { font-size: 1.8rem; font-weight: 800; color: var(--danger-color) !important; line-height: 1; }
#purchase-form-inner { width: 100%; }
#purchase-modal .input-group { margin-bottom: 1rem; width: 100%; text-align: left; }
#purchase-modal .input-group label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--text-medium) !important; font-weight: 600; }
#purchase-modal .input-group input { width: 100%; padding: 0.85rem; border-radius: 8px; background: var(--bg-white) !important; border: 1px solid var(--border-color) !important; color: var(--text-dark) !important; font-size: 1rem; font-weight: 500; box-sizing: border-box; transition: all 0.2s; }
#purchase-modal .input-group input:focus { border-color: var(--primary-color) !important; box-shadow: 0 0 0 3px rgba(255, 26, 26, 0.15); outline: none; }
#purchase-modal #upsell-container { display: flex; align-items: center; background: var(--bg-light) !important; padding: 0.8rem; border-radius: 10px; margin-bottom: 1.5rem; cursor: pointer; border: 1px solid var(--border-color) !important; transition: all 0.2s; }
#purchase-modal #upsell-container:hover { border-color: var(--primary-color) !important; background: #ffebee !important; }
#purchase-modal #upsell-container input[type="checkbox"] { display: none; }
#purchase-modal #upsell-container img { width: 48px; height: 48px; margin-right: 1rem; border-radius: 6px; }
#purchase-modal #upsell-container label { display: flex; flex-direction: column; cursor: pointer; color: var(--text-medium) !important; font-size: 0.9rem; font-weight: 500; text-align: left; }
#purchase-modal #upsell-container label .font-semibold { color: var(--primary-color) !important; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 2px; }
#purchase-modal .order-summary { background: var(--bg-light) !important; padding: 1rem; border-radius: 10px; margin-top: 1rem; width: 100%; box-sizing: border-box; border: 1px solid var(--border-color) !important; }
#purchase-modal .order-summary h4 { font-size: 1rem; text-align: left; margin: 0 0 0.8rem 0; border-bottom: 1px solid var(--border-color) !important; padding-bottom: 0.5rem; color: var(--text-dark) !important; font-weight: 700; }
#purchase-modal .order-summary .flex { display: flex; justify-content: space-between; margin-bottom: 0.5rem; color: var(--text-medium) !important; font-size: 0.95rem; font-weight: 500; }
#purchase-modal .order-summary .border-t { border-top: 1px solid var(--border-color) !important; padding-top: 0.8rem; margin-top: 0.8rem; }
#purchase-modal .order-summary .text-primary { color: var(--primary-color) !important; font-size: 1.2rem; }
/* Botón de WhatsApp Ancho */
#purchase-modal .submit-button {
    width: 100% !important;
    max-width: none; /* Eliminar el max-width */
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
    background-image: linear-gradient(135deg, #25D366, #128C7E);
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-sizing: border-box;
}
#purchase-modal .submit-button i { font-size: 1.3em; }
#purchase-modal .submit-button:hover { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); transform: translateY(-2px); }

/* --- MODAL DE ÉXITO --- */
.success-content .btn-primary { width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; margin-top: 1.5rem; background-image: linear-gradient(135deg, #EF4444, #B91C1C) !important; color: white !important; border: none !important; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); padding: 14px; font-size: 1.1rem; font-weight: 700; border-radius: 50px; display: flex; align-items: center; justify-content: center; gap: 0.8rem; }
.success-content .btn-primary:hover { box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5); transform: translateY(-2px); }

@media (max-width: 768px) {
    .category-buttons {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en móvil */
    }
}

@media (max-width: 640px) {
    .dice-modal-content .scene { flex-direction: column; gap: 1.5rem; }
    .cube { width: 60px; height: 60px; }
    .face { width: 60px; height: 60px; background-size: 40px 40px; border-radius: 8px; }
    .face.front  { transform: translateZ(30px); }
    .face.back   { transform: rotateY(180deg) translateZ(30px); }
    .face.right  { transform: rotateY(90deg) translateZ(30px); }
    .face.left   { transform: rotateY(-90deg) translateZ(30px); }
    .face.top    { transform: rotateX(90deg) translateZ(30px); }
    .face.bottom { transform: rotateX(-90deg) translateZ(30px); }
    .dice-modal-content h2 { font-size: 1.5rem; }
    .result-item p { font-size: 0.9rem; }
    .btn-hot { font-size: 1rem; padding: 0.7rem 1.5rem; }
    .category-header { flex-direction: column; gap: 1rem; }
    .home-btn-styled { position: static; align-self: center; } /* Botón de inicio centrado en móvil */
    #category-selection-modal h2 { font-size: 1.8rem; }
}
