/* Variables y reset */
:root {
    /* Colores de la paleta */
    --verde-claro: #c8d29c;
    --azul-medio: #5059bc;
    --oliva: #8a9a46;
    --azul-oscuro: #063565;
    --fucsia: #EC268F;
    --azul-muy-oscuro: #00203a;
    
    /* Colores de la interfaz */
    --background: #ffffff;
    --foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --border: #e2e8f0;
    
    /* Espaciado */
    --container-padding: 2rem;
    --radius: 0.5rem;
}

/* Reset básico */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.main-content {
    flex: 1;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1050;
    width: 100%;
    border-bottom: 1px solid var(--border);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-email {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--azul-oscuro);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--azul-muy-oscuro);
}

.btn-outline {
    background-color: transparent;
    color: var(--azul-medio);
    border: 1px solid var(--azul-medio);
}

.btn-outline:hover {
    background-color: rgba(80, 89, 188, 0.1);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}


/* Footer */
.footer {
    width: 100%;
    border-top: 1px solid var(--border);
    background-color: var(--azul-muy-oscuro);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.875rem;
    color: #94a3b8;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-address {
    font-style: normal;
    font-size: 0.875rem;
    color: #94a3b8;
    text-align: center;
}

.footer-email {
    margin-top: 0.5rem;
}

.footer-email a {
    transition: color 0.2s ease;
}

.footer-email a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #94a3b8;
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: white;
}

.official-site {
    margin-top: 1rem;
}

.official-site a {
    color: var(--verde-claro);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.official-site a:hover {
    color: white;
}

.footer-bottom {
    padding: 1rem 0;
    border-top: 1px solid #1e293b;
    text-align: center;
}

.copyright {
    font-size: 0.75rem;
    color: #64748b;
}

/* Media Queries */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-col {
        align-items: flex-start;
        text-align: left;
    }
    
    .user-email {
        display: inline-block;
    }
}

@media (max-width: 767px) {
    .btn span {
        display: none;
    }
    
    .btn-icon {
        padding: 0.5rem;
    }
}

/* Estilos para los marcadores y popups */
.station-point .point-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.station-popup {
    padding: 10px;
}

.station-popup h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #063565;
}

.station-status {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.station-last-update {
    font-size: 12px;
    color: #666;
    margin: 8px 0;
}

.station-link {
    display: inline-block;
    color: #5059bc;
    text-decoration: none;
    font-weight: 500;
}

.status-Conectado {
    background-color: var(--oliva);
}

.status-Desconectado {
    background-color: var(--fucsia);
}

.status-Desactualizado {
    background-color: var(--verde-claro);
}

/* Estilos para la leyenda */
.map-legend {
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.legend-title {
    margin: 0 0 8px;
    font-size: 14px;
    color: #063565;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid rgba(0,0,0,0.2);
}

.legend-label {
    font-size: 12px;
    color: #666;
}