:root {
    --bg-darker: #0d0d12;
    --bg-card: #1c1c24;
    --legendary: #f39c12;
    --mythic: #f1c40f;
    --text-light: #f5f6fa;
    --text-muted: #a0a0a0;
    --font-heading: 'Teko', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-darker);
    color: var(--text-light);
    overflow-x: hidden;
}

.text-legendary { color: var(--legendary); }
.text-mythic { color: var(--mythic); text-shadow: 0 0 10px rgba(241, 196, 15, 0.4); }

.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: rgba(13, 13, 18, 0.95);
    border-bottom: 2px solid var(--bg-card); position: sticky; top: 0; z-index: 1000;
}

.logo { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; line-height: 1; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-light); text-decoration: none; font-weight: 900; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--legendary); }

.hero { text-align: center; padding: 60px 20px 30px; }
.hero h1 { font-family: var(--font-heading); font-size: 4.5rem; line-height: 0.9; margin-bottom: 10px; }
.hero p { color: var(--text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }

.section-container { width: 100%; padding: 20px; display: flex; justify-content: center; }

/* EL CUADRO DEL MAPA */
.map-wrapper {
    position: relative; 
    background: #121c26; 
    padding: 5px;
    border-radius: 15px;
    border: 2px solid var(--legendary);
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.2);
    width: 100%; 
    max-width: 600px; 
    margin: 0 auto;
    transition: 0.3s ease;
}

#mapa-interactivo {
    width: 100%;
    aspect-ratio: 1 / 1; 
    border-radius: 10px;
    background-color: #121c26; 
    z-index: 1;
}

/* BOTÓN AMPLIAR */
#btn-ampliar {
    position: absolute;
    top: 15px; right: 15px; z-index: 1000;
    background: var(--legendary); color: #000; border: none;
    padding: 8px 15px; font-family: var(--font-heading); font-size: 1.2rem;
    font-weight: 700; border-radius: 5px; cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: 0.2s;
}

#btn-ampliar:hover { background: var(--mythic); transform: scale(1.05); }

/* PANTALLA COMPLETA */
.map-wrapper.fullscreen {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    max-width: none; z-index: 9999; border-radius: 0; padding: 0; border: none;
}
.map-wrapper.fullscreen #mapa-interactivo { height: 100vh; aspect-ratio: auto; border-radius: 0; }

/* PALETA DE COLORES ARREGLADA (MÁS ABAJO) */
#paleta-colores {
    position: absolute;
    top: 450px; 
    left: 15px;
    z-index: 1000;
    background: rgba(28, 28, 36, 0.9);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #444;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.color-btn { width: 25px; height: 25px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: 0.2s; }
.color-btn:hover { transform: scale(1.2); }
.color-btn.seleccionado { border: 2px solid #fff; transform: scale(1.1); box-shadow: 0 0 8px rgba(255,255,255,0.8); }

/* ESTILOS DE LA BOTONERA DE DIBUJO Y EL LÁPIZ */
.leaflet-pm-toolbar { box-shadow: 0 0 10px rgba(0,0,0,0.8) !important; }
.button-container.active .leaflet-buttons-control-button { background-color: var(--legendary) !important; color: #000 !important; }

/* ICONOS PERSONALIZADOS (TODOS INCLUIDOS) */
.icon-lapiz::after { content: '✏️'; font-size: 16px; display: block; text-align: center; line-height: 30px; }
.icon-flecha::after { content: '↘'; font-size: 18px; font-weight: bold; display: block; text-align: center; line-height: 30px; color: #333;}
.icon-avion::after { content: '✈️'; font-size: 16px; display: block; text-align: center; line-height: 30px; }
.icon-basura::after { content: '💣'; font-size: 16px; display: block; text-align: center; line-height: 30px; }
.icon-enemigo::after { content: '🥷'; font-size: 16px; display: block; text-align: center; line-height: 30px; }
.icon-ruta::after { content: '🗺️'; font-size: 16px; display: block; text-align: center; line-height: 30px; }
.icon-texto::after { content: '🔤'; font-size: 16px; display: block; text-align: center; line-height: 30px; }
.icon-zona::after { content: '⚖️'; font-size: 16px; display: block; text-align: center; line-height: 30px; }

.footer { text-align: center; padding: 40px 20px; border-top: 1px solid #222; margin-top: 50px; color: var(--text-muted); font-size: 0.8rem; }

/* SOMBRA PARA LOS EMOJIS DEL SALTO */
.drop-icon { font-size: 18px; text-align: center; line-height: 20px; filter: drop-shadow(0px 0px 3px rgba(0,0,0,0.8)); }

/* DISEÑO DEL TEXTO TÁCTICO */
.texto-tactico {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 0 0 8px rgba(0,0,0,0.8);
    white-space: nowrap;
    letter-spacing: 1px;
}

/* EL ARREGLO DEL CELULAR ESTÁ ACÁ ADENTRO */
@media (max-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
    .navbar { flex-direction: column; gap: 15px; }
    .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
    .section-container { padding: 10px; }
}

/* BLOQUEO DE ARRASTRE FANTASMA EN PC */
#mapa-interactivo img {
    -webkit-user-drag: none !important; 
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-select: none !important; 
}

/* CONTENEDOR DE BOTONES FLOTANTES */
.contenedor-donaciones {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.btn-donar-arg, .btn-donar-int {
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
    border: 2px solid #fff;
    transition: transform 0.2s;
}

.btn-donar-arg {
    background: #009ee3; /* Color MercadoPago */
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 158, 227, 0.4);
}

.btn-donar-int {
    background: #113285; /* Color PayPal */
    color: #fff;
    box-shadow: 0 4px 15px rgba(17, 50, 133, 0.4);
}

.btn-donar-arg:hover, .btn-donar-int:hover {
    transform: scale(1.05);
}

/* SELECTOR DE IDIOMAS */
.idioma-selector {
    background: #111;
    color: #fff;
    border: 1px solid #f1c40f;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    cursor: pointer;
    margin-left: 15px;
    outline: none;
}
.idioma-selector:hover {
    background: #222;
}

/* ========================================== */
/* BOTON DISCORD ANIMADO */
/* ========================================== */
.btn-discord {
    display: inline-block;
    background-color: #5865F2;
    color: #ffffff;
    font-family: 'Teko', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 30px;
    border-radius: 8px;
    margin-top: 15px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    border: 2px solid #5865F2;
    transition: all 0.3s ease;
    animation: latido 2s infinite;
}

.btn-discord:hover {
    background-color: #ffffff;
    color: #5865F2;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

@keyframes latido {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}