/* global.css — estilos compartidos (reset, header, layout, utilidades) */

/* RESET & BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { min-height:100%; height:100%; font-family: 'Poppins', system-ui, Arial, sans-serif; background: linear-gradient(135deg,#120922,#241a44); color:#fff; }
a { color:inherit; text-decoration:none; }

/* MAKE LAYOUT FLEX SO FOOTER SITS BOTTOM */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex: 1;
    background: transparent;
}


/* TYPOGRAPHY */
h1,h2,h3 { margin: 0 0 10px 0; font-weight:700; }
p { margin: 0 0 12px 0; line-height:1.4; }

/* LAYOUT CONTAINERS */
.public-panel { max-width:1200px; margin:40px auto; padding:24px; }
.center { text-align:center; margin:20px 0; }

/* HEADER (global) */
.main-header { position:sticky; top:0; z-index:1000; display:flex; align-items:center; justify-content:space-between; padding:14px 28px; background: linear-gradient(180deg, rgb(7, 17, 35), rgb(7, 17, 35)); backdrop-filter: blur(6px); border-bottom:1px solid rgba(255,255,255,0.06); }
.logo { height:48px; }
.main-nav { display:flex; gap:12px; align-items:center; }
.main-nav button { background:transparent; border:0; color:#eaf2ff; padding:8px 12px; cursor:pointer; border-radius:10px; font-weight:600; }
.main-nav .btn-outline { border:1px solid rgba(255,255,255,0.06); padding:8px 12px; }

/* BUTTONS (shared styles) */
button, .btn-main, .btn-ghost {
    font-family: inherit;
    cursor: pointer;
    border-radius: 10px;
    transition: transform .18s, box-shadow .18s;
}
.btn-main { padding:10px 18px; font-weight:700; }
.btn-ghost { padding:8px 14px; background:transparent; border:1px solid rgba(255,255,255,0.04); }

/* CARD BASE */
.card, .shop-item {
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding:12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* GRID */
.grid-cards { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:18px; }

/* UTILITIES */
.text-center { text-align:center; }
.shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.4); }

/* FOOTER (global) */
.site-footer { margin-top:40px; padding:24px; background: linear-gradient(180deg, rgb(7, 17, 35), rgb(7, 17, 35)); color:#dbeeff; }
.footer-container { max-width:1100px; margin: 0 auto; padding:40px 20px; display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:30px; }
.footer-bottom { text-align:center; opacity:0.7; padding-top:12px; }


/* RESPONSIVE BREAKPOINT */
@media (max-width: 900px) {
    .public-panel { padding: 18px; margin: 20px auto; }
    .main-header { padding: 12px 18px; }
}

/* ICONOS DE MONEDA GLOBAL */
.coin-icon {
    width: 0.85em !important;
    height: 0.85em !important;
    vertical-align: middle !important;
    margin-right: 5px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
    display: inline-block;
    object-fit: contain;
}

/* Ajuste específico para contadores de cabecera (EL HUD) */
.gold-display {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(0,0,0,0.4) !important;
    padding: 2px 10px !important;
    border-radius: 12px;
    border: 1px solid rgba(255,215,0,0.2) !important;
    font-weight: 700;
}

/* Forzamos el tamaño de la imagen en el header para que coincida con los números */
.gold-display img.coin-icon {
    width: 20px !important;
    height: 20px !important;
    margin-right: 0;
}

/* Ajuste para precios en la tienda */
.premium-bundle-card p .coin-icon {
    width: 1rem !important;
    height: 1rem !important;
}

/* FORZAR VISIBILIDAD DE PARTÍCULAS ELEMENTALES */
.elemental-particle {
    position: absolute !important;
    opacity: 0;
    
    z-index: 0 !important;
    pointer-events: none !important;
    text-shadow: 0 0 15px rgba(255,255,255,0.8) !important;
}

@keyframes floatParticle {
    0% {
        transform: translateY(105vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    90% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* ESTILO DE SCROLLBAR GLOBAL — PREMIUM DARK/GOLD */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #0f0a1e;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2a1f4d, #1a1233);
    border: 2px solid #0f0a1e;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3d2d6d, #251a47);
    border-color: rgba(255, 215, 0, 0.2);
}

/* Soporte para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #2a1f4d #0f0a1e;
}

/* COOKIE CONSENT GLOBAL */
.cookie-consent {
    position: fixed;
    left: clamp(14px, 3vw, 30px);
    right: clamp(14px, 3vw, 30px);
    bottom: 18px;
    z-index: 999999;
    display: none;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 8px;
    background: rgba(7, 11, 26, 0.94);
    border: 1px solid rgba(255,215,0,0.3);
    box-shadow: 0 18px 70px rgba(0,0,0,0.5);
    backdrop-filter: blur(18px);
}

.cookie-consent.is-visible {
    display: grid;
}

.cookie-consent h3 {
    margin: 0 0 6px;
    color: #ffd700;
    font-size: 1rem;
}

.cookie-consent p {
    margin: 0;
    color: rgba(233,242,255,0.72);
    line-height: 1.45;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.cookie-btn {
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.cookie-btn.primary {
    background: linear-gradient(135deg, #ffd700, #ff9f1c);
    color: #151000;
    border-color: transparent;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    place-items: center;
    padding: 18px;
    background: rgba(0,0,0,0.62);
    backdrop-filter: blur(8px);
}

.cookie-modal.is-visible {
    display: grid;
}

.cookie-modal-panel {
    width: min(620px, 100%);
    max-height: min(720px, calc(100vh - 36px));
    overflow: auto;
    padding: 24px;
    border-radius: 8px;
    background: #090e20;
    border: 1px solid rgba(255,215,0,0.3);
    box-shadow: 0 22px 90px rgba(0,0,0,0.55);
}

.cookie-modal-panel h3 {
    margin: 0 0 8px;
    color: #ffd700;
}

.cookie-modal-panel p {
    margin: 0 0 18px;
    color: rgba(233,242,255,0.72);
    line-height: 1.55;
}

.cookie-option {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.09);
}

.cookie-option strong,
.cookie-option span {
    display: block;
}

.cookie-option strong {
    color: #fff;
}

.cookie-option span {
    margin-top: 4px;
    color: rgba(233,242,255,0.64);
    line-height: 1.4;
}

.cookie-option input {
    width: 42px;
    height: 22px;
    accent-color: #ffd700;
}

.cookie-embed-placeholder {
    min-height: 360px;
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    color: rgba(255,255,255,0.78);
}

.cookie-embed-placeholder strong {
    display: block;
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .cookie-consent {
        grid-template-columns: 1fr;
    }

    .cookie-actions {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
    }
}

