html, body {
  max-width: 100%;
  overflow-x: hidden;
}


/* ===============================
   Estilos base globales
=============================== */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fdf6ec;
  color: #4b4b4b;
}

header, footer {
  background-color: #8d6e63;
  color: white;
  padding: 1rem;
  text-align: center;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.5rem;
}

nav a {
  text-decoration: none;
  color: #2b2b2b;
  font-weight: bold;
  background-color: #fdf6ec;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
}

nav a:hover {
  background-color: #e8c9b9;
}

main {
  padding: 1rem;
  max-width: 800px;
  margin: auto;
}

/* ===============================
   Botones y formularios
=============================== */
button {
  display: block;
  margin: 1rem auto;
  padding: 0.6rem 1.2rem;
  background-color: #e27d60;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #444;
}

input, textarea, select {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* ===============================
   Sección de ofertas
=============================== */

.oferta-contenido button {
  align-self: center;
  margin-top: 1rem;
}


.oferta {
  position: relative;
  padding: 1rem;
  background: #fff;
  margin: 1rem 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: visible;
  min-height: auto;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.oferta h3 {
  margin: 0;
  font-size: 1.1rem;
  white-space: normal;
  line-height: 1.4;
}

.oferta img[src*="chef_"] {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 150px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  object-fit: contain;
  background-color: #fff;
}


.categoria {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.5rem;
  background-color: #eee;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #333;
}

/* ===============================
   Recetas y buscador
=============================== */
#busqueda-recetas {
  margin: 2rem 0;
  text-align: center;
}

.receta {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  cursor: pointer; /* ✅ Para que parezca clickeable */
  transition: background-color 0.2s ease;
}
.receta:hover {
  background-color: #f4f4f4; /* ✅ Para mostrar cambio al pasar el mouse */
}


/* ===============================
   Planificador y cocina inteligente
=============================== */
.dia {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#lista-sobras button,
#lista-ingredientes button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: 1rem;
}

#lista-sugerencias {
  background-color: #f4f4f4;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}



#lista-sugerencias .receta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lista-sugerencias .aviso-central {
  width: 100%;
  display: block;
}

#lista-sugerencias .aviso-caja {
  text-align: center;
  margin: auto;
}


.tarjeta-receta {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 1rem;
  width: 250px;
  text-align: center;
}

.tarjeta-receta img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.tarjeta-receta h3 {
  margin: 0.5rem 0;
  color: #2b2b2b;
  white-space: normal !important;
  line-height: 1.3;
}

.tarjeta-receta p {
  font-size: 0.9rem;
  color: #555;
}

/* ===============================
   Identificador visual de productos
=============================== */
#catalogo-productos {
  max-width: 900px;
  margin: auto;
}

.producto {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.comparacion {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.item {
  flex: 1;
  min-width: 150px;
  text-align: center;
}

/* ===============================
   Impresión
=============================== */
@media print {
  nav, footer, button, .categoria {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
  main {
    max-width: 100%;
  }
}
.banner-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 300%;
}

.banner-track a {
  flex: 0 0 100%;
  display: block;
}

.banner-track img {
  width: 100%;
  display: block;
  object-fit: contain;
}
#sugerencias-recetas.animado {
  animation: resaltarRecetas 1s ease-out;
  border: 2px solid #e27d60;
  border-radius: 8px;
  padding: 1rem;
  background-color: #fffaf0;
}

@keyframes resaltarRecetas {
  0% {
    background-color: #ffe8d9;
    transform: scale(1.01);
  }
  100% {
    background-color: #fffaf0;
    transform: scale(1);
  }
}

/* ===============================
   Navegacion inferior Smartphone
=============================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #f8f2ea;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  border-top: 1px solid #ccc;
  z-index: 1000;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* 👈 esto alinea verticalmente */
  flex: 1;
  text-decoration: none;
  color: #7b4c20;
  font-size: 1rem;
  line-height: 1;
  padding: 0.4rem 0; /* controla altura del botón */
}


.bottom-nav .icono {
  font-size: 1.3rem;
  line-height: 1;
  margin-bottom: 1px;
  padding: 0;;
}

.bottom-nav .etiqueta {
  font-weight: bold;
  font-size: 0.72rem;
  margin: 0;
  line-height: 1;
  text-align: center;
}

.bottom-nav a.activo {
  background-color: #fcd9b6;
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.menu-mas-oculto {
  display: none;
  position: fixed;
  bottom: 3.5rem;
  right: 1rem;
  background: #fff9f2;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  padding: 0.5rem;
  z-index: 1001;
}

.menu-mas-oculto a {
  display: block;
  margin: 0.4rem 0;
  color: #333;
  font-size: 1rem;
  text-decoration: none;
}

.nav-inferior {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff8f0;
  display: flex;
  justify-content: space-around;
  padding: 0.6rem 0;
  border-top: 1px solid #ccc;
  z-index: 999;
}
.nav-inferior a {
  font-size: 1.4rem;
  color: #b25e1a;
  text-decoration: none;
}

/* ===============================
   Botones de recetas dinámicas
=============================== */
.boton {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  background-color: #f7931e;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
}

#lista-sugerencias .boton {
  display: inline-block;
  width: auto;
  margin: 1rem auto 0;
  text-align: center;
}


.boton:hover {
  background-color: #fcaf45;
}

.oferta-contenido h3,
.tarjeta-receta h3 {
  white-space: normal !important;
  overflow: visible !important;
  display: block !important;
  line-height: 1.4;
}

/* ===============================
   Botones de ingredientes.
=============================== */

.filtro-btn {
  margin: 0;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background-color: #ffe0b2;
  border: 1px solid #e0a96d;
  color: #5c3b1e;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.filtro-btn:hover {
  background-color: #ffd699;
}

#ingredientes-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem; /* espaciado parejo horizontal y vertical */
  justify-content: center;
  padding: 0.5rem 0;
}

#ingredientes-filtros .filtro-btn {
  margin: 0 !important;
  padding: 0.3rem 0.6rem;
  line-height: 1 !important;
  font-size: 0.85rem;
  display: inline-block;
  background-color: #ffe0b2;
  border: 1px solid #e0a96d;
  border-radius: 6px;
  color: #5c3b1e;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#ingredientes-filtros .filtro-btn:hover {
  background-color: #ffd699;
}

/* ===============================
   Aviso Premium
=============================== */
.aviso-central {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 1rem auto;
  padding: 1rem;
  max-width: 600px;
}

.aviso-caja {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  padding: 1.2rem;
  color: #5c3b1e;
  width: 100%;
  box-sizing: border-box;
  text-align: center; /* ✅ CLAVE */
}


.aviso-caja p {
  margin: 0 0 1rem;
  font-weight: bold;
}

.boton-principal {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #f7931e;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}


.boton-principal:hover {
  background-color: #fcaf45;
}

.aviso-caja a.boton-principal {
  display: inline-block;
  margin-top: 1rem;
  background-color: #f7931e;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.aviso-caja a.boton-principal:hover {
  background-color: #fcaf45;
}

.aviso-boton-centro {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

