@font-face {
  font-family: 'Golden-Moment';
  src: url('/static/fonts/Golden-Moment.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Gotham-Bold';
  src: url('/static/fonts/Gotham-Bold.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Gotham-Book';
  src: url('/static/fonts/Gotham-Book.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== Reset base y estructura ===== */
html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
  overflow-x: hidden;
}

/* ===== Contenedor principal ===== */
.contenido {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 1rem;
  overflow: hidden;
  color: rgb(168, 152, 113);
}

/* ===== Contenido central ===== */
.contenido-central {
  display: flex;
  flex-direction: row;
  gap: 5vw;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 60px 60px 0 60px;
  box-sizing: border-box;
  max-height: 70vh;
  flex-wrap:nowrap;
  text-align: center;
  overflow: auto;
}

/* ===== Temperatura ===== */
.temperatura {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
  text-align: left;
  flex: 0 0 auto;
  margin-left: 80px;
}
.linea-superior {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5vmin; /* MÁS espacio */
  font-size: 10vmin; 
  margin: 0;
}

.temperatura p {
  font-family: 'Gotham-Bold';
  margin: 0;
  padding: 0;
  line-height: 1.1;
}

.con {
  font-size: 10vmin;
}

.esta {
  font-size: 10vmin;
  margin-top: 1rem;
}

/* ===== Imagen contextual ===== */
.imagen-contextual {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  overflow: hidden;
  
}
.imagen-contextual img {
  max-width: 100%;
  max-height: calc(70vh - 10vh);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ===== Footer ===== */
footer {
  height: auto;
  padding: 1rem 2rem;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* ===== Banner ===== */
.banner {
  width: 100%;
  max-height: 300px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  box-sizing: border-box;
}

.frase {
  font-family: 'Golden-Moment';
  font-size: 7vmin;
  font-weight: normal;
  color: rgb(168, 152, 113);
  margin: 0;
  text-align: center;
}

.logo img {
  width: 150px;
  height: auto;
}

.nbanner {
  font-family: 'Golden-Moment';
  font-size: 15vmin;
  font-weight: normal;
  color: rgb(168, 152, 113);
  margin: 0;
  text-align: center;
}

/* ===== Responsive para móviles ===== */
    @media (max-width: 768px), (orientation: portrait) {
        .contenido-central {
            flex-direction: column; /* Para apilar uno encima de otro */
        }
        .temperatura {
            flex-direction: column;
            gap: 0.3rem;
            order: 1; /* Aparece primero */
        }
        .imagen-contextual {
            order: 2; /* Aparece después */
        }
        .linea-superior {
            flex-direction: column;
            gap: 0.2rem;
         }

        .valor-temp {
            font-size: clamp(5rem, 7vmin, 10rem);
        }

        .con,
        .esta {
            font-size: clamp(3rem, 6vmin, 7rem);
            margin: 0;
        }

        .logo img {
            width: clamp(50px, 15vmin, 100px);
            height: auto;
            margin-bottom: 0.5rem;
        }

        .banner {
            flex-direction: column;
            gap: 0.3rem;
            padding: 0.5rem;
        }
    }   

@media screen and (max-width: 768px) {
    .frase {
        font-size: 5vmin;  /* menos grande para pantallas chicas */
        padding-left: 20px;
        padding-right: 20px;
    }

    .Nbanner {
        font-size: 8vmin;
        padding-left: 20px;
        padding-right: 20px;
    }

    .mensaje-sin-noti {
        font-size: 3rem;
    }

    .noticia {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .noticia img {
        padding-right: 0;
        width: 100%;
        height: auto;
    }

    .noticia .texto {
        text-align: center;
        align-items: center;
    }

    .noticia h3 {
        font-size: 1.5rem;
    }

    .noticia p {
        font-size: 1rem;
    }
}
