/* Estilos para botones de acción en hero y página de mapa */

/* Botones de acción en hero */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--wp--preset--color--accent, #436C7C);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    min-width: 140px;
    justify-content: center;
}

.action-button:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: var(--wp--preset--color--primary, #D6AA59);
}

.action-icon {
    font-size: 1.2rem;
}

.filters-button {
    border: 2px solid rgba(67, 108, 124, 0.2);
}

.map-button {
    border: 2px solid rgba(214, 170, 89, 0.2);
}

.filters-button:hover {
    border-color: var(--wp--preset--color--accent, #436C7C);
}

.map-button:hover {
    border-color: var(--wp--preset--color--primary, #D6AA59);
}

/* Página de mapa */
.page-mapa {
    padding: 2rem;
}

.page-mapa .page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-mapa .page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.page-mapa .page-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Estadísticas del mapa */
.mapa-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--wp--preset--color--primary, #D6AA59);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Controles del mapa */
.mapa-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.map-control-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--wp--preset--color--primary, #D6AA59);
    color: white;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-control-btn:hover {
    background: var(--wp--preset--color--accent, #436C7C);
    transform: translateY(-2px);
}

.map-control-btn span {
    font-size: 1rem;
}

/* Popups personalizados del mapa */
.custom-popup {
    min-width: 250px;
    text-align: center;
}

.popup-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.custom-popup h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.custom-popup h3 a {
    color: #333;
    text-decoration: none;
}

.custom-popup h3 a:hover {
    color: var(--wp--preset--color--primary, #D6AA59);
}

.custom-popup p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
}

.popup-button {
    display: inline-block;
    background: var(--wp--preset--color--primary, #D6AA59);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
}

.popup-button:hover {
    background: var(--wp--preset--color--accent, #436C7C);
}

/* Estado sin escuelas */
.no-escuelas-mapa {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Contenedor del mapa */
.mapa-wrapper {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: white;
}

#mapa-principal {
    height: 600px;
    width: 100%;
    min-height: 400px;
}

/* Tooltips personalizados */
.custom-tooltip {
    background: rgba(0,0,0,0.8) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

.custom-tooltip:before {
    border-top-color: rgba(0,0,0,0.8) !important;
}

.no-escuelas-mapa h2 {
    color: #333;
    margin-bottom: 1rem;
}

.no-escuelas-mapa p {
    color: #666;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .action-button {
        min-width: 200px;
    }
    
    .page-mapa {
        padding: 1rem;
    }
    
    .page-mapa .page-title {
        font-size: 2rem;
    }
    
    .mapa-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat-item {
        min-width: 200px;
    }
    
    .mapa-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .map-control-btn {
        min-width: 200px;
        justify-content: center;
    }
    
    #mapa-principal {
        height: 400px !important;
    }
    
    .mapa-wrapper {
        margin: 1rem 0;
    }
    
    .custom-popup {
        min-width: 200px;
    }
    
    .popup-thumbnail {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        margin: 1.5rem -1rem 0;
    }
    
    .action-button {
        margin: 0 1rem;
        min-width: auto;
        flex: 1;
    }
    
    .page-mapa .page-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    #mapa-principal {
        height: 350px !important;
    }
    
    .page-mapa {
        padding: 0.5rem;
    }
    
    .mapa-stats {
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 1rem;
        min-width: 150px;
    }
    
    .custom-popup {
        min-width: 180px;
    }
    
    .popup-thumbnail {
        height: 80px;
    }
    
    .custom-popup h3 {
        font-size: 1rem;
    }
}

/* Animaciones */
.action-button,
.map-control-btn,
.stat-item {
    animation: fadeInUp 0.6s ease forwards;
}

.action-button:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}