*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  font-family: "Kollektif", Arial, sans-serif;
  background-color: #0b5687;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.imagenprincipal {
  display: flex;
  justify-content: center;
  padding: 15px 0;
}

.imgPrincipal {
  height: 90px;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.imgPrincipal:hover {
  transform: scale(1.05);
}

.logo {
  display: flex;
  justify-content: center;
  padding: 30px 0;
  background: linear-gradient(135deg, white 0%, white 100%);
}

.logo_cafeteria {
  height: 250px;
  transition: all 0.3s ease;
 
}

.logo_cafeteria: {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ===== BOTONES PRINCIPALES ===== */
.botones_principales {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0px;
  padding: 0px;
  margin: 0px;
  background-color: white;
}

.botones_principales img {
  width: 350px;
  height: auto;
  margin: 0px;
  transition: all 0.3s ease;
  cursor: pointer;
}



/* ===== MENÚ DEL DÍA ===== */
.menu_del_dia {
  margin-top: 0px;
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #0b5687 0%, #1a7fc9 100%);
  color: white;
}

.menu_del_dia h1 {
  font-family: nomal;
  font-size: 2.8rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

.menu_del_dia h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #ffcc5c;
  border-radius: 2px;
}

/* ===== HORARIOS ===== */
.horarios {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 60px 20px;
  background-color: #0b5687;
  color: white;
}

.recomendaciones {
  width: 600px;
}

.plato_menu {
  width: 600px;
}

.horarios {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
}

.plato_con_texto {
  position: relative;
  display: inline-block;
}

.plato_menu {
  display: block;
  width: 100%;
  max-width: 650px;
}

.texto_encima_plato {
  position: absolute;
  top: 52%;
  left: 52%;
  transform: translate(-50%, -50%);
  color: #333;
  font-weight: normal;
  text-align: center;
  padding: 5px;
  font-size: 35px;
  line-height: 1.2;
}

.texto_encima_plato h2,
.texto_encima_plato h3 {
  margin: 2px 0;
  font-size: 12px;
  font-weight: bold;
}

/* ===== BARRA FRÍA ===== */
.barra_fria {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: white;
}

.barra_fria h1 {
  font-family: arial; 
  font-size: 2.5rem;
  color: #0b5687;
  margin-bottom: 20px;
  position: relative;
}

.barra_fria h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #0b5687;
  border-radius: 2px;
}

.barra_fria p {
  font-size: 1.2rem;
  max-width: 2200px;
  margin-bottom: 40px;
  color: #333;
}

/* ===== CONTENEDOR BARRA FRÍA ===== */
.contenedor {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-top: 30px;
}

.rectangulo.barra-fria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* separación entre imágenes */
  width: 100%;
  max-width: 1200px; /* ancho máximo en escritorio */
  margin: 0 auto; /* centrado */
  padding: 20px;
  background-color: #0b5687;
  border-radius: 10px;
}

/* Estilo base de las imágenes */
.rectangulo.barra-fria img {
  width: 100%;
  max-width: 48%; /* en escritorio, cada imagen ocupa casi la mitad */
  height: auto;
  border-radius: 8px;
  display: block;
}

/* En pantallas pequeñas (menos de 768px), que se apilen */
@media (max-width: 768px) {
  .rectangulo.barra-fria img {
    max-width: 100%;
  }
}

}

.texto-azul {
  color: #0b5687;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.texto-verde {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: bold;
}

.horario {
  font-size: 1.2rem;
  font-weight: normal;
  line-height: 1.3;
  display: block;
  margin-top: 10px;
  color: white;
}

.imagen {
  width: 700px;
  height: 800px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ===== CONTRIBUYE AL CAMBIO ===== */
.Contribuyealcambio {
  background-color: white;
  padding: 60px 20px;
  text-align: center;
}

.texto-azul {
  color: #0b5687;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.texto-verde {
  color: #0a900a;
  font-size: 1.8rem;
  font-weight: bold;
}

/* ===== GALERÍA RESIDUOS ===== */
.galeria {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 20px;
  background-color: white;
}

.galeria img {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.galeria img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===== COLABORADORES ===== */
.rectangulo.colaboradores {
  width: 100%;
  background-color: #35a93b;
  padding: 0px 0px;
  border-radius: 0px;
  margin: 0px auto;
  text-align: center;
  color: white;
}

.texto-superior {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.imagenes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 35px;
}

.imagenes img {
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== SLIDERS ===== */
.seccion-slider,
.seccion-slider2 {
  background-color: white;
  padding: 60px 20px;
  text-align: center;
}

.seccion-slider h2,
.seccion-slider2 h2 {
  font-family: arial;
  font-style: normal;
  font-size: 2.5rem;
  color: #0b5687;
  margin-bottom: 10px;
}

.seccion-slider p,
.seccion-slider2 p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #333;
}

.slider {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  overflow: hidden;
  margin-top: 10px;
}

.imagenes-slider,
.imagenes-slider2 {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide,
.slide2 {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  width: 90%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}



.slide2 img {
  width: 90%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
}

button.prev:hover,
button.next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

button.prev {
  left: 20px;
}

button.next {
  right: 20px;
}

#slider2 {
  max-width: 800px;
  margin: 20px auto;
  overflow: hidden;
  position: relative;
}

#slider2 .slide2 img {
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
}

#slider2 .imagenes-slider2 {
  display: flex;
  transition: transform 0.5s ease;
}

#slider2 .slide2 {
  min-width: 100%;
  box-sizing: border-box;
  padding: 10px;
}

/* ===== GALERÍA FOTOS ===== */
.galeria-fotos {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.galeria-fotos h2 {
  font-family: arial;
  font-style: normal;
  font-size: 2.5rem;
  color: #0b5687;
  margin-bottom: 20px;
}

.galeria-contenedor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 900px; /* Ajusta según tu diseño */
  margin: 0 auto;
}

.galeria-contenedor img {
  width: 90%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.galeria-contenedor img:hover {
  transform: scale(1.05);
}

/* ===== GALERÍA RECTÁNGULO ===== */
.galeria-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 800px;
  margin: 20px auto;
}

.galeria-masonry img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.galeria-masonry img:hover {
  transform: scale(1.03);
}

/* La primera imagen ocupa las 3 columnas */
.galeria-masonry img:first-child {
  grid-column: 1 / -1;
}

/* Para tablets */
@media (max-width: 900px) {
  .galeria-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .galeria-masonry img:first-child {
    grid-column: 1 / -1;
  }
}

/* Para móviles */
@media (max-width: 600px) {
  .galeria-masonry {
    grid-template-columns: 1fr;
  }

  .galeria-masonry img:first-child {
    grid-column: auto;
  }
}


/* ===== FOOTER ===== */
.footer-rectangulo {
  width: 100%;
  background-color: #044067;
  color: white;
  text-align: center;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.logo-footer {
  width: 120px;
  height: auto;
  margin-bottom: 0px;
}

.footer-rectangulo p {
  font-size: 1.2rem;
  margin-top: 0px;
}

/* ===== ANIMACIONES ===== */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1200px) {
  .texto_encima_plato {
    font-size: 8px !important;
  }
  .texto_encima_plato h2,
  .texto_encima_plato h3 {
    font-size: 6px !important;
  }
  .barra-fria {
    width: 800px;
    height: 550px;
    font-size: 2.5rem;
  }
  .imagen {
    width: 600px;
  }
}

@media (max-width: 992px) {
  .texto_encima_plato {
    font-size: 8px !important;
  }
  .texto_encima_plato h2,
  .texto_encima_plato h3 {
    font-size: 6px !important;
  }
  .botones_principales {
    flex-wrap: wrap;
  }
  .botones_principales img {
    width: 45%;
    min-width: 250px;
  }
  .horarios {
    flex-direction: column;
    gap: 30px;
  }
  .recomendaciones,
  .plato_menu {
    width: 100%;
    max-width: 600px;
  }
  .horarios p {
    font-size: 2.5rem;
  }
  .barra-fria {
    width: 600px;
    height: 400px;
    font-size: 2rem;
  }
  .imagen {
    width: 450px;
  }
  .galeria-masonry {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .texto_encima_plato {
    font-size: 27px !important;
  }
  .texto_encima_plato h2,
  .texto_encima_plato h3 {
    font-size: 26px !important;
  }
  .texto_encima_plato p {
    font-size: 21px !important;
  }
  .logo_cafeteria {
    height: 200px;
  }
  .menu_del_dia h1 {
    font-size: 2.2rem;
  }
  .barra_fria h1,
  .texto-superior,
  .seccion-slider h2,
  .seccion-slider2 h2,
  .galeria-fotos h2,
  .galeria-rectangulo h2 {
    font-size: 2rem;
  }
  .texto-azul {
    font-size: 1.8rem;
  }
  .texto-verde {
    font-size: 1.6rem;
  }
  .barra-fria {
    width: 100%;
    height: auto;
    padding: 40px 20px;
  }
  .contenedor {
    flex-direction: column;
  }
  .imagen {
    width: 100%;
    max-width: 500px;
  }
  .slide img,
  .slide2 img {
    width: 95%;
  }
}

@media (max-width: 576px) {
  .texto_encima_plato {
    font-size: 21px !important;
  }
  .texto_encima_plato h2,
  .texto_encima_plato h3 {
    font-size: 18px !important;
  }
  .texto_encima_plato p {
    font-size: 14px !important;
  }
  .botones_principales {
    flex-direction: column;
  }
  .botones_principales img {
    width: 90%;
    max-width: 350px;
  }
  .menu_del_dia h1 {
    font-size: 1.8rem;
  }
  .horarios p {
    font-size: 2rem;
  }
  .barra_fria h1,
  .texto-superior,
  .seccion-slider h2,
  .seccion-slider2 h2,
  .galeria-fotos h2,
  .galeria-rectangulo h2 {
    font-size: 1.8rem;
  }
  .texto-azul {
    font-size: 1.5rem;
  }
  .texto-verde {
    font-size: 1.3rem;
  }
  .galeria-masonry {
    column-count: 1;
  }
  .button.prev,
  button.next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}