* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.app {
    background: rgba(238, 238, 239, 0.2);
    width: 80%;
    max-width: 600px;
    overflow: auto;
    padding: 25px;
    border-radius: 25px;
    margin: 4vh auto;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

input,
button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 10px;
}

button {
    background: #57758f;
    border: none;
    color: white;
    border-radius: 10px;
    cursor: pointer;
}

#weather {
    margin-top: 15px;
    font-size: 14px;
}

.icono-hoy svg {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.pronostico {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    font-size: 12px;
}

.dia {
    background: rgba(131, 163, 231, 0.7);
    padding: 8px;
    border-radius: 10px;
    text-align: center;
}

.dia svg {
    width: 28px;
    height: 28px;
    margin: 4px 0;
}

.header h1 {
    margin: 0;
    font-size: 22px;
}

#fecha {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 15px;
}

#videoFondo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

.datos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.dato {
    background: rgba(131, 163, 231, 0.7);
    border-radius: 14px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dato span {
    font-size: 20px;
    display: block;
}

.dato strong {
    display: block;
    font-size: 14px;
    margin: 4px 0;
}

.dato small {
    font-size: 11px;
    opacity: 0.7;
}

.fav-btn {
    background: #f5b301;
    border: none;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: bold;
}

.favoritas {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.fav-item {
    background: rgba(131, 163, 231, 0.7);
    border-radius: 10px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fav-item span {
    cursor: pointer;
    font-weight: bold;
}

.fav-item button {
    background: none;
    border: none;
    cursor: pointer;
}

.carousel-horas {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
}

.hora-item {
    min-width: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 8px;
    text-align: center;
    font-size: 13px;
    flex-shrink: 0;
}

.hora-item strong {
    display: block;
    margin-bottom: 4px;
}
.card-dia {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hora-item {
  min-width:70px;
  background: rgba(255,255,255,0.7);
  border-radius: 14px;
  padding: 10px;
  text-align:center;
  flex-shrink:0;
  box-shadow:0 4px 10px rgba(0,0,0,0.2);
}

.dia-card {
  background: rgba(255,255,255,0.7);
  padding: 12px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: center;
}

.carousel-horas {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0;
}
#alertasChart {
  background: rgba(255,255,255,0.8);
  border-radius: 15px;
  padding: 10px;
  margin-top: 20px;
}