* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/*-----FONTS-----*/
@font-face {
  font-family: 'Inter-Light';
  src: url('../fonts/Inter-Light.woff2') format('woff2'),
    url('../fonts/Inter-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Inter-ExtraLight';
  src: url('../fonts/Inter-ExtraLight.woff2') format('woff2'),
    url('../fonts/Inter-ExtraLight.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Inter-Regular';
  src: url('../fonts/Inter-Regular.woff2') format('woff2'),
    url('../fonts/Inter-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Inter-Bold';
  src: url('../fonts/Inter-Bold.woff2') format('woff2'),
    url('../fonts/Inter-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'LFTEticaSheriff-Regular';
  src: url('../fonts/LFTEticaSheriff-Regular.woff2') format('woff2'),
    url('../fonts/LFTEticaSheriff-Regular.ttf') format('truetype');
  font-style: normal;
}


@font-face {
  font-family: 'LFTEticaSheriff-SemiBd';
  src: url('../fonts/LFTEticaSheriff-SemiBd.woff2') format('woff2'),
    url('../fonts/LFTEticaSheriff-SemiBd.ttf') format('truetype');
  font-style: normal;
}

@font-face {
  font-family: 'LFTEticaSheriff-Bold';
  src: url('../fonts/LFTEticaSheriff-Bold.woff2') format('woff2'),
    url('../fonts/LFTEticaSheriff-Bold.ttf') format('truetype');
  font-style: normal;
}

:root {
  --rojo: #C32A26;
  --naranja: #EFA220;
  --marron: #7b3f28;
  --crema: #FEF6E8;
  --gris: #797878;
  --gris2: #e4e1e1;
  --verde: #1F9562;
  --verde2: #024C36;
  --dorado: #EFB810;
  --max-width: 1200px;

  /* Fuentes */
  --font-principal-regular: 'LFTEticaSheriff-Regular', serif;
  --font-principal-semi: 'LFTEticaSheriff-SemiBd', serif;
  --font-principal-bold: 'LFTEticaSheriff-Bold', serif;
  --font-boton: 'Inter-Regular';
  --font-parrafo: 'Inter', sans-serif;

  /* Tamaños de fuente */
  --font-size-title: 60px;
  --font-size-subtitle: 35px;
  --font-size-paragraph: 20px;
}


body {
  font-family: 'Inter', sans-serif;
}

/*SELECCIÓN DE TEXTO*/
/* Cambiar color de selección de texto */
::selection {
  background: var(--rojo);
  color: white;
}

/* Para compatibilidad con Firefox */
::-moz-selection {
  background: var(--rojo);
  color: white;
}


/**************************
     CATEGORIAS
***************************/
.categoria-general {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1920px;
  margin: auto;
  margin-top: 80px;
  text-align: center;
}

/*------ TITULO Y SUBTITULO -----*/
.categoria-header {
  width: 100%;
  margin-bottom: 30px;
}

.categoria-titulo {
  margin-top: 50px;
  font-family: var(--font-principal-semi);
  font-weight: normal;
  font-size: 40px;
  color: var(--rojo);
  text-align: center;
}

.categoria-subtitulo {
  font-family: var(--font-principal-regular);
  text-align: center;
  color: var(--marron);
  font-size: 25px;
  margin-top: 15px;
  margin-bottom: 30px;
}

/*------ CATEGORIAS -----*/
.categoria {
  /*flex: 1 1 calc(33.33% - 20px); /* Horizontal en PC */
  flex: 1 1 calc(33.33%);
  max-width: calc(33.33%);
  /* margin: 10px; */
  text-align: center;
  padding: 20px;
  color: white;
  position: relative;
}

.categoria img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.categoria img:hover {
  transform: scale(1.1);
}

.categoria h2 {
  font-family: var(--font-principal-semi);
  font-weight: normal;
  margin: 15px 0;
  font-size: 30px;
}

/*------ RESPONSIVE -----*/
@media (max-width: 768px) {
  .categoria {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .categoria img {
    width: 100%;
    max-width: 340px;
    height: auto;
  }

  .categoria-titulo {
    margin-top: 30px;
    font-size: 30px;
  }

  .categoria-subtitulo {
    font-size: 20px;
    margin: 0px 20px 0px 20px;
  }
}

/**************************
     HOJA ALIMENTOS
***************************/
/*PRODUCTOS*/
.gallery-section {
  padding-top: 100px;
  text-align: center;
  /*padding: 20px; */
}

.gallery-section h2 {
  font-family: var(--font-principal-semi);
  padding-top: 50px;
  font-size: 40px;
  color: var(--rojo);
}

.gallery-section p {
  font-family: var(--font-principal-regular);
  color: var(--marron);
  font-size: 25px;
  margin-top: 15px;
  margin-bottom: 50px;
}

.gallery {
  display: grid;
  /*gap: 10px; */
  justify-content: center;
}

.gallery-item {
  font-size: 32px;
  position: relative;
  overflow: hidden;
  /* background-color: #f0f0f0;  Color de fondo pastel */
}

.gallery-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.gallery-link img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item-title {
  font-family: var(--font-principal-semi);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: transparent;
  padding: 5px 10px;
  border-radius: 5px;
  color: transparent;
  z-index: 2;
  transition: color 0.3s;
}

.gallery-link:hover .gallery-item-title {
  color: white;
}

.gallery-link::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(195, 42, 38, 0.5);
  /* Efecto rojo traslúcido */
  transition: top 0.3s;
  z-index: 1;
}

.gallery-link:hover::after {
  top: 0;
}

@media (min-width: 1200px) {
  .gallery {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) and (min-width: 576px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .gallery-section h2 {
    font-size: 30px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .gallery-section p {
    font-size: 20px;
    margin-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;

  }
}

/*ANIMACION ALIMENTOS*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estado inicial */
.gallery-section h2,
.gallery-section .gallery-subtitle,
.gallery-item {
  opacity: 0;
  transform: translateY(40px);
}

/* Al entrar en vista */
.gallery-section h2.visible,
.gallery-section .gallery-subtitle.visible,
.gallery-item.visible {
  animation: fadeInUp 0.7s ease forwards;
}

/* Delay en cascada para gallery-item */
.gallery-item.visible:nth-child(1) {
  animation-delay: 0.1s;
}

.gallery-item.visible:nth-child(2) {
  animation-delay: 0.2s;
}

.gallery-item.visible:nth-child(3) {
  animation-delay: 0.3s;
}

.gallery-item.visible:nth-child(4) {
  animation-delay: 0.4s;
}

.gallery-item.visible:nth-child(5) {
  animation-delay: 0.5s;
}

.gallery-item.visible:nth-child(6) {
  animation-delay: 0.6s;
}

.gallery-item.visible:nth-child(7) {
  animation-delay: 0.7s;
}

.gallery-item.visible:nth-child(8) {
  animation-delay: 0.8s;
}

.gallery-item.visible:nth-child(9) {
  animation-delay: 0.9s;
}

.gallery-item.visible:nth-child(10) {
  animation-delay: 1s;
}

.gallery-item.visible:nth-child(11) {
  animation-delay: 1.1s;
}

.gallery-item.visible:nth-child(12) {
  animation-delay: 1.2s;
}

.gallery-item.visible:nth-child(13) {
  animation-delay: 1.3s;
}

.gallery-item.visible:nth-child(14) {
  animation-delay: 1.4s;
}

.gallery-item.visible:nth-child(15) {
  animation-delay: 1.5s;
}

.gallery-item.visible:nth-child(16) {
  animation-delay: 1.6s;
}

.gallery-item.visible:nth-child(17) {
  animation-delay: 1.7s;
}

.gallery-item.visible:nth-child(18) {
  animation-delay: 1.8s;
}

.gallery-item.visible:nth-child(19) {
  animation-delay: 1.9s;
}



/*PRODUCTOS*/
.productos {
  text-align: center;
  padding: 50px;
  max-width: 80%;
  margin: 0 auto;
}

.productos h2 {
  font-family: var(--font-principal-semi);
  font-weight: normal;
  font-size: 40px;
  color: var(--rojo);
  margin-bottom: 20px;
}
.producto span {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dorado);
  font-weight: bold;
  font-size: 20px;
}

.productos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.producto {
  flex: 1 1 calc(25% - 20px);
  /* Cuatro productos por fila */
  margin: 10px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.producto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 400px;
  transition: transform 0.3s ease;
}

.producto:hover img {
  transform: scale(1.05);
}

.producto h3 {
  font-family: var(--font-principal-semi);
  font-weight: normal;
  margin: 10px 0;
  font-size: 25px;
  color: var(--rojo);
}

.producto button {
  background-color: var(--naranja);
  border: none;
  padding: 10px 20px;
  margin-top: 20px;
  color: white;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.producto button:hover {
  background-color: var(--rojo);
}

@media (max-width: 1200px) {
  .producto {
    flex: 1 1 calc(33.33% - 20px);
  }
}

@media (max-width: 992px) {
  .producto {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .producto {
    flex: 1 1 100%;
  }

  .productos {
    text-align: center;
    padding: 0px;
    padding-top: 40px;
    padding-bottom: 40px;
    margin: 0 auto;
  }
}

/*ANIMACION PRODUCTOS*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.producto {
  opacity: 0;
  transform: translateY(40px);
}

/* Cuando se vuelve visible */
.producto.visible {
  animation: fadeInUp 0.7s ease forwards;
}

/* Efecto cascada con delays */
.productos-container .producto.visible:nth-child(1) {
  animation-delay: 0s;
}

.productos-container .producto.visible:nth-child(2) {
  animation-delay: 0.1s;
}

.productos-container .producto.visible:nth-child(3) {
  animation-delay: 0.2s;
}

.productos-container .producto.visible:nth-child(4) {
  animation-delay: 0.3s;
}

/**************************
     PRODUCTOS DETALLE
***************************/
.producto-detalle {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 80px;
  width: 60%;
  margin: 0 auto;
  padding-top: 80px;
  padding-bottom: 50px;
}

.imagen-producto {
  flex: 1 1 150px;
  overflow: hidden;
  display: inline-block;
  width: 300px;
  /* border: 1px solid var(--naranja); */
  border-radius: 10px;
  height: auto;
  cursor: pointer;
}

.imagen-producto img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

/* MODAL DETALLE */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 650px;
  height: auto;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  border: 1px solid var(--naranja);
  border-radius: 10px;
  display: block;
  width: 100%;
  height: auto;
}

.close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: var(--naranja);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1100;
}

.close:hover,
.close:focus {
  color: var(--rojo);
  text-decoration: none;
  cursor: pointer;
}

/*FIN MODAL*/

.texto-producto {
  flex: 2 1 300px;
}

.texto-producto h2 {
  font-family: var(--font-principal-semi);
  font-weight: normal;
  color: var(--rojo);
  font-size: 35px;
  margin-bottom: 10px;
}

.texto-producto h3 {
  font-family: var(--font-principal-regular);
  font-weight: normal;
  color: var(--naranja);
  font-size: 25px;
  margin-bottom: 15px;
}

.texto-producto p {
  font-family: var(--font-principal-regular);
  color: var(--gris);
  font-size: 16px;
  margin-bottom: 20px;
}

.iconos-producto {
  font-family: 'inter';
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-between; */
  gap: 20px;
}

.icono {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 30px;
}

.icono img {
  width: 70px;
  margin-bottom: 5px;
}

.icono span {
  font-size: 12px;
}

.button-detalle {
  font-family: 'Inter';
  font-size: 16px;
  padding: 10px 20px;
  background-color: var(--naranja);
  color: white;
  border: none;
  cursor: pointer;
}

.button-detalle:hover {
  background-color: var(--rojo);
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .producto-detalle {
    flex-direction: column;
    align-items: center;
    width: 90%;
    gap: 10px;
    padding-top: 10px;
  }

  .imagen-producto,
  .texto-producto {
    flex: 1 1 100%;
    text-align: center;
  }

  .iconos-producto {
    justify-content: center;
  }

  button {
    width: 100%;
    padding: 10px 0;
  }
}

/*ACCORDION*/
#faq-section {
  background-color: var(--crema);
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

#faq-section h2 {
  font-family: var(--font-principal-semi);
  font-weight: normal;
  font-size: 40px;
  color: var(--naranja);
  margin-bottom: 20px;
}


@media (max-width: 768px) {
  #faq-section {
    padding: 20px;
  }

  .accordion {
    max-width: 100%;
  }

  .nutrition-container .nutrition-image {
    max-width: 90%;
  }

  #faq-section h2 {
    font-size: 30px;
    text-align: center;
  }
}

/* Acordeón */
.accordion {
  max-width: 1200px;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 50px;
  padding-top: 50px;
}

.accordion h2 {
  text-align: left;
}

.accordion .accordion-item {
  border-bottom: 1px solid var(--naranja);
}

.accordion button {
  position: relative;
  display: block;
  text-align: left;
  width: 100%;
  padding: 1em 0;
  color: var(--rojo);
  font-size: 1.15rem;
  font-weight: 400;
  border: none;
  background: none;
  outline: none;
}

.accordion button:hover,
.accordion button:focus {
  cursor: pointer;
  color: var(--naranja);
}

.accordion button .accordion-title {
  font-family: var(--font-principal-semi);
  padding: 1em 1.5em 1em 0;
}

.accordion button .icon {
  display: inline-block;
  position: absolute;
  top: 18px;
  right: 0;
  width: 22px;
  height: 22px;
  border: 1px solid;
  border-radius: 50%;
}

.accordion button .icon::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 5px;
  width: 10px;
  height: 2px;
  background: currentColor;
}

.accordion button .icon::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 9px;
  width: 2px;
  height: 10px;
  background: currentColor;
}

/* Botón activo */
.accordion button[aria-expanded="true"] {
  color: var(--naranja);
}

.accordion button[aria-expanded="true"] .icon::after {
  width: 0;
}

/* Contenido */
.accordion .accordion-content {
  font-family: 'inter', sans-serif;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 200ms linear, max-height 200ms linear;
  will-change: opacity, max-height;
  margin: 0;
}

.accordion-content p {
  font-family: var(--font-principal-regular);
  font-size: 16px;
  color: var(--gris);
  line-height: 1.5;
  margin-bottom: 0.5em;

}

.accordion button[aria-expanded="true"]+.accordion-content {
  opacity: 1;
  max-height: 1000px;
  transition: all 200ms linear;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/*IMAGEN TABLA NUTRICIONAL*/
.nutrition-container .nutrition-image {
  max-width: 100%;
  max-height: 500px;
  height: auto;
  display: block;
  margin: 10px auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .nutrition-container .nutrition-image {
    max-width: 100%;
  }
}


.accordion-list {
  padding-left: 1.5rem;
  margin: 0;
  list-style-type: disc;
}

.accordion-list li {
  font-size: 16px;
  color: var(--gris);
  line-height: 1.5;
  margin-bottom: 0.5em;
}

.accordion-list li::marker {
  color: var(--naranja);
}

/* Listas numeradas */
.accordion-list-numerada {
  padding-left: 1.5rem;
  margin: 0;
  list-style-type: decimal;
}

.accordion-list-numerada li {
  font-family: var(--font-principal-regular);
  font-size: 16px;
  color: var(--gris);
  line-height: 1.5;
  margin-bottom: 0.5em;
}

.accordion-list-numerada li::marker {
  color: var(--naranja);
  font-weight: bold;
}

/*==ANIMACIÓN ACORDEÓN==*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  animation: fadeInUp 0.6s ease forwards;
}


/* TABLA NUTRICIONAL */
.table_container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 30px;
}

.title {
  font-size: 18px;
  font-weight: 500;
  color: var(--gris);
  margin: 30px 0 10px;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-family: 'Inter', sans-serif;
  background-color: transparent;
}

th,
td {
  border: 1px solid #ccc;
  padding: 14px 16px;
  text-align: center;
  font-size: 16px;
  color: var(--gris);
}

th {
  font-weight: 600;
}

.nota {
  font-size: 14px;
  color: var(--gris) !important;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
  table {
    min-width: 100%;
    font-size: 14px;
  }

  th,
  td {
    padding: 10px;
  }
}

@media screen and (max-width: 480px) {

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
  }

  tr {
    margin-bottom: 15px;
  }

  th {
    text-align: left;
    padding: 6px 0;
    border: none;
    font-weight: bold;
  }

  td {
    text-align: left;
    padding: 6px 0;
    border: none;
    border-top: 1px solid #ccc;
  }
}