/**
 * ════════════════════════════════════════════════════════════════
 * ESTILOS - "Tormenta de Premios"
 * Con Cortantes Jugamos
 * ════════════════════════════════════════════════════════════════
 *
 * Diseño glassmorphism, animaciones fluidas, mobile-first
 */

/* ════════════════════════════════════════════════════════════════
   VARIABLES Y RESET
   ════════════════════════════════════════════════════════════════ */

:root {
    /* Colores de marca */
    --hot-pink: #FF2D78;
    --magenta: #D4006A;
    --coral: #FF6B6B;
    --yellow: #FFD93D;
    --mint: #06D6A0;
    --sky: #4CC9F0;
    --purple: #7B2FBE;
    --deep: #1A0533;

    /* Fondos */
    --bg-gradient-start: #FFF0F7;
    --bg-gradient-end: #FFE4EF;
    --white: #FFFFFF;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(255, 45, 120, 0.15);

    /* Radios */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(255, 45, 120, 0.10);
    --shadow-md: 0 6px 24px rgba(255, 45, 120, 0.18);
    --shadow-lg: 0 12px 40px rgba(255, 45, 120, 0.22);
    --shadow-glow: 0 0 30px rgba(255, 45, 120, 0.4);

    /* Transiciones */
    --transition-fast: 0.15s ease;
    --transition: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Fuentes */
    --font-display: 'Lilita One', cursive;
    --font-body: 'Nunito', sans-serif;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--deep);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ════════════════════════════════════════════════════════════════
   FONDO ANIMADO - LLUVIA
   ════════════════════════════════════════════════════════════════ */

.fondo-lluvia {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gota-lluvia {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(76, 201, 240, 0.6));
    border-radius: 2px;
    animation: caer linear infinite;
    opacity: 0;
}

@keyframes caer {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Partículas flotantes */
.particula {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 45, 120, 0.3), transparent);
    animation: flotar ease-in-out infinite;
}

@keyframes flotar {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.8;
    }
}

/* ════════════════════════════════════════════════════════════════
   CONTENEDOR PRINCIPAL
   ════════════════════════════════════════════════════════════════ */

.jugar-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ════════════════════════════════════════════════════════════════
   PANTALLAS (ESTADOS)
   ════════════════════════════════════════════════════════════════ */

.pantalla {
    display: none;
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.4s ease;
}

.pantalla.activa {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ════════════════════════════════════════════════════════════════
   CARD GLASSMORPHISM
   ════════════════════════════════════════════════════════════════ */

.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 30px;
    margin-bottom: 20px;
}

/* ════════════════════════════════════════════════════════════════
   TÍTULOS
   ════════════════════════════════════════════════════════════════ */

.titulo-principal {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--hot-pink), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(255, 45, 120, 0.3);
    animation: tituloPulse 3s ease-in-out infinite;
}

@keyframes tituloPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.subtitulo {
    text-align: center;
    font-size: 1.1rem;
    color: var(--deep);
    opacity: 0.8;
    margin-bottom: 25px;
}

/* ════════════════════════════════════════════════════════════════
   COUNTDOWN TIMER
   ════════════════════════════════════════════════════════════════ */

.countdown-container {
    text-align: center;
    margin: 20px 0 30px;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--deep);
    opacity: 0.7;
    margin-bottom: 10px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.countdown-segment {
    background: linear-gradient(135deg, var(--hot-pink), var(--magenta));
    border-radius: var(--radius);
    padding: 12px 16px;
    min-width: 60px;
    box-shadow: var(--shadow-md);
    animation: countdownPulse 2s ease-in-out infinite;
}

.countdown-segment:nth-child(2) {
    animation-delay: 0.3s;
}

.countdown-segment:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.countdown-numero {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--white);
    display: block;
}

.countdown-texto {
    font-size: 0.7rem;
    color: var(--white);
    opacity: 0.9;
    text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════
   FORMULARIOS
   ════════════════════════════════════════════════════════════════ */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--deep);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 45, 120, 0.2);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--white);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--hot-pink);
    box-shadow: 0 0 0 4px rgba(255, 45, 120, 0.15);
}

.form-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.form-error {
    font-size: 0.8rem;
    color: var(--coral);
    margin-top: 6px;
    display: none;
}

.form-error.visible {
    display: block;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Checkbox personalizado */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.checkbox-custom {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.checkbox-custom input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    background: var(--white);
    border: 2px solid rgba(255, 45, 120, 0.3);
    border-radius: 6px;
    transition: var(--transition);
}

.checkbox-custom input:checked ~ .checkmark {
    background: var(--hot-pink);
    border-color: var(--hot-pink);
}

.checkbox-custom .checkmark::after {
    content: '✓';
    position: absolute;
    display: none;
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-custom input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--deep);
    line-height: 1.4;
    cursor: pointer;
}

/* ════════════════════════════════════════════════════════════════
   BOTONES
   ════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--hot-pink), var(--magenta));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(220, 39, 67, 0.4);
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(220, 39, 67, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--hot-pink);
    border: 2px solid var(--hot-pink);
}

.btn-secondary:hover {
    background: var(--hot-pink);
    color: var(--white);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-facebook {
    background: #1877F2;
    color: var(--white);
}

.btn-icon {
    font-size: 1.2rem;
}

/* ════════════════════════════════════════════════════════════════
   RULETA CONTAINER
   ════════════════════════════════════════════════════════════════ */

.ruleta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.ruleta-canvas-wrapper {
    position: relative;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

.ruleta-canvas {
    display: block;
    width: 300px;
    height: 300px;
    max-width: 100%;
}

@media (max-width: 480px) {
    .ruleta-canvas {
        width: 250px;
        height: 250px;
    }
}

.ruleta-btn-girar {
    margin-top: 25px;
    padding: 18px 50px;
    font-size: 1.2rem;
    animation: btnPulse 2s ease-in-out infinite;
}

/* ════════════════════════════════════════════════════════════════
   SELECCIÓN DE JUEGOS
   ════════════════════════════════════════════════════════════════ */

.juegos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.juego-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.juego-card:hover {
    transform: translateY(-5px);
    border-color: var(--hot-pink);
    box-shadow: var(--shadow-md);
}

.juego-card-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.juego-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--deep);
    margin-bottom: 5px;
}

.juego-card p {
    font-size: 0.85rem;
    color: var(--deep);
    opacity: 0.7;
}

/* ════════════════════════════════════════════════════════════════
   TRIVIA
   ════════════════════════════════════════════════════════════════ */

.trivia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-volver {
    background: none;
    border: none;
    color: var(--hot-pink);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-volver:hover {
    background: rgba(255, 45, 120, 0.1);
}

.trivia-pregunta {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 25px;
    color: var(--deep);
}

.trivia-opciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trivia-opcion {
    background: var(--white);
    border: 2px solid rgba(255, 45, 120, 0.2);
    border-radius: var(--radius);
    padding: 15px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.trivia-opcion:hover {
    border-color: var(--hot-pink);
    background: rgba(255, 45, 120, 0.05);
}

.trivia-opcion.correcta {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--white);
}

.trivia-opcion.incorrecta {
    background: var(--coral);
    border-color: var(--coral);
    color: var(--white);
}

.trivia-feedback {
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
    min-height: 24px;
}

/* ════════════════════════════════════════════════════════════════
   MEMOTEST
   ════════════════════════════════════════════════════════════════ */

.memotest-tablero {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.memotest-carta {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--hot-pink), var(--magenta));
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
    position: relative;
    transform-style: preserve-3d;
}

.memotest-carta.volteada {
    background: var(--white);
    border: 2px solid var(--hot-pink);
}

.memotest-carta.encontrada {
    background: var(--mint);
    cursor: default;
}

/* ════════════════════════════════════════════════════════════════
   CLICKER
   ════════════════════════════════════════════════════════════════ */

.clicker-container {
    text-align: center;
    padding: 30px 20px;
}

.clicker-btn {
    background: linear-gradient(135deg, var(--hot-pink), var(--magenta));
    border: none;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.clicker-btn:hover {
    transform: scale(1.05);
}

.clicker-btn:active {
    transform: scale(0.95);
}

.clicker-icon {
    font-size: 3rem;
}

.clicker-text {
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.clicker-contador {
    background: var(--white);
    color: var(--hot-pink);
    font-weight: 800;
    font-size: 2rem;
    padding: 10px 25px;
    border-radius: var(--radius-pill);
}

.clicker-instruccion {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--deep);
    opacity: 0.8;
}

/* Responsive para juegos */
@media (max-width: 480px) {
    .juegos-grid {
        grid-template-columns: 1fr;
    }

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

    .clicker-btn {
        width: 150px;
        height: 150px;
    }

    .clicker-icon {
        font-size: 2.5rem;
    }

    .clicker-text {
        font-size: 1rem;
    }

    .clicker-contador {
        font-size: 1.5rem;
        padding: 8px 20px;
    }
}

@keyframes btnPulse {
    0%, 100% {
        box-shadow: var(--shadow-md);
    }
    50% {
        box-shadow: var(--shadow-glow);
    }
}

/* ════════════════════════════════════════════════════════════════
   MODAL / POPUP
   ════════════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 5, 51, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.visible .modal-box {
    transform: scale(1);
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--deep);
    opacity: 0.5;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: modalIconBounce 0.6s ease;
}

@keyframes modalIconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--hot-pink), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body {
    text-align: center;
    margin: 20px 0;
}

.modal-cupon {
    background: linear-gradient(135deg, var(--yellow), var(--coral));
    border-radius: var(--radius);
    padding: 20px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.modal-cupon::before,
.modal-cupon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.modal-cupon::before {
    left: -10px;
}

.modal-cupon::after {
    right: -10px;
}

.cupon-codigo {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep);
    letter-spacing: 2px;
    background: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin: 10px 0;
    cursor: pointer;
    transition: var(--transition);
}

.cupon-codigo:hover {
    transform: scale(1.05);
}

.cupon-codigo.copiado {
    background: var(--mint);
    color: var(--white);
}

.cupon-vencimiento {
    font-size: 0.8rem;
    color: var(--deep);
    opacity: 0.7;
    margin-top: 10px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

/* ════════════════════════════════════════════════════════════════
   CONFETTI
   ════════════════════════════════════════════════════════════════ */

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ════════════════════════════════════════════════════════════════
   GANADORES RECIENTES (TOAST)
   ════════════════════════════════════════════════════════════════ */

.ganadores-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--white);
    border-radius: var(--radius-pill);
    padding: 12px 25px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
    opacity: 0;
    transition: var(--transition-slow);
}

.ganadores-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.ganadores-icon {
    font-size: 1.3rem;
}

.ganadores-texto {
    font-size: 0.9rem;
    font-weight: 600;
}

.ganadores-nombre {
    color: var(--hot-pink);
}

.ganadores-premio {
    color: var(--mint);
}

/* ════════════════════════════════════════════════════════════════
   COMPARTIR POPUP
   ════════════════════════════════════════════════════════════════ */

.compartir-opciones {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.compartir-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    transition: var(--transition);
}

.compartir-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

.compartir-whatsapp { background: #25D366; }
.compartir-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.compartir-facebook { background: #1877F2; }

/* ════════════════════════════════════════════════════════════════
   ESTADO: SIN GIROS
   ════════════════════════════════════════════════════════════════ */

.sin-giros-card {
    text-align: center;
    padding: 40px 20px;
}

.sin-giros-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.sin-giros-titulo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--deep);
    margin-bottom: 10px;
}

.sin-giros-texto {
    color: var(--deep);
    opacity: 0.7;
    margin-bottom: 25px;
}

/* ════════════════════════════════════════════════════════════════
   ESTADO: EVENTO FINALIZADO
   ════════════════════════════════════════════════════════════════ */

.evento-finalizado {
    text-align: center;
    padding: 50px 20px;
}

.evento-finalizado-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.evento-finalizado-titulo {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--deep);
    margin-bottom: 15px;
}

.evento-finalizado-texto {
    color: var(--deep);
    opacity: 0.7;
    margin-bottom: 25px;
}

/* ════════════════════════════════════════════════════════════════
   LOADING SPINNER
   ════════════════════════════════════════════════════════════════ */

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 45, 120, 0.2);
    border-top-color: var(--hot-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */

/* Mobile grande */
@media (max-width: 480px) {
    .titulo-principal {
        font-size: 1.8rem;
    }

    .subtitulo {
        font-size: 1rem;
    }

    .card-glass {
        padding: 20px;
        border-radius: var(--radius);
    }

    .countdown-segment {
        min-width: 50px;
        padding: 10px 12px;
    }

    .countdown-numero {
        font-size: 1.4rem;
    }

    .countdown-texto {
        font-size: 0.6rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .ruleta-btn-girar {
        padding: 16px 40px;
        font-size: 1.1rem;
    }

    .modal-box {
        padding: 25px 20px;
    }

    .modal-icon {
        font-size: 3rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .cupon-codigo {
        font-size: 1.2rem;
        padding: 8px 15px;
    }
}

/* Mobile muy pequeño */
@media (max-width: 359px) {
    .titulo-principal {
        font-size: 1.5rem;
    }

    .countdown-timer {
        gap: 6px;
    }

    .countdown-segment {
        min-width: 45px;
        padding: 8px 10px;
    }

    .countdown-numero {
        font-size: 1.2rem;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .jugar-container {
        padding: 40px;
    }

    .card-glass {
        padding: 40px;
    }

    .titulo-principal {
        font-size: 3rem;
    }

    .ruleta-canvas-wrapper {
        padding: 30px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .jugar-container {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* ════════════════════════════════════════════════════════════════
   UTILIDADES
   ════════════════════════════════════════════════════════════════ */

.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }
.text-muted { opacity: 0.6; }

/* ════════════════════════════════════════════════════════════════
   ACCESIBILIDAD
   ════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para navegación por teclado */
.btn:focus-visible,
.form-input:focus-visible,
.checkbox-custom input:focus-visible ~ .checkmark {
    outline: 3px solid var(--sky);
    outline-offset: 2px;
}
