/* --- MAPA INTERACTIVO --- */
.map-section {
    background: #0b0b0b;
    height: auto;
    min-height: 100vh;
}

.map-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    z-index: 20;
    flex-wrap: wrap;
    justify-content: center;
}

.toggle-btn {
    background: white;
    border: 0px solid var(--text-secondary);
    color: black;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}


.toggle-btn:hover {
    transform: scale(1.05);
    background: var(--accent-gold);
    color: #000;
}


.toggle-btn.active-26,
.toggle-btn.active-27,
.toggle-btn.active-28{
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}
/* 
.toggle-btn.active-27 {
    background: var(--accent-cyan); 
    color: #000;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.toggle-btn.active-28 {
    background: var(--accent-ring);
    background: var(--accent-gold);
    color: #fff;
    border-color: var(--accent-ring);
    box-shadow: 0 0 15px rgba(255, 81, 0, 0.4);
}
*/
.tactical-map {
    width: 90vw;
    height: 55vh;
    background-color: #111;
    background: linear-gradient(to bottom, #101b3f 40%, #3f4b76 80%, #203165 100%);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8) inset;
}

.map-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: var(--accent-cyan);
    font-family: monospace;
    font-size: 0.8rem;
    background: black;
    z-index: 100;
}

.spain-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 70%;
    /* border: 2px dashed #333; */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-weight: 700;
    font-size: 4rem;
    user-select: none;
}

.path {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 5;
}

.path:hover {
    filter: brightness(1.2);
}
.path-2026,
.path-2027,
.path-2028 {
    width: 120%;
    left: -10%;
}
.path-2026 {
    background-image: url("../images/eclipse-sp-2026.jpg");
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
}

.path-2027 {
    background-image: url("../images/eclipse-sp-2027.jpg");
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.35);
}
.path-2028 {
     background-image: url("../images/eclipse-sp-2028.jpg");
    box-shadow: 0 0 20px rgba(255, 81, 0, 0.35);
}

.path::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background: radial-gradient(
        ellipse at center,
        rgba(255,255,255,0.25),
        transparent 70%
    ); */
    pointer-events: none;
}
.path.visible {
    opacity: 1;
    pointer-events: auto;
    animation: slowParallax 60s linear infinite;
}

.map-details-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 15px 30px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.map-details-btn.active {
    opacity: 1;
    pointer-events: auto;
}

.map-details-btn:hover {
    background: var(--accent-cyan);
    color: #000;
}

@keyframes slowParallax {
    0% {
        background-position: 50% 0%;
    }
    100% {
        background-position: 50% 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .path.visible {
        animation: none;
    }
}