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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-image: url("https://images.pexels.com/photos/247599/pexels-photo-247599.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Contenedor del header */
.container-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
  color: white;
  border-radius: 0 0 20px 20px;
}

.container-header h1 {
  font-size: 2.2rem;
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* Formulario */
#search-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#get-city {
  width: 100%;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 30px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1rem;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: 0.3s ease;
}

#get-city::placeholder {
  color: rgba(255,255,255,0.7);
}

#get-city:focus {
  outline: none;
  background: rgba(255,255,255,0.25);
}

/* Botón */
#search-form button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 30px;
  background: #ffffff;
  color: #000010;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#search-form button:hover {
  background: #76787a;
  color: white;
  transform: scale(1.05);
}

#search-form button:active {
  transform: scale(0.95);
}

/*  Clima actual */
.container-clima {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.box-clima {
  background: rgba(0,0,0,0.5);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

#city {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.temperature {
  font-size: 3rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.weather-icon {
  width: 100px;
  margin: 0.5rem 0;
}

.clima {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}

.humedity,
.wind {
  font-size: 1rem;
  margin: 0.3rem 0;
}

/* 📆 Pronóstico */
.box-information {
  margin: 1.5rem auto;
  padding: 1rem;
  max-width: 1000px;
  text-align: center;
}

.box-information h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.box-information ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
}

.weather-week {
  flex: 1 1 120px;
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}

.weather-week:hover {
  transform: translateY(-5px);
}

/*  Footer */
.container-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  border-radius: 12px 12px 0 0;
}

/* 📱 Responsividad */
@media (max-width: 600px) {
  .container-header h1 {
    font-size: 1.8rem;
  }

  .temperature {
    font-size: 2.2rem;
  }

  #city {
    font-size: 1.6rem;
  }

  .weather-week {
    flex: 1 1 100px;
    font-size: 0.8rem;
    padding: 0.8rem;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .container-clima {
    padding: 2rem;
  }

  .box-clima {
    max-width: 500px;
  }

  .temperature {
    font-size: 2.6rem;
  }
}
