
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: rgb(212, 211, 212);
  color: #1f1f1f;
}
.hero {
  text-align: center;
  margin: 0 auto 24px auto;
  padding: 0 16px;
}
.hero-brand {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.hero-title {
  font-size: 18px;
  color: #444;
  margin-bottom: 14px;
}
.hero-details {
  max-width: 700px;
  margin: 0 auto;
  background: transparent;
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
}
.hero-details summary {
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.hero-details summary::-webkit-details-marker {
  display: none;
}
.hero-details summary::after {
  content: ' +';
  font-weight: 700;
}
.hero-details[open] summary::after {
  content: ' −';
}
.hero-details p {
  margin: 10px 0 0 0;
  color: #555;
  line-height: 1.45;
}


#explicacion {
  color: #1f1f1f;
  font-weight: 600;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
#trigger {
  cursor: pointer;
}
#trigger:hover {
  opacity: 0.7;
}
#descripcion {
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
  line-height: 1.6;
  padding: 0 16px;
}
.lead {
  font-size: 20px;
  font-weight: 600;
}
.highlight {
    color:red;
}
.key {
  font-weight: 600;
}
.ig_ref {
  text-decoration: none;
  color: inherit;
}
.sources {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 40px;
  line-height: 1.4;
}
#reference {
    font-size: 15px;
    display: block;
    width: fit-content;
    margin: 100px auto;
    padding: 8px 14px;
    border: 1px solid black;
    color: black;
    text-decoration: none;
    border-radius: 20px;
}
#reference:hover {
  background: black;
  color: white;    
  transition: 0.2s;
}


#calendar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: sans-serif;
}
.day {
  position: relative;
  height: 50px;
  width: 50px;
  background-color: whitesmoke;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);

}
.today-live {
  position: relative;
  overflow: visible;
}
.live-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background-color: #ff3b30;
  border-radius: 50%;
  z-index: 3;
}
.live-dot::before,
.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.35);
  animation: livePulse 1.8s ease-out infinite;
}
.live-dot::after {
  animation-delay: 0.9s;
}
.year-wrapper {
  margin-bottom: 40px;
}
.yearRow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.yearTitle {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: #222;
}
.month {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 3px;
}
.monthCell {
  vertical-align: top;
  padding: 10px;
}
.monthWrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.monthTitle {
  text-align: center;
  font-weight: 700;
  font-size: 17px;
  color: #333;
}
.day-number {
  font-size: 11px;
  line-height: 1;
  text-align: left;
}
.day-wind {
  font-size: 14px;
  margin-top: 6px;
  text-align: center;
}


#compare {
  background-color: rgba(255,255,255,0.72);
  width: 88%;
  max-width: 1100px;
  margin: 0 auto 28px auto;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  backdrop-filter: blur(4px);
}
.compare-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  box-sizing: border-box;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
.compare-warning {
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: #6b5200;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}
.compare-subnote {
  width: fit-content;
  margin: 0 auto 18px auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 214, 102, 0.28), rgba(255, 193, 7, 0.16));
  border: 1px solid rgba(214, 153, 0, 0.38);
  color: #7a5700;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.compare-live-note {
  width: fit-content;
  margin: 0 auto 18px auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.18);
  color: #8a1f1a;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.compare-live-dot {
  position: relative;
  width: 10px;
  height: 10px;
  background: #ff3b30;
  border-radius: 50%;
  flex: 0 0 auto;
}
.compare-live-dot::before,
.compare-live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.28);
  animation: livePulse 1.8s ease-out infinite;
}
.compare-live-dot::after {
  animation-delay: 0.9s;
}
.previous {
  justify-self: start;
}
.back {
  justify-self: center;
}
.next {
  justify-self: end;
}
.next,
.back, 
.previous {
  cursor: pointer;
  background-color: #eef1f4;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  user-select: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.next:hover,
.back:hover,
.previous:hover {
  background-color: #dde3e8;
  transform: translateY(-1px);
}
.graph {
  background-color: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 12px;
  box-sizing: border-box;
  height: 300px;
  width: 100%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);

}
.graph.graficWind {
  grid-row: 1;
}
.graph.graficDir {
  grid-row: 2;
}
.graph.graficPres {
  grid-row: 3;
}
.graph.graficTemp {
  grid-row: 4;
}
.graph.graficRh {
  grid-row: 5;
}



.hidden {
  display: none !important;
}
.empty-day{
  background-color: #e7e7e7;
  opacity: 0.6;
}

@keyframes livePulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70% {
    transform: scale(2.8);
    opacity: 0;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}
@media (max-width: 768px) {
  #compare {
    width: calc(100% - 24px);
    margin: 0 auto 20px auto;
    padding: 12px;
  }
  .compare-nav {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }
  .previous,
  .next,
  .back {
    min-width: 0;
    box-sizing: border-box;
  }
  .previous,
  .next {
    font-size: 11px;
    padding: 6px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .back {
    font-size: 12px;
    padding: 6px 8px;
    white-space: nowrap;
  }
  .compare-grid,
  .graph {
    min-width: 0;
    width: 100%;
  }
}