/* Reset */ 
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Contenido centrado */
.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  opacity: 0.9;
}

footer {
  background-color: #FF9B3F;
  color: white;
  text-align: center;
  padding: 10px;
  font-family: "Sour Gummy", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2000; /* muy arriba para que siempre se vea */
}

/* Contenedor principal (usado por tu HTML) */
.contenedor {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  /* sin espacio entre recetario y botones */
  margin-top: 5%;
  height: 80%;
  position: relative;
  z-index: 3;
}

/* Imagen del recetario */
.recetario {
  position: relative;
  left: 5.7%;
  /* mueve todo el recetario a la derecha */
  top: -12.5%;
  z-index: 3;
  /* lo ponemos por encima del fondo */
  pointer-events: none;
  /* recetario no bloquea clics */
}

.recetario-img {
  width: 100%;
  /* mantiene el tamaño actual */
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  /* se queda detrás de los botones */
  pointer-events: none;
  /* no bloquea los clics */
}

/* Texto dentro del recetario */
.recetario-texto {
  position: absolute;
  top: 45%;
  left: 47%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 58%;
  color: #3b2a1a;
  z-index: 4;
  /* asegura que esté encima de la imagen */
  pointer-events: none;
  /* el texto no bloquea clicks en los botones */
}

/* Titular en Times New Roman (se asegura que sea Times) */
.recetario-texto h2, #receta-titulo {
  font-family: "Times New Roman", Times, serif;
  font-size: 250%;
  margin-bottom: 2%;
}

/* Párrafos del recetario */
.recetario-texto p, #receta-descripcion {
  font-family: "Solitreo", cursive;
  font-size: 80%;
  line-height: 1.5;
  white-space: pre-line;
}

.recetario-texto .nota {
  font-size: 100%;
  opacity: 1.2;
  margin-top: 3%;

}

/* Post-its */
.botones-recetas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left:-10.7%;
  position: relative;
  z-index: 2;
}

/* cada post-it */
.boton-postit {
  width: 65%;
  /* los agrandamos */
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
  margin-top: -31%;
  /* se solapan ligeramente */
}

.boton-postit:hover {
  filter: brightness(1.05);
  /* agranda suave al pasar el mouse */
  transform: scale(1.05);
}

.boton-postit.active {
  transform: translateX(15px) scale(1.2);
  z-index: 10;
  /* cuando está activo, sobresale un poco */
  pointer-events: none;
  /* para que no bloquee los clics */
}

/* Fondo con imagen */
body {
  background-image: url('assets/img/fondo_principal.webp');
  /* 👈 ruta correcta */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 100vh;
  font-family: 'Poppins', sans-serif;
  color: white;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

/* Capa semitransparente encima del fondo */
body::before {
  content: "";
  position: absolute; /* corregido: antes estaba 'position: center' inválido */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  /* <-- ajusta este valor */
  z-index: 0;
}

/* --- Separador (botón de menú) --- */
.separador-boton {
  position: absolute;
  top: -13.3%;
  /* ahora está justo arriba del recetario */
  left: 43.35%;
  z-index: 7;
}

.separador-img {
  width: 71%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.separador-img:hover {
  transform: scale(1.03);
}

/* --- Menú desplegable --- */
.menu-separador {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 20;
  text-align: center;
}

.menu-separador.active {
  display: flex;
}

.separador-largo-img {
  width: 235px;
  display: block;
  transform: translateX(1%);
  margin: 0 auto;
}

.menu-opciones {
  position: absolute;
  top: 5%;
  /* baja un poquito el texto sobre la imagen larga */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  flex-direction: column;
  /* 🔹 los pone en columna */
  align-items: center;
  /* los centra horizontalmente */
  gap: 4px;
  /* espacio entre cada palabra */
  font-family: "Sour Gummy", sans-serif;
  font-size: 1.3rem;
  color: #ffffff;
}

.menu-opciones span {
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.menu-opciones span:hover {
  transform: scale(1.1);
  color: #fa9507;
}

#iconos-info {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -80px;
  z-index: 10;
  pointer-events: auto;
  position: relative;
}

/* Contenedor interno para organizar los íconos en fila (horizontal) */
.iconos-columna {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  margin-top: -10px;
  transform: translateY(50%); /* corregido: translatey -> translateY */
  pointer-events: auto;
}

/* El tamaño de 60px para los íconos pequeños sigue igual */
.iconos-columna img {
  width: 60px;
  transition: transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

/* El tamaño de YouTube se mantiene más grande */
.iconos-columna .youtube-link img {
  width: 120px;
  margin-top: 0px;
  transform: translateY(30%); /* corregido */
}

/* El efecto hover se mantiene para todos */
.iconos-columna img:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* --- Estilos para la Calculadora en la sección Secreto --- */

/* Contenedor del enlace, si necesitas centrarlo o darle margen */
.boton-calculadora-link {
  display: inline-block;
  margin-top: -10px;
}

/* Imagen del botón */
.boton-calculadora-img {
  width: 150px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  z-index: 10;
  pointer-events: auto;
}

.boton-calculadora-img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255, 155, 63, 0.7));
}

/* ajustes extra por si hay elementos absolutos fuera del flujo */
#marco-estatico, #escala-wrapper {
  /* solo para compatibilidad con versiones anteriores del HTML que usaste */
  position: relative;
}
