/* RESET Y FUENTES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



/*ANIMACIONES DE REVELADO (FADE-IN-UP) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
    /* Comienza 20px más abajo */
  }

  to {
    opacity: 1;
    transform: translateY(0);
    /* Termina en su posición normal */
  }
}


@font-face {
  font-family: 'Tan Songbird';
  src: url('../assets/images/TANSONGBIRD.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #FFE9C6;
  color: #5e2c1c;
  line-height: 1.6;
}

/* CLASE APLICADA A PRODUCT.HTML */
.body-product {
  background-image: url("../assets/images/RECETARIO.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: fixed;
}


img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

footer .location {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #a64b2a;
}

h1,
h2,
h3,
h4 {
  font-family: 'Tan Songbird', serif;
  font-weight: bold;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* HEADER - AHORA STICKY */
header {
  background-color: #F96635;
  padding: 1rem 0;

  /* PROPIEDADES STICKY */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  width: 60px;
  height: 60px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-list a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
}

/* Botón Instagram header y select de idioma, visibles por defecto en desktop */
.btn-instagram-header,
.language-switcher {
  display: flex;
  align-items: center;
}

/* Estilos para el wrapper del header (desktop) */
.header-buttons-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-instagram {
  background-color: #ff6a33;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}

.language-switcher select {
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  background-color: #fff0e2;
  color: #5e2c1c;
  cursor: pointer;
}

/* *************************************************** */
/* NUEVOS ESTILOS PARA INDEX.HTML */
/* *************************************************** */

/* SECCIÓN HERO (Banner principal) */
.hero {
  margin-top: 2em;
  padding: 7rem 0 6rem;
  /* Aumentado el padding superior a 7rem para separarlo del NAV */
  text-align: center;
  background-color: #F96635;
  color: #fff;
}

.hero .container {
  padding-top: 0;
}

.hero-headline {
  font-family: 'Tan Songbird', serif;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  text-transform: uppercase;
  line-height: 2;
}




.hero-slogan {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  margin-bottom: 2rem;
  font-weight: 500;
}

.btn-cta {
  display: inline-block;
  margin-top: 1rem;
  background-color: #5e2c1c;
  /* Marrón oscuro de acento */
  color: #FFE9C6;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
  background-color: #a64b2a;
  transform: translateY(-2px);
}

/* ANIMACIÓN DE REVELADO (CSS PURO) */
.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* BOTÓN VOLVER ARRIBA */
.btn-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #ff6a33;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  line-height: 50px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-scroll-top.show-scroll {
  opacity: 1;
  visibility: visible;
}


/* SOBRE EL COCINERO */
.about {
  padding: 4rem 0;
}

.about-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.about-text {
  flex: 1 1 450px;
}

.about-image {
  flex: 1 1 200px;
}

.about-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  max-height: 400px;
}

.signature {
  font-weight: bold;
  color: #e95420;
  padding-top: 1em;
}

/* TIMELINE */
.project {
  padding: 4rem 0;
  text-align: center;
}

.project-header-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-header-wrapper h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.timeline {
  overflow-x: auto;
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%; 
}

.timeline::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #f29a73;
  z-index: 1;
}

.timeline-step {
  flex: 0 0 250px;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  z-index: 2;
}

.timeline-step .circle {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #ff6a33;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem auto;
  font-size: 0.9rem;
  z-index: 3;
}

.h4-step{
  line-height: 2em;
}



.timeline-step p {
  padding-top: 1em;
}

.description-project {
  margin-top: 2rem;
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
}

.description-project em {
  font-style: italic;
  color: #e95420;
}

.highlight {
  color: #e95420;
}

.description-project strong {
  font-weight: bold;
}

.description-project .signature {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: block;
}

.summary-title {
  color: #e95420;
}

/* PRODUCTOS */
.products {
  padding: 4rem 0;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  /* Mejorar Hover de Tarjetas de Producto */
  box-shadow: 0 10px 20px rgba(249, 102, 53, 0.3), 0 2px 10px rgba(0, 0, 0, 0.08);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.product-card .info {
  padding: 1rem;
}

/* Los títulos de las tarjetas de producto (h3) mantienen las mayúsculas iniciales por defecto (de lang.js) */
.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
}

.product-card p {
  font-size: 0.95rem;
  color: #444;
}

/* PRODUCT DETAIL */
.product-detail {
  padding: 4rem 0;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.product-detail h1 {
  font-family: 'Tan Songbird', cursive;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;


  /* PROPIEDADES DE LA ANIMACIÓN */
  animation-name: fadeInUp;
  /* Nombre de la secuencia de keyframes */
  animation-duration: 1s;
  /* Duración de la animación (1 segundo) */
  animation-delay: 0.3s;
  /* Espera 0.3s antes de empezar */
  animation-timing-function: ease-out;
  /* Velocidad (empieza rápido, termina lento) */
  animation-fill-mode: forwards;
  /* Mantiene el estado final de la animación */
  opacity: 0;
}

.h2-general {
  /* Aplicación de la animación, pero sin forzar opacity: 0 aquí, lo dejamos a .reveal-section en index.html */
}


/* --- ESTILOS DEL SLIDER IMAGEN/VIDEO --- */
.product-slider-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
}

.product-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 450px;
  /* Altura fija para el contenedor */
  border-radius: 12px;
}

.media-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.media-item.active {
  opacity: 1;
  z-index: 2;
}

.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Controles de navegación */
.slider-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.slider-dot.active-dot {
  background-color: #F96635;
  /* Color del header */
  transform: scale(1.2);
}

.slider-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
  z-index: 3;
}

.slider-arrow {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* --- FIN ESTILOS DEL SLIDER IMAGEN/VIDEO --- */


/* CENTRADO GENERAL DEL CONTENIDO DE LA INFO DEL PRODUCTO */
.product-info {
  text-align: left;
}

.product-info h3 {
  text-align: left;
  margin-bottom: 1em;
}

.product-detail h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Estilos de imagen dentro del slider */
.product-detail img {
  max-height: none;
  margin-bottom: 0;
}

.product-detail ul {
  margin-bottom: 1rem;
  padding-left: 1.2rem;
  list-style-position: outside;
  text-align: left;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.product-detail ul li {
  list-style-type: disc;
  text-align: left;
  margin-left: 0;
}

.product-detail p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-align: left;
}

/* Botones y otros estilos de detalle... */
.product-detail h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #5e2c1c;
}

.product-detail .btn-instagram {
  display: inline-block;
  background-color: #ff6a33;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.product-detail .btn-instagram:hover {
  background-color: #e95420;
}

.product-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-instagram,
.btn-back {
  padding: 0.6rem 1.4rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-instagram {
  background-color: #f26a2e;
  color: #fff5f0;
  border: none;
}

.btn-instagram-header {
  padding: 0.6rem 1.4rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  background-color: #fff5f0;
  color: #a64b2a;
  border: 2px solid #a64b2a;
}

.btn-instagram:hover {
  background-color: #d85c24;
}

.btn-back {
  background-color: #fff5f0;
  color: #a64b2a;
  border: 2px solid #a64b2a;
}

.btn-back:hover {
  background-color: #a64b2a;
  color: #fff5f0;
}

/* FOOTER */
footer {
  background-color: #fff0e2;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #7c4b3b;
}

footer .social-media {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

footer .social-media a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
  filter: brightness(0) saturate(100%) invert(23%) sepia(34%) saturate(480%) hue-rotate(340deg) brightness(90%) contrast(89%);
}

footer .social-media a:hover img {
  transform: scale(1.2);
  filter: none;
}


/* INTOLERANCIAS */
.intolerances-box {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 2rem;
}

.intolerances-text {
  font-weight: bold;
  font-size: 1.1rem;
  color: #a64b2a;
  margin-bottom: 0.5rem;
}

.intolerances-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.intolerances-icons img {
  width: 75px;
  height: 75px;
  border-radius: 8px;
  object-fit: contain;
  background-color: white;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* HAMBURGER MENU STYLES (Oculto por defecto en desktop) */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* RESPONSIVE: MEDIA QUERY para pantallas de hasta 768px (Móviles y tabletas pequeñas) */
@media (max-width: 768px) {

  /* HEADER / Navegación - ORDEN MODIFICADO */
  .header-content {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  /* OCULTAMOS EL BOTÓN INSTAGRAM Y EL WRAPPER (Sólo queda el language-switcher suelto) */
  .btn-instagram-header {
    display: none;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .logo {
    order: 2;
    margin: 0 auto;
    flex-grow: 0;
    text-align: center;
  }

  .language-switcher {
    display: flex;
    align-items: center;
    order: 1;
    margin-left: 0;
  }


  /* ESTILOS DEL OVERLAY LATERAL (Sidenav) - SIN CAMBIOS */
  .nav-list {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 0;
    background-color: #5e2c1c;
    flex-direction: column;
    padding-top: 60px;
    z-index: 2000;
    overflow-x: hidden;
    transition: 0.3s;
    align-items: flex-start;
    gap: 2rem;
    opacity: 0;
  }

  .nav-list a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 1.5rem;
    color: #fff0e2;
    display: block;
    transition: 0.3s;
  }

  .nav-list.show {
    width: 70%;
    opacity: 1;
  }

  /* SECCIONES PRINCIPALES */
  .about-flex {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  /* PRODUCT DETAIL */
  .product-detail {
    padding: 2rem 0;
  }

  /* Ajuste de altura del slider en móvil */
  .product-slider {
    height: 300px;
  }

  .product-detail h1 {
    font-size: 2rem;
  }

  .product-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .btn-instagram,
  .btn-back {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

  .intolerances-icons img {
    width: 60px;
    height: 60px;
  }

  .hero {
        padding: 5rem 0 4rem; /* Reducimos el padding general */
    }

   



}



/* RESPONSIVE: MEDIA QUERY para pantallas MÓVILES PEQUEÑAS (hasta 480px) */
@media (max-width: 480px) {


  h2 {
    font-size: 20px;
  }


  .header-content {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 0.8rem 0;
  }

  .logo {
    order: 2;
    width: 45px;
    height: 45px;
  }

  .menu-toggle {
    order: 3;
    margin-right: 0.5rem;
    font-size: 1.8rem;
  }

  /* Selector de Idioma (ya es order 3) */
  .language-switcher {
    order: 1;
    margin-left: 0.5rem;
    flex-basis: auto;
  }

  .language-switcher select {
    padding: 0.2rem 0.4rem;
    width: auto;
  }

  /* Ajuste de altura del slider en móvil pequeño */
  .product-slider {
    height: 250px;
  }

  /* PRODUCT DETAIL */
  .product-detail {
    padding: 1.5rem 0;
  }

  .product-buttons {
    gap: 0.5rem;
  }

  .btn-instagram,
  .btn-back {
    width: 90%;
    max-width: 300px;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }

  .product-detail h1 {
    font-size: 1.8rem;
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }
}

/* ABOUT IMAGE FIX */
.about-image img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}

/* BUTTON SIZE FIX */
.btn-instagram,
.btn-back {
  min-width: 120px;
  padding: 0.75rem 1.2rem;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
}

@media (max-width: 425px) {

  .hero-slogan{
    font-size: 1em;
    margin-top: 0.5em;
  }
}


/* RESPONSIVE: MEDIA QUERY para pantallas MÓVILES EXTREMADAMENTE ESTRECHAS (<= 360px) */
@media (max-width: 360px) {



  /* Ajuste para el título del producto */
  .product-detail h1 {
    font-size: 1.6rem;
  }

  /* Header */
  .header-content {
    gap: 0.5rem;
  }

  .logo {
    order: 2;
    width: 40px;
    height: 40px;
  }

  .menu-toggle {
    order: 3;
    font-size: 1.6rem;
  }

  .language-switcher {
    order: 1;
    height: 30px;
    width: 30px;
  }


  /* Product Detail Buttons: Asegurar que se vean bien */
  .product-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-instagram,
  .btn-back {
    width: 90%;
    max-width: none;
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}


@media (max-width: 480px) {


  .logo {
    order: 2;
    width: 40px;
    height: 40px;
  }

  .menu-toggle {
    order: 3;
    font-size: 1.6rem;
  }

  .language-switcher {
    height: 30px;
    width: 30px;
  }


}