/* ============================================
   ESTILOS PARA LA PÁGINA DE MUNICIPIOS PRÓXIMOS
   ============================================ */

/* Variables */
:root {
    --primary-color: #1a73e8;
    --primary-dark: #0d47a1;
    --primary-light: #4d90fe;
    --secondary-color: #ffc107;
    --text-light: #e0e0e0;
    --text-muted: #888888;
    --white: #ffffff;
    --gray-light: #333333;
    --gray: #666666;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --card-bg: #1e1e1e;
    --border-color: #333333;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

/* Estilos base */
.upcoming-cities-page {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Altura del header fijo */
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* Asegurar que el header fijo no tape el contenido */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Asegurar que los controles del mapa no se superpongan */
.leaflet-top, 
.leaflet-bottom {
    z-index: 400; /* Menor que el z-index del contenido principal */
}

/* Ajustar posición del control de zoom */
.leaflet-control-zoom {
    margin-top: 70px !important; /* Espacio para el header fijo */
    margin-left: 15px !important;
}

/* Ajustar posición del copyright */
.leaflet-control-attribution {
    bottom: 5px !important;
    right: 5px !important;
    left: auto !important;
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    font-size: 10px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Encabezado de la página */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    padding-top: 2rem; /* Espacio adicional en la parte superior */
}

.page-header .container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 25px;
}

.page-header h1 {
    font-size: 2rem;
    margin: 0 0 1rem 0;
    padding: 0;
    position: relative;
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
}

.page-header h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 1.5rem auto 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    padding: 0 1rem;
}

/* Ajustes para tablets */
@media (max-width: 992px) {
    .page-header {
        padding: 2.5rem 1rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1.05rem;
        margin-top: 1.2rem;
    }
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .upcoming-cities-page {
        padding-top: 90px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .cities-list h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .page-header {
        padding: 2.5rem 0.5rem 1rem; /* Ajustado el padding superior e inferior */
    }
    
    .page-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .page-header h1:after {
        width: 50px;
        height: 2px;
        bottom: -8px;
    }
    
    .page-header p {
        font-size: 1rem;
        margin-top: 1rem;
        padding: 0 0.5rem;
        line-height: 1.5;
    }
    
    .page-header .container {
        padding: 0 0.5rem;
    }
}

.upcoming-cities-content {
    padding: 2rem 0 4rem;
    background: linear-gradient(to bottom, var(--darker-bg), var(--dark-bg));
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Efecto de patrón sutil en el fondo */
.upcoming-cities-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: -1;
}

/* Contenedor del mapa */
.map-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin: 0 auto 3rem;
    height: 500px;
    width: 100%;
    max-width: 1000px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.map-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

#upcoming-cities-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.cities-list {
    background: #1a1a1a; /* Fondo oscuro */
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.cities-list h2 {
    color: #ffffff; /* Blanco puro para mejor contraste */
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.8rem;
}

.cities-list h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 3px;
}

/* Grid de ciudades */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    margin: 0 auto 3rem;
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

/* Tarjetas de ciudades */
.city-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    margin: 0.5rem;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Efecto de brillo al pasar el ratón */
.city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.city-card:hover::before {
    opacity: 1;
}

.city-card h3 {
    margin: 0 0 1.2rem 0;
    color: var(--white);
    font-size: 1.25rem;
    padding: 0 0.5rem;
}

.city-card p {
    margin: 0.25rem 0;
    color: #cccccc; /* Texto gris claro */
    font-size: 0.9rem;
}

/* Estilos para el badge de estado */
.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 0.35rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    transform: scale(0.9);
}

.status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.4);
}

/* Estilos para el estado "Próximamente" */
.status-coming-soon {
    background: linear-gradient(135deg, #ff8a00, #ff5252);
    box-shadow: 0 2px 10px rgba(255, 138, 0, 0.3);
}

.status-coming-soon:hover {
    box-shadow: 0 4px 15px rgba(255, 138, 0, 0.4);
}

/* Estilos para el mapa */
.leaflet-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.leaflet-popup-content {
    margin: 1rem;
    min-width: 200px;
}

.leaflet-popup-content h3 {
    color: #1a237e;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.leaflet-popup-content p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* Estilos responsivos */
@media (max-width: 992px) {
    .map-container {
        height: 350px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 10px;
    }
    
    #upcoming-cities-map {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem 1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
        margin-bottom: 2rem;
    }
    
    .map-container {
        border-radius: 0;
        margin: 0 -15px 2rem;
        width: calc(100% + 30px);
        position: relative;
    }
    
    /* Ajustes adicionales para móviles */
    .leaflet-control-zoom {
        margin-top: 60px !important;
        margin-left: 10px !important;
    }
    
    .leaflet-control-attribution {
        font-size: 8px;
        max-width: 120px;
        padding: 1px 3px;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 350px;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }
    
    #upcoming-cities-map {
        min-height: 350px;
    }
    
    .cities-list {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 5px;
    }
    
    .city-card {
        padding: 1.5rem 1rem;
        margin: 0.25rem;
    }
    
    .city-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .status-badge {
        top: 10px;
        right: 10px;
        padding: 0.3rem 0.7rem;
        font-size: 0.65rem;
    }
}

/* ==================================
   ESTILOS DEL FOOTER
   ================================== */

footer {
    background: var(--darker-bg);
    color: var(--text-light);
    padding: 3rem 0 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-logo p {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h4, 
.footer-contact h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4:after,
.footer-contact h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.3rem 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Media Queries para el Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .footer-logo,
    .footer-links,
    .footer-contact {
        min-width: 100%;
    }
    
    .footer-logo p {
        max-width: 100%;
    }
}
