* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: system-ui, -apple-system, sans-serif; 
    background: linear-gradient(135deg, #74b9ff, #0984e3); 
    min-height: 100vh; 
    color: #333;
} 
h6{
    /* background-color: #0984e3; */
    font-size: 0.7em !important;
}
.btn-link{
    color: #333 !important;
}
.container { max-width: 500px; margin: 0 auto; padding: 20px; }
header { text-align: center; color: white; margin-bottom: 10px; }
header h1 { font-size: 2.5em; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }

.search-section { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 15px; 
    flex-wrap: wrap; 
}
input, button { 
    padding: 5px; 
    border: none; 
    border-radius: 5px; 
    font-size: 16px; 
    font-family: inherit;
}
#cityInput { 
    flex: 1; 
    min-width: 200px; 
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
}
button { 
    background: rgba(255,255,255,0.2); 
    color: white; 
    cursor: pointer; 
    transition: all 0.3s; 
}
button:hover:not(:disabled) { 
    background: rgba(255,255,255,0.3); 
    transform: scale(1.05); 
}
button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

#geoBtn { padding: 5px 6px; min-width: auto; font-size: 14px; }

#favoritesBtnContainer {
    text-align: center;
    margin-bottom: 20px;
}
#favoritesBtn {
    background: #0d29f9;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
}

/* Modal Favoritos */
.favorites-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.favorites-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.favorites-content h3 { margin-bottom: 20px; color: #2c3e50; }
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.fav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    border:1px solid #aaa;
}
.fav-item:hover { background: #e9ecef; }
.fav-city { font-weight: 500; }
.fav-delete { 
    background: #e74c3c; 
    color: white; 
    border: none; 
    padding: 5px 10px; 
    border-radius: 50%; 
    font-size: 14px;
    cursor: pointer;
}.fav-delete:hover { 
    background: #6a1e16 !important; 
}
.close-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
}
.close-btn:hover {
    background: #444b4b !important;
}

.weather-container { 
    background: rgba(255,255,255,1); 
    backdrop-filter: blur(10px); 
    border-radius: 20px; 
    padding: 30px; 
    text-align: center; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
    position: relative;
}

.add-fav-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #00b894;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.add-fav-btn:hover { background: #00a085; transform: scale(1.1); }

.location-info h2 { font-size: 2.5em; margin-bottom: 10px; color: #2c3e50; }
.location-info p { color: #7f8c8d; font-size: 1.1em; }

.current-weather { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 20px; 
    margin: 20px 0; 
}
#weatherIcon { width: 100px; height: 100px; }
#temperature { font-size: 4em; font-weight: bold; margin: 0; color: #e74c3c; }
#description { font-size: 1.3em; margin: 10px 0 0 0; }

.details { 
    display: flex; 
    justify-content: space-around; 
    font-size: 1.1em; 
    background: rgba(255,255,255,0.5);
    padding: 20px;
    border-radius: 15px;
}
.details div { 
    display: flex; 
    flex-direction: column; 
    gap: 5px; 
}
.details span:first-child { font-weight: bold; color: #34495e; }

.preloader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #333;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error { 
    color: #e17055; 
    text-align: center; 
    padding: 20px; 
    background: rgba(255,255,255,0.9); 
    border-radius: 15px; 
    margin: 20px 0; 
    backdrop-filter: blur(10px);
}

@media (max-width: 600px) {
    .search-section { flex-direction: column; }
    .current-weather { flex-direction: column; gap: 10px; }
    .details { flex-direction: column; gap: 15px; }
}
/* Pronóstico 7 días */
.forecast-toggle {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 15px;
    cursor: pointer;
    margin: 20px auto;
    display: block;
    font-size: 16px;
    transition: all 0.3s;
}
.forecast-toggle:hover { background: #2980b9 !important; transform: scale(1.05); }

.forecast-container {
    display: none;
    margin-top: 20px;
}
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.forecast-day {
    background: rgba(255,255,255,0.8);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
}
.forecast-day h4 { font-size: 1.1em; margin-bottom: 10px; color: #2c3e50; }
.forecast-icon { width: 50px; height: 50px; margin: 0 auto 10px; }
.forecast-temp { font-size: 1.2em; font-weight: bold; color: #e74c3c; }
.forecast-desc { font-size: 0.9em; color: #7f8c8d; }

/* Ocultar buscador al inicio */
#searchSection {
    display: none;
}

/* Estilo del botón + (ajusta a tu gusto) */
.toggle-search {
      width: 30px;      /* Ancho fijo */
    height: 30px;     /* Alto fijo = cuadrado */
    font-size: 1.5rem;
    padding: 0px;/*0.3rem 0.8rem;*/
    border-radius: 10px;
   /*  border: 1px solid #ccc;
    background: #fff; */
    cursor: pointer;
    margin-bottom: 3px;
}

.sombreado{
    background: radial-gradient(circle, #474747ff 0%, #FFFFFF 60%);
}