:root {
    --bg-light: #f0f4f8;
    --accent: #3498db;
    --text-main: #2c3e50; /* Color oscuro para que se vea bien */
    --text-dim: #7f8c8d;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
}

/* Fondos degradados claros */
body.day { background: linear-gradient(135deg, #e0f2fe 0%, #f0f4f8 100%); }
body.night { background: linear-gradient(135deg, #d1d8e0 0%, #f0f4f8 100%); }

.app-wrapper { padding: 20px; max-width: 1000px; margin: 0 auto; text-align: center; }

/* Buscador */
.top-nav { margin-bottom: 30px; display: flex; justify-content: center; }
.search-group {
    background: var(--white);
    padding: 8px 15px;
    border-radius: 100px;
    display: flex; align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
input { border: none; padding: 10px; outline: none; width: 180px; color: var(--text-main); font-size: 1rem; background: transparent; }
button { background: none; border: none; cursor: pointer; font-size: 1.2rem; }

/* Hero Section */
#app-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 4px; color: var(--accent); margin-bottom: 5px; font-weight: 700; }
h2#titulo { font-size: 3rem; margin: 0; color: var(--text-main); font-weight: 700; }
.hero-data { font-size: 1.5rem; font-weight: 500; margin-top: 10px; color: var(--accent); }

/* Grid de Pronóstico */
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px; margin-top: 40px;
}
.card {
    background: var(--white);
    padding: 20px; border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid #eef2f7;
    cursor: pointer; transition: 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.card h3 { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 10px; text-transform: capitalize; }
.card img { width: 50px; }
.card .temp { display: block; font-size: 1.4rem; font-weight: 700; margin: 5px 0; color: var(--text-main); }

/* Modal / Panel */
.panel-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px); z-index: 1000;
    display: flex; align-items: flex-end;
}
.panel-content {
    background: var(--white); width: 100%; max-height: 80vh;
    border-radius: 30px 30px 0 0; padding: 30px; overflow-y: auto;
}
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.panel-header span { font-weight: 700; font-size: 1.2rem; color: var(--text-main); }
.close-panel { font-size: 2rem; border: none; background: none; cursor: pointer; color: var(--text-main); }

.bento-grid-horas {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px;
}
.bento-item {
    background: #f8fafc; padding: 12px; border-radius: 15px; text-align: center; border: 1px solid #f1f5f9;
}
.bento-item div { color: var(--text-main); font-weight: 600; }
.bento-item .hora-label { font-size: 0.7rem; color: var(--text-dim); font-weight: 400; }

.hidden { display: none; }