/* ============================================================
   SorteoRifas.cl — Estilos compartidos
   ============================================================ */

:root {
    --gold:        #ffd700;
    --gold-dim:    rgba(255, 215, 0, 0.3);
    --gold-glow:   rgba(255, 215, 0, 0.15);
    --nav-bg:      rgba(15, 15, 35, 0.95);
    --nav-height:  65px;
    --text-muted:  rgba(255, 255, 255, 0.6);
}

/* ── Fondo animado ─────────────────────────────────────── */
.background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1579546929518-9e396f3cc809?w=1920&q=80') center/cover;
    filter: brightness(0.3);
    animation: zoomBackground 20s ease-in-out infinite alternate;
}
.background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(138, 43, 226, 0.3) 0%,
        rgba(0, 0, 0, 0.8)      50%,
        rgba(255, 215, 0, 0.3)  100%);
}
@keyframes zoomBackground {
    0%   { transform: scale(1);   }
    100% { transform: scale(1.1); }
}

/* ── Partículas ─────────────────────────────────────────── */
.particles-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 215, 0, 1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(2px);
    animation: float-particles 20s infinite;
}
@keyframes float-particles {
    0%   { transform: translateY(100vh) translateX(0)     rotate(0deg);   opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px) rotate(720deg); opacity: 0; }
}

/* ── Luces rotatorias ───────────────────────────────────── */
.rotating-lights {
    position: fixed;
    top: 50%; left: 50%;
    width: 800px; height: 800px;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    animation: rotateLights 20s linear infinite;
}
@keyframes rotateLights {
    from { transform: translate(-50%, -50%) rotate(0deg);   }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.light-beam {
    position: absolute;
    width: 200%; height: 4px;
    background: linear-gradient(90deg,
        transparent                      0%,
        rgba(255, 215, 0, 0.4)          50%,
        transparent                     100%);
    top: 50%; left: -50%;
    filter: blur(3px);
}
.light-beam:nth-child(1) { transform: rotate(0deg);   }
.light-beam:nth-child(2) { transform: rotate(45deg);  }
.light-beam:nth-child(3) { transform: rotate(90deg);  }
.light-beam:nth-child(4) { transform: rotate(135deg); }

/* ── Navegación principal ───────────────────────────────── */
.main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--gold-dim);
    padding: 12px 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}
.main-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.main-nav-logo img {
    width: 40px; height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}
.main-nav-logo span {
    font-family: 'Orbitron', sans-serif;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1em;
}
.main-nav-links {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0; padding: 0;
}
.main-nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.3s, background 0.3s;
    white-space: nowrap;
}
.main-nav-links a:hover {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
}
.main-nav-links a.active {
    color: var(--gold);
    background: var(--gold-glow);
    font-weight: 600;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    position: relative;
    z-index: 10;
    background: var(--nav-bg);
    border-top: 1px solid var(--gold-dim);
    padding: 20px;
    backdrop-filter: blur(10px);
    margin-top: 40px;
}
.site-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.site-footer .footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0; padding: 0;
}
.site-footer .footer-links a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85em;
    opacity: 0.9;
    transition: color 0.3s, opacity 0.3s;
    position: relative;
}
.site-footer .footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}
.site-footer .footer-links a:hover { color: #ffed4e; opacity: 1; }
.site-footer .footer-links a:hover::after { width: 100%; }
.site-footer .footer-copy {
    color: var(--text-muted);
    font-size: 0.85em;
    margin: 0;
}

/* ── Espaciador nav fija ────────────────────────────────── */
.nav-spacer {
    height: var(--nav-height);
}

/* ── Banner publicitario ────────────────────────────────── */
.ad-banner {
    max-width: 900px;
    margin: 30px auto;
    text-align: center;
    min-height: 100px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9em;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    .main-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 10px;
        border-bottom: 1px solid var(--gold-dim);
        backdrop-filter: blur(10px);
        z-index: 999;
    }
    .main-nav-links.open {
        display: flex;
    }
    .main-nav-logo span {
        font-size: 0.85em;
    }
    .site-footer .footer-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .site-footer .footer-links {
        gap: 12px;
    }
}

/* ── Banner de Consentimiento de Cookies ────────────────── */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 25, 0.97);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
    padding: 18px 24px;
    z-index: 9999;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    animation: slideUpCookie 0.4s ease-out;
}
@keyframes slideUpCookie {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}
#cookie-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88em;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}
#cookie-banner a {
    color: #ffd700;
    text-decoration: underline;
}
.cookie-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-btn-accept {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}
.cookie-btn-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.85em;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.cookie-btn-reject:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 600px) {
    #cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-btns {
        width: 100%;
    }
    .cookie-btn-accept,
    .cookie-btn-reject {
        flex: 1;
        text-align: center;
    }
}
