/* --- Estilos para el nuevo contenedor de clima --- */
.clima-container {
  background-color: #212529; 
  color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  max-width: 800px;
  margin: 40px auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
}

/* --- SECCIÓN CLIMA ACTUAL --- */
.clima-actual {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #444;
  padding-bottom: 20px;
}
.info-principal { display: flex; align-items: center; }
.info-principal .icono-clima img { width: 100px; height: 100px; }
.info-principal .temperatura { margin-left: 10px; }
.info-principal .temperatura span { font-size: 3.5rem; font-weight: bold; }
.info-principal .temperatura p { font-size: 1.2rem; color: #ccc; margin: 0; text-transform: capitalize; }
.info-secundaria { font-size: 1rem; color: #ccc; text-align: right; margin-top: 10px; }
.info-secundaria p { margin: 5px 0; }

/* --- SECCIÓN CLIMA POR HORAS --- */
.clima-por-horas { margin-top: 20px; }
.clima-por-horas h3 { color: #fff; font-weight: bold; margin-bottom: 15px; }

.scroll-horizontal {
  display: flex;
  overflow-x: auto;
  padding-bottom: 15px;
}

.hora-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 15px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  min-width: 65px;
  border: 1px solid transparent; /* Borde transparente por defecto */
  
  /* --- MODIFICADO: Para interactividad --- */
  cursor: pointer; 
  transition: all 0.2s ease-in-out;
}

.hora-item:hover {
  background-color: rgba(255, 255, 255, 0.15); 
  transform: translateY(-3px); /* Pequeño efecto al pasar el mouse */
}

.hora-item .hora-label { font-size: 0.9rem; font-weight: bold; color: #ccc; }
.hora-item img { width: 50px; height: 50px; }
.hora-item .hora-temp { font-size: 1.1rem; font-weight: bold; color: #fff; }

/* **** ¡NUEVO! Estilo para la hora actual **** */
.hora-item.item-actual {
  background-color: rgba(0, 150, 255, 0.2); /* Un fondo azulado */
  border: 1px solid #00aaff; /* Un borde azul brillante */
}

/* **** ¡NUEVO! Estilos para el Modal del Clima **** */
#modal-clima-overlay {
  display: none; /* Oculto por defecto */
  position: fixed; /* Cubre toda la pantalla */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
  
  /* Centra la caja del modal */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Por encima de todo */
  padding: 15px;
  box-sizing: border-box; /* Para que el padding no afecte el ancho */
}

#modal-clima-box {
  background-color: #343a40; /* Un gris oscuro, más claro que el fondo */
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px; /* Ancho máximo */
  text-align: center;
  position: relative;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  animation: modal-fade-in 0.3s ease;
}

/* Pequeña animación de entrada */
@keyframes modal-fade-in {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#modal-clima-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2.5rem;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}

#modal-clima-close:hover {
  color: #ffffff;
}

#modal-clima-icono {
  width: 120px;
  height: 120px;
  margin: 10px 0;
}

#modal-clima-hora {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
}

#modal-clima-desc {
  font-size: 1.2rem;
  text-transform: capitalize;
  margin-top: 10px;
}