/* --- BASE MOBILE FIRST --- */
/* GRID TEMPLATES */
.meteo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 2fr;
}

.meteo-grid > div {
  text-align: center;
  font-weight: bold;
}

.temp-grid {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "temp temp"
    "max min";
  text-align: center;
  font-weight: bold;
  /* padding: 5px !important; */
  height: 20rem;
}

.temp-grid::before {
  grid-area: temp;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

/*  --- BLOQUE 1 ---  */
.header {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.header #hora_registro{
  align-self: flex-end;
}


.flex-row {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.flex-row .item:nth-child(odd) {
  background-color: #ececec
}

/*ELEMENTOS DEL GRID*/
.item {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Zona temperatura */
.temp{
  grid-row: 1;
  grid-column: 1 / span 2;
}

.temp-item {
  grid-area: temp;
  align-self: center;
  justify-self: center;
  display: flex;
  align-items: center;
  margin-top: -20px;
  transform: translateX(-20px);
}

.temp-item svg {
  width: 12em;
  height: 12em;
  margin-right: -30px;
}

p{
  margin: 0px !important;
}

.temp-item p {
  padding-left: -10px;
  font-size: 5rem;
}

.max {
  grid-area: max;
  align-self: center;
  justify-self: center;
  transform: translateY(-100%);
}

.min {
  grid-area: min;
  align-self: center;
  justify-self: center;
  transform: translateY(-100%);
}

/*  --- BLOQUE 2 ---  */
/* Botoneras */
.buttons-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* para suavidad en iOS */
}

.buttons-slider button {
  flex: auto;
  scroll-snap-align: start;
  padding: 0.75em 1.25em;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s;
}

.buttons-slider button:hover {
  background-color: #b0b0b0;
}

.button-active{
  background-color: #a0a0a0 !important;
}

/* Canvas de gráficas */
.chart-canvas{
  width: 100%;
  height: 20em;
}