@import url("fuentes.css");

body.fondo-borroso, html {
  margin: 0; padding: 0; height: 100%; font-family: 'Arial', sans-serif;
  overflow-x: hidden; position: relative; color: white;
  background: #000;
}

body.fondo-borroso::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-image: url('../assets/img/nosotros.png'); /* tu imagen del chef */
  background-size: cover;
  background-position: center;
  filter: brightness(0.6) blur(5px);
  z-index: -1;
}

/* Cintilla superior */
.cintilla {
  background: #ffe0e9;
  color: #d5a2af;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: fixed;
  top: 0;
  z-index: 9999;
  height: 35px;
  display: flex;
  align-items: center;
  font-family: 'MiFuente', sans-serif;
  font-size: 1rem;
}

.cintilla-contenido {
  display: inline-flex;
  animation: deslizarInfinito 20s linear infinite;
}

@keyframes deslizarInfinito {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Animaciones base */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.contenedor-principal {
  position: relative;
  height: 100vh;
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  animation: fadeInUp 1s ease forwards;
  opacity: 0; /* para que inicie invisible */

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../assets/img/nosotros.jpg'); /* tu imagen del chef */
  background-size: cover;
  background-position: center;
}


/* Menú superior */
.menu-secciones {
  position: absolute;
  top: 50px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 3rem;
  font-weight: 400;
  font-size: 1.1rem;
  color: white;
  font-family: 'Arial', sans-serif;
  text-transform: capitalize;
}

.menu-secciones a {
  color: white;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
}

.menu-secciones a:nth-child(1) { animation-delay: 0.6s; }
.menu-secciones a:nth-child(2) { animation-delay: 0.7s; }
.menu-secciones a:nth-child(3) { animation-delay: 0.8s; }
.menu-secciones a:nth-child(4) { animation-delay: 0.9s; }


.menu-secciones a:hover {
  opacity: 1;
}

/* Título principal */
.titulo-principal h1 {
  font-size: 4rem;
  margin: 0;
  font-weight: 700;
  font-family: 'MiFuente', cursive;
  user-select: none;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.dulce {
  color: #efc1d1;
}

.noviembre {
  color: #d3a3b0;
  font-weight: 500;
}

.chef {
  margin-top: 0.5rem;
  font-size: 1.3rem;
  font-weight: 300;
  user-select: none;
}

/* Valoraciones */
.valoraciones {
  margin-top: 2rem;
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.valoracion {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 180px;
   opacity: 0;
  animation: fadeInUp 0.8s ease forwards; 
}

/* Delay escalonado para cada .valoracion */
.valoracion:nth-child(1) {
  animation-delay: 0.7s;
}
.valoracion:nth-child(2) {
  animation-delay: 0.85s;
}
.valoracion:nth-child(3) {
  animation-delay: 1s;
}
.valoracion:nth-child(4) {
  animation-delay: 1.15s;
}


.estrellas {
  font-size: 1.7rem;
  color: gold;
  user-select: none;
  margin-bottom: 0.3rem;
}

.valoracion p {
  font-size: 1rem;
  font-style: italic;
  max-width: 180px;
  text-align: center;
  font-family: 'MiFuente3', sans-serif;
}

/* Descripción */
.descripcion {
  margin-top: 2rem;
  max-width: 600px;
  font-size: 1.2rem;
  font-weight: 300;
  padding: 0 1rem;
  user-select: none;
  font-family: 'MiFuente3', sans-serif;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.3s;
}

/* Para texto inferior animado que tenías, lo puedes dejar o quitar */


/* ====== Cintilla Superior ====== */
.cintilla {
  background: #ffe0e9;
  color: white;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: fixed;
  top: 0;
  z-index: 999;
  height: 35px;
  display: flex;
  align-items: center;
  font-family: 'MiFuente', sans-serif;
  font-size: 1rem;
}

.cintilla-contenido {
  font-family: 'MiFuente', sans-serif;
  color: #d5a2af;
  display: inline-flex;
  animation: deslizarInfinito 20s linear infinite;
}

.cintilla-contenido p {
  margin: 0 2rem;
  white-space: nowrap;
}

@keyframes deslizarInfinito {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}


.titulo-icono {
  width: 400px;
  height: auto;
  vertical-align: middle;
  margin: 0 10px;
}


@media (max-width: 600px) {

  .titulo-icono {
    width: 300px;
  }

  /* Ajusta la cintilla superior */
  .cintilla {
    height: 28px;
    font-size: 0.85rem;
  }

  /* Menú superior */
  .menu-secciones {
    top: 45px;
    gap: 1.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
    padding: 0 10px;
  }

  /* Título principal */
  .titulo-principal h1 {
    font-size: 2.5rem;
  }

  /* Ajuste de colores y pesos se mantienen igual */

  .chef {
    font-size: 1rem;
  }

  /* Valoraciones */
  .valoraciones {
    gap: 1.5rem;
    margin-top: 1.2rem;
  }

  .valoracion {
    max-width: 140px;
  }

  .estrellas {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
  }

  .valoracion p {
    font-size: 0.9rem;
    max-width: 140px;
  }

  /* Descripción */
  .descripcion {
    max-width: 90%;
    font-size: 1rem;
    margin-top: 1.2rem;
    padding: 0 0.5rem;
  }

 

}

/* Modal base */
.modal {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  display:none; /* oculto por defecto */
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,0.5);
  z-index:10000;
}



/* Contenido del modal */
.modal-content {
  background-color: #f4a7c1;
  padding: 25px 30px;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  color: #ffffff;
  text-align: center;
  line-height: 1.5;
  font-size: 1rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  position: relative;
}

/* Título */
.modal-content h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

/* Párrafo */
.modal-content p {
  text-align: justify;
  font-size: 1rem;
  margin-bottom: 15px;
}

/* Botón cerrar */
.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
}

/* Comparación de imágenes */
.img-comparativa {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 10px;
  cursor: ew-resize;
  margin-top: 15px;
}

.img-comparativa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-encima {
  position: absolute;
  top: 0;
  left: 0;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.1s ease-out;
}