/* =========================================
   POWER SUERTE - CSS FINAL
   ========================================= */

:root {
    --verde-oscuro: #0a5c2e;
    --verde-medio: #1a7a42;
    --verde-claro: #e8f5e9;
    --amarillo: #ffd700;
    --amarillo-oscuro: #f0c000;
    --rojo: #d32f2f;
    --rojo-oscuro: #b71c1c;
    --gris-fondo: #f4f6f8;
    --texto-oscuro: #333;
    --texto-gris: #666;
    --sombra: 0 4px 10px rgba(0, 0, 0, 0.08);
    --radio: 15px;

    /* 🖼️ Fondo del estudio de la balotera - cambia por tu imagen */
    --balotera-bg: url('fondo-balotera.jpg');
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { width: 100%; font-size: 16px; scroll-behavior: smooth; }
body {
    width: 100%; min-height: 100vh; margin: 0; padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--gris-fondo);
    color: var(--texto-oscuro);
    line-height: 1.4;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
    width: 100%;
    background: linear-gradient(135deg, var(--amarillo) 0%, var(--amarillo) 55%, var(--verde-oscuro) 55%, var(--verde-oscuro) 100%);
    padding: 12px 20px;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.header-content { width: 100%; max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 55px; width: auto; display: block; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15)); }
.menu-btn { background: none; border: none; font-size: 26px; color: #000; cursor: pointer; padding: 5px; }

/* ===== CONTENIDO ===== */
.content { width: 100%; padding: 20px 15px 40px; }
.container { width: 100%; max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

/* ===== CARD ===== */
.card { width: 100%; background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.card-header { background-color: var(--verde-oscuro); color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.card-header i { font-size: 26px; flex-shrink: 0; }
.card-header h2 { font-size: 20px; font-weight: 700; text-transform: uppercase; }
.card-header p { font-size: 14px; opacity: 0.9; margin-top: 2px; }

/* =========================================
   BALOTERA 3D
   ========================================= */
.balotera-wrapper {
    position: relative;
    padding: 25px 15px 20px;
    overflow: hidden;
    min-height: 480px;
    background-color: #042b15;
    background-image:
        linear-gradient(180deg, rgba(4, 43, 21, 0.55) 0%, rgba(4, 43, 21, 0.8) 100%),
        var(--balotera-bg),
        radial-gradient(ellipse at 50% 40%, #0d7038 0%, #0a5c2e 40%, #042b15 100%);
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}

.balotera-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 20% 100%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(255, 215, 0, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.balotera-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.6) 20%, rgba(255, 215, 0, 1) 50%, rgba(255, 215, 0, 0.6) 80%, transparent 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    z-index: 2;
}

.balotera-live-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: rgba(183, 28, 28, 0.95);
    color: #fff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(183, 28, 28, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.live-dot {
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1.2s infinite;
    box-shadow: 0 0 6px #fff;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.balotera-3d-container {
    position: relative;
    width: 100%;
    height: 460px;
    z-index: 3;
    cursor: grab;
}
.balotera-3d-container:active { cursor: grabbing; }
.balotera-3d-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    outline: none;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* =========================================
   🎬 OVERLAY: BALOTA EN PRIMER PLANO
   ========================================= */
.ball-reveal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 50;
}

.ball-reveal.show {
    animation: ballRevealPop 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.ball-reveal-inner {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffe066, #f0c000);
    border: 5px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 72px;
    color: #000;
    box-shadow:
        0 0 0 8px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.8),
        0 15px 40px rgba(0, 0, 0, 0.5),
        inset -6px -6px 15px rgba(0, 0, 0, 0.15),
        inset 6px 6px 15px rgba(255, 255, 255, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ball-reveal-inner.super {
    background: radial-gradient(circle at 30% 30%, #ff5252, #b71c1c);
    color: #fff;
    box-shadow:
        0 0 0 8px rgba(211, 47, 47, 0.3),
        0 0 40px rgba(211, 47, 47, 0.9),
        0 15px 40px rgba(0, 0, 0, 0.5),
        inset -6px -6px 15px rgba(0, 0, 0, 0.3),
        inset 6px 6px 15px rgba(255, 255, 255, 0.25);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

@keyframes ballRevealPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
    35% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    75% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0;
    }
}

/* ===== BOTÓN DE SONIDO ===== */
.balotera-status {
    position: relative;
    z-index: 5;
    margin: 10px auto 0;
    max-width: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sound-toggle {
    background: rgba(255, 215, 0, 0.95);
    color: var(--verde-oscuro);
    border: 2px solid var(--verde-oscuro);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
    outline: none;
}

.sound-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6);
}

.sound-toggle:active {
    transform: translateY(0);
}

.sound-toggle.active {
    background: rgba(10, 92, 46, 0.95);
    color: var(--amarillo);
    border-color: var(--amarillo);
    box-shadow: 0 4px 12px rgba(10, 92, 46, 0.6), 0 0 15px rgba(255, 215, 0, 0.4);
}

.sound-toggle i {
    font-size: 14px;
}

/* ===== NÚMEROS GANADORES ===== */
.numbers-section { padding: 20px; }
.section-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--verde-oscuro); margin-bottom: 18px; text-transform: uppercase; font-size: 15px; }
.numbers-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.number-ball {
    width: 60px; height: 60px; flex: 0 0 60px;
    background: radial-gradient(circle at 30% 30%, #ffe066, #f0c000);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: 900; font-size: 22px; color: #000;
    border: 2px solid #fff;
    padding: 0;
    opacity: 0;
    transform: scale(0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), inset -2px -2px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.number-ball.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6), 0 0 0 4px rgba(255, 215, 0, 0.3), inset -2px -2px 6px rgba(0, 0, 0, 0.1);
    animation: ballPop 0.6s ease-out;
}

@keyframes ballPop {
    0% { transform: scale(0.3); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.super-ball-container {
    margin-top: 25px; padding-top: 20px;
    border-top: 2px dashed #e0e0e0;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.super-ball-label { display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: 13px; color: var(--rojo); text-transform: uppercase; letter-spacing: 1px; }
.super-ball-label i { color: var(--rojo); }

.super-ball {
    width: 90px; height: 90px; flex: 0 0 90px;
    background: radial-gradient(circle at 30% 30%, #ff5252, #b71c1c);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: 900; font-size: 32px; color: #fff;
    border: 3px solid #fff;
    padding: 0; position: relative;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.3);
    box-shadow: 0 6px 15px rgba(183, 28, 28, 0.4), inset -3px -3px 8px rgba(0, 0, 0, 0.3), inset 3px 3px 8px rgba(255, 255, 255, 0.2);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.super-ball.active {
    opacity: 1;
    transform: scale(1);
    animation: superActive 0.6s ease-out, superPulse 2.5s ease-in-out infinite 0.6s;
}

@keyframes superActive {
    0% { transform: scale(0.3); opacity: 0; }
    60% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes superPulse {
    0%, 100% { box-shadow: 0 6px 15px rgba(183, 28, 28, 0.4), 0 0 0 4px rgba(211, 47, 47, 0.15), inset -3px -3px 8px rgba(0, 0, 0, 0.3), inset 3px 3px 8px rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 6px 20px rgba(183, 28, 28, 0.6), 0 0 0 8px rgba(211, 47, 47, 0.1), inset -3px -3px 8px rgba(0, 0, 0, 0.3), inset 3px 3px 8px rgba(255, 255, 255, 0.2); }
}

.super-ball::after {
    content: '';
    position: absolute; top: 15%; left: 25%;
    width: 30%; height: 20%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%; filter: blur(3px);
    pointer-events: none;
}

/* ===== GANADOR ===== */
.winner-section { width: 100%; background-color: var(--verde-claro); border-radius: var(--radio); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.winner-info { display: flex; align-items: center; gap: 14px; }
.winner-icon { font-size: 28px; color: var(--verde-oscuro); flex-shrink: 0; }
.winner-text h3 { font-size: 15px; color: var(--verde-oscuro); text-transform: uppercase; margin-bottom: 4px; }
.winner-text p { font-size: 14px; color: var(--texto-oscuro); font-weight: 500; }
.winner-text span { font-size: 12px; color: var(--texto-gris); display: block; margin-top: 2px; }
.arrow-icon { color: var(--verde-oscuro); font-size: 16px; flex-shrink: 0; }

/* ===== ACUMULADOS ===== */
.accumulated-section { width: 100%; }
.accumulated-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--verde-oscuro); margin-bottom: 12px; text-transform: uppercase; font-size: 15px; }
.accumulated-cards { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.acc-card { background: linear-gradient(135deg, #ffe066, #f0c000); border-radius: 12px; padding: 16px; position: relative; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); min-width: 0; }
.acc-card-header { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--verde-oscuro); margin-bottom: 10px; }
.acc-card-icon { width: 26px; height: 26px; background: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 12px; color: var(--verde-oscuro); flex-shrink: 0; }
.acc-card-amount { font-size: 16px; font-weight: 900; color: #000; padding-right: 20px; word-break: break-word; }
.acc-card-arrow { position: absolute; right: 12px; bottom: 14px; color: var(--verde-oscuro); font-size: 13px; }

/* ===== HISTÓRICO ===== */
.history-section { width: 100%; background: #fff; border-radius: var(--radio); padding: 20px; box-shadow: var(--sombra); }
.history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.history-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--verde-oscuro); text-transform: uppercase; font-size: 15px; }
.history-link { font-size: 13px; color: var(--verde-oscuro); text-decoration: underline; font-weight: 500; }
.table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--texto-gris); font-weight: 500; padding: 10px 6px; border-bottom: 1px solid #eee; text-transform: uppercase; font-size: 11px; }
td { padding: 12px 6px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }

.mini-numbers {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.mini-ball {
    width: 24px; height: 24px; flex: 0 0 24px;
    background: radial-gradient(circle at 30% 30%, #ffe066, #f0c000);
    border-radius: 50%;
    display: inline-flex; justify-content: center; align-items: center;
    font-weight: 700; font-size: 10px; color: #000;
    padding: 0;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15);
}

.mini-ball-red {
    background: radial-gradient(circle at 30% 30%, #ff5252, #b71c1c) !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(183, 28, 28, 0.4) !important;
}

.btn-detail { background-color: var(--verde-oscuro); color: #fff; padding: 7px 12px; border-radius: 15px; font-size: 11px; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; white-space: nowrap; }

/* ===== PRÓXIMO SORTEO ===== */
.next-draw { width: 100%; background-color: var(--verde-oscuro); border-radius: var(--radio); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; color: #fff; gap: 12px; flex-wrap: wrap; }
.next-draw-info { display: flex; align-items: center; gap: 14px; }
.next-draw-icon { font-size: 28px; color: var(--amarillo); flex-shrink: 0; }
.next-draw-text h3 { font-size: 15px; text-transform: uppercase; margin-bottom: 4px; color: var(--amarillo); }
.next-draw-text p { font-size: 14px; font-weight: 500; }
.next-draw-time { text-align: right; }
.next-draw-time span { font-size: 11px; text-transform: uppercase; opacity: 0.8; display: block; }
.next-draw-time strong { font-size: 18px; font-weight: 700; color: var(--amarillo); }

/* ===== CUENTA REGRESIVA ===== */
.countdown-section { width: 100%; background: #fff; border-radius: var(--radio); padding: 20px; box-shadow: var(--sombra); text-align: center; }
.countdown-title { font-weight: 900; color: var(--verde-oscuro); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown-item { background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-medio)); border-radius: 12px; padding: 12px 8px; color: #fff; box-shadow: 0 4px 10px rgba(10, 92, 46, 0.3); }
.countdown-num { font-size: 26px; font-weight: 900; color: var(--amarillo); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); line-height: 1; }
.countdown-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; opacity: 0.9; }

/* =========================================
   BANNER PROMOCIONAL
   ========================================= */
.promo-banner {
    width: 100%;
    border-radius: var(--radio);
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.promo-link {
    display: block;
    width: 100%;
    text-decoration: none;
    line-height: 0;
}

.promo-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===== INFO ===== */
.info-section { width: 100%; background: #fff; border-radius: var(--radio); padding: 20px; box-shadow: var(--sombra); }
.info-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.info-header i { font-size: 22px; color: var(--verde-oscuro); }
.info-header h3 { font-size: 15px; font-weight: 700; color: var(--verde-oscuro); text-transform: uppercase; letter-spacing: 0.5px; }
.info-section p { font-size: 14px; color: var(--texto-oscuro); margin-bottom: 12px; line-height: 1.5; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.info-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--texto-oscuro); }
.info-list li i { color: var(--verde-oscuro); font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; margin-top: 3px; }

/* ===== FOOTER LEGAL ===== */
.footer-legal { background: linear-gradient(180deg, var(--verde-oscuro) 0%, #064321 100%); color: #fff; padding: 35px 20px 20px; margin-top: 30px; }
.footer-content { max-width: 960px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: var(--amarillo); letter-spacing: 1px; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid rgba(255, 215, 0, 0.2); }
.footer-brand i { font-size: 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; margin-bottom: 25px; }
.footer-col h4 { color: var(--amarillo); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-col p { font-size: 12px; line-height: 1.6; opacity: 0.85; margin-bottom: 8px; }
.footer-col strong { color: var(--amarillo); }
.footer-col i { margin-right: 5px; color: var(--amarillo); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 215, 0, 0.2); }
.footer-bottom p { font-size: 11px; opacity: 0.7; margin: 4px 0; }

/* ===== MENÚ ===== */
.menu-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; z-index: 998; }
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-panel { position: fixed; top: 0; right: -320px; width: 300px; max-width: 85%; height: 100vh; background: #fff; box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15); display: flex; flex-direction: column; transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999; overflow-y: auto; }
.menu-panel.open { right: 0; }
.menu-panel-header { background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-medio)); color: #fff; padding: 20px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.menu-panel-title { font-weight: 900; font-size: 16px; color: var(--amarillo); text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; }
.menu-close { background: rgba(255, 255, 255, 0.15); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 16px; transition: background 0.2s, transform 0.2s; }
.menu-close:hover { background: rgba(255, 255, 255, 0.25); transform: rotate(90deg); }
.menu-nav { flex: 1; padding: 15px 10px; display: flex; flex-direction: column; gap: 4px; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--texto-oscuro); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 10px; transition: background 0.2s, color 0.2s, transform 0.2s; }
.menu-item i { font-size: 18px; color: var(--verde-oscuro); width: 24px; text-align: center; transition: color 0.2s; }
.menu-item:hover { background: var(--verde-claro); color: var(--verde-oscuro); transform: translateX(4px); }
.menu-item.active { background: var(--verde-oscuro); color: #fff; }
.menu-item.active i { color: var(--amarillo); }
.menu-footer { padding: 18px 20px; border-top: 1px solid #eee; text-align: center; flex-shrink: 0; }
.menu-footer p { font-size: 11px; color: var(--texto-gris); margin: 2px 0; }

section[id], .card[id] { scroll-margin-top: 100px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header { padding: 10px 15px; }
    .logo-img { height: 45px; }
    .menu-btn { font-size: 22px; }
    .content { padding: 15px 12px 30px; }
    .container { gap: 14px; }
    .card-header { padding: 14px 16px; }
    .card-header h2 { font-size: 17px; }
    .card-header i { font-size: 22px; }

    .balotera-wrapper { min-height: 400px; padding: 20px 10px 15px; }
    .balotera-3d-container { height: 380px; }
    .sound-toggle { font-size: 11px; padding: 7px 14px; }

    .ball-reveal-inner { width: 130px; height: 130px; font-size: 58px; }

    .numbers-section { padding: 16px; }
    .number-ball { width: 52px; height: 52px; flex: 0 0 52px; font-size: 18px; }
    .super-ball { width: 80px; height: 80px; flex: 0 0 80px; font-size: 28px; }

    .winner-section { padding: 14px 16px; }
    .winner-text h3 { font-size: 13px; }
    .winner-text p { font-size: 13px; }
    .winner-icon { font-size: 24px; }
    .accumulated-cards { grid-template-columns: 1fr; }
    .acc-card-amount { font-size: 17px; }
    .history-section { padding: 16px; }
    .history-title { font-size: 13px; }
    .next-draw { padding: 14px 16px; }
    .next-draw-text h3 { font-size: 13px; }
    .next-draw-text p { font-size: 13px; }
    .next-draw-time strong { font-size: 16px; }
    .info-section { padding: 16px; }
    .info-header h3 { font-size: 13px; }
    .info-section p, .info-list li { font-size: 13px; }

    .countdown-num { font-size: 22px; }
    .countdown-lbl { font-size: 9px; }

    .promo-banner { border-radius: 12px; }

    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-brand { font-size: 17px; }

    section[id], .card[id] { scroll-margin-top: 90px; }
    .menu-panel { width: 280px; }
    .menu-item { padding: 12px 14px; font-size: 14px; }
    .menu-panel-title { font-size: 14px; }
}

@media (max-width: 480px) {
    .logo-img { height: 40px; }
    .number-ball { width: 46px; height: 46px; flex: 0 0 46px; font-size: 16px; }
    .numbers-grid { gap: 8px; }
    .mini-ball { width: 22px; height: 22px; flex: 0 0 22px; font-size: 10px; }
    .card-header h2 { font-size: 15px; }
    .super-ball { width: 72px; height: 72px; flex: 0 0 72px; font-size: 26px; }

    .balotera-wrapper { min-height: 340px; padding: 15px 8px 12px; }
    .balotera-3d-container { height: 320px; }
    .balotera-live-badge { font-size: 10px; padding: 5px 10px; }
    .sound-toggle { font-size: 10px; padding: 6px 12px; }
    .sound-toggle span { display: none; }
    .sound-toggle { padding: 8px 12px; }

    .ball-reveal-inner { width: 110px; height: 110px; font-size: 48px; }

    .countdown-num { font-size: 20px; }
}

@media (max-width: 360px) {
    .logo-img { height: 35px; }
    .number-ball { width: 42px; height: 42px; flex: 0 0 42px; font-size: 15px; }
    .super-ball { width: 64px; height: 64px; flex: 0 0 64px; font-size: 22px; }
    .balotera-3d-container { height: 300px; }
    .countdown-num { font-size: 18px; }
    .ball-reveal-inner { width: 90px; height: 90px; font-size: 40px; }
}

@media (min-width: 1024px) {
    .logo-img { height: 65px; }
    .number-ball { width: 70px; height: 70px; flex: 0 0 70px; font-size: 26px; }
    .super-ball { width: 100px; height: 100px; flex: 0 0 100px; font-size: 36px; }
    .balotera-wrapper { min-height: 560px; }
    .balotera-3d-container { height: 540px; }
    .ball-reveal-inner { width: 180px; height: 180px; font-size: 82px; }
}