:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --accent-color: #fbbc05;
    --danger-color: #ea4335;
    --dark-color: #202124;
    --darker-color: #171717;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f1b3a, #1a2a6c, #2a4a7c);
    color: var(--light-color);
    overflow: hidden;
    height: 100vh;
}

.container {
    display: grid;
    grid-template-columns: 380px 1fr 380px;
    grid-template-rows: 80px 1fr;
    height: 100vh;
    gap: 15px;
    padding: 15px;
}

/* Header y Logo */
header {
    grid-column: 1 / 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.logo-img svg {
    width: 28px;
    height: 28px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.letter {
    opacity: 0;
    transform: translateY(50px);
    animation: letterAppear 0.8s forwards;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.7);
    background: linear-gradient(to right, #80cbc4, #e0f2f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 1px;
}

.letter.C { animation-delay: 0.2s; }
.letter.O { animation-delay: 0.8s; }
.letter.M { animation-delay: 0.4s; }
.letter.E2 { animation-delay: 0.5s; }
.letter.T { animation-delay: 0.6s; }
.letter.E3 { animation-delay: 0.7s; }

.sun-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    opacity: 0;
    transform: translateY(50px);
    animation: letterAppear 0.8s forwards 0.3s;
    position: relative;
    margin: 0 3px;
}

.sun-wrapper svg {
    width: 100%;
    height: 100%;
    fill: #ff9800;
    filter: drop-shadow(0 0 15px #ff9800) drop-shadow(0 0 30px #ff9800);
}

.sun-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(255,152,0,0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: sunPulse 2s infinite alternate;
}

@keyframes letterAppear {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes sunPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Búsqueda y Controles */
.search-container {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
    position: relative;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--light-color);
    font-weight: 500;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
}

.datetime-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.datetime-selector input {
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.12);
    color: var(--light-color);
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.datetime-selector input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50px;
    color: var(--light-color);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-decoration: none;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.control-btn.primary {
    background: var(--primary-color);
}

.control-btn.primary:hover {
    background: #0d62d9;
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.4);
}

/* ============================================
   BOTÓN SOLO ICONO
   ============================================ */
.control-btn.icon-only {
    padding: 12px !important;
    width: 44px;
    min-width: 44px !important;
    justify-content: center;
}

.control-btn.icon-only .btn-text {
    display: none;
}

.control-btn.icon-only i {
    margin-right: 0 !important;
    font-size: 1.2rem;
}

/* ============================================
   BOTÓN COMPACTO
   ============================================ */
.control-btn.compact {
    padding: 12px 15px !important;
    min-width: auto;
}

.control-btn.compact .btn-text {
    font-size: 0.9rem;
}

/* ============================================
   SELECTOR DE IDIOMAS MEJORADO
   ============================================ */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--light-color);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    min-width: 120px;
    justify-content: center;
    position: relative;
    z-index: 100;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.language-btn i {
    font-size: 1.1rem;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 40, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    margin-top: 5px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-height: 350px;
    overflow-y: auto;
    display: none;
    z-index: 2000;
    width: 220px; /* Más ancho */
    min-width: 220px; /* Mínimo más ancho */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.language-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Ocultar scrollbar pero mantener funcionalidad */
.language-dropdown::-webkit-scrollbar {
    width: 6px;
}

.language-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.language-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.language-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-option.active {
    background: rgba(26, 115, 232, 0.2);
    border-left: 3px solid var(--primary-color);
}

.language-option .flag {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.language-option span:last-child {
    flex: 1;
}

/* Selector de idiomas compacto */
.language-selector.compact {
    margin: 0;
}

.language-btn.compact {
    padding: 12px 15px !important;
    min-width: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-btn.compact i {
    font-size: 1.1rem;
}

.language-btn.compact span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   ANIMACIÓN SUAVE PARA EL DROPDOWN
   ============================================ */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-dropdown {
    animation: dropdownFadeIn 0.3s ease forwards;
}

/* Paneles */
.panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 500;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 600;
}

.panel-actions {
    display: flex;
    gap: 10px;
}

.panel-action {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    cursor: pointer;
    transition: var(--transition);
}

.panel-action:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Tarjetas de Información */
.info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--light-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h3 i {
    color: var(--accent-color);
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.data-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.data-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.data-unit {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.data-subvalue {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.coordinates {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 15px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.location-item:last-child {
    border-bottom: none;
}

.location-icon {
    color: var(--primary-color);
    width: 20px;
}

.recommendation {
    background: rgba(59, 130, 246, 0.15);
    border-left: 4px solid var(--primary-color);
    padding: 16px;
    border-radius: 8px;
    margin-top: 10px;
    display: flex;
    gap: 12px;
}

.recommendation i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Mapa */
.map-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

.map-overlay {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 18px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.map-controls {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.map-control {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.map-control:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

/* Gráficos */
.chart-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    height: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.metric-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.metric-btn {
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--border-radius);
    color: var(--light-color);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.metric-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.metric-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
}

/* Clima */
.weather-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.weather-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 10px;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.weather-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.weather-detail i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.weather-detail .value {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.weather-detail .label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.weather-alert {
    background: rgba(234, 67, 53, 0.2);
    border-left: 4px solid var(--danger-color);
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-alert i {
    color: var(--danger-color);
}

.update-btn {
    margin-top: 15px;
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.update-btn:hover {
    background: #0d62d9;
    transform: translateY(-2px);
}

.unit-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.unit-btn {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: var(--light-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.unit-btn.active {
    background: var(--primary-color);
}

.unit-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
}

.time-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.9rem;
}

.time-indicator i {
    color: var(--accent-color);
}

/* Modal de Sugerencias */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.suggestions-modal {
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .suggestions-modal {
    transform: translateY(0);
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-content {
    padding: 25px;
}

.suggestion-category {
    margin-bottom: 25px;
}

.suggestion-category h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-category h3 i {
    font-size: 1.1rem;
}

.suggestion-list {
    list-style: none;
}

.suggestion-item {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    transition: var(--transition);
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.suggestion-item i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* Resultados de Búsqueda */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 2000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.search-result {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result:last-child {
    border-bottom: none;
}

.search-result i {
    color: var(--primary-color);
}

.search-result .location {
    font-weight: 500;
}

.search-result .details {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Fuentes de datos */
.data-source {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.nasa-badge {
    background: linear-gradient(45deg, #0b3d91, #1a73e8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estilos para Leaflet */
.leaflet-container {
    background: #1a2a6c;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.leaflet-popup-content-wrapper {
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(15px);
    color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.leaflet-popup-tip {
    background: rgba(30, 30, 40, 0.95);
}

.leaflet-control-zoom a {
    background: rgba(0, 0, 0, 0.7);
    color: var(--light-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.leaflet-control-zoom a:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 1400px) {
    .container {
        grid-template-columns: 350px 1fr 350px;
    }
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 320px 1fr;
        grid-template-rows: 80px 1fr 400px;
    }
    
    header {
        grid-column: 1 / 3;
    }
    
    .right-panel {
        grid-column: 1 / 3;
        grid-row: 3;
    }
    
    .datetime-selector {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto auto;
        gap: 10px;
        padding: 10px;
        height: auto;
        min-height: 100vh;
    }
    
    header {
        grid-column: 1;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        height: auto;
    }
    
    .left-panel, .right-panel {
        grid-column: 1;
    }
    
    .left-panel {
        grid-row: 3;
    }
    
    .right-panel {
        grid-row: 4;
    }
    
    .search-container {
        margin: 0 15px;
        width: 100%;
    }
    
    .layer-selector {
        top: 15px;
        right: 75px;
    }
    
    .layer-panel {
        width: 220px;
    }
    
    .datetime-selector {
        flex-direction: row;
        gap: 10px;
    }
    
    .weather-details {
        grid-template-columns: 1fr;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .sun-wrapper {
        width: 30px;
        height: 30px;
    }
    
    .logo-img {
        height: 40px;
        width: 40px;
    }
    
    /* Selector de idiomas en móviles */
    .language-selector {
        margin-right: 10px;
        margin-left: 10px;
    }
    
    .language-btn {
        min-width: 100px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 8px;
        gap: 8px;
    }
    
    header {
        padding: 12px;
    }
    
    .panel {
        padding: 15px;
    }
    
    .search-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .control-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .datetime-selector {
        flex-direction: column;
    }
    
    .metric-selector {
        grid-template-columns: 1fr;
    }
    
    .map-controls, .map-overlay, .layer-selector {
        display: none;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .sun-wrapper {
        width: 25px;
        height: 25px;
    }
    
    .logo-img {
        height: 35px;
        width: 35px;
    }
    
    /* Botones compactos en móviles */
    .control-btn.compact .btn-text,
    .language-btn.compact span {
        display: none;
    }
    
    .control-btn.compact,
    .language-btn.compact {
        padding: 10px !important;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        justify-content: center;
    }
    
    .language-selector {
        position: static;
        margin: 10px 0;
    }
    
    .language-dropdown {
        width: 200px;
        left: 50%;
        transform: translateX(-50%);
    }
}