* {
  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';
  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;
  --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-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;
}


/**************************
     RECETAS
***************************/
.recetas-florida {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 130px 20px 40px 20px;
}

/* Header */
.recetas-header h2 {
  font-family: var(--font-principal-semi);
  font-weight: normal;
  font-size: 40px;
  color: var(--rojo);
}

.recetas-header p {
  font-family: var(--font-principal-regular);
  color: var(--naranja);
  font-size: 25px;
  margin-top: 15px;
  margin-bottom: 50px;
}

/* Filtros */
.filtros-recetas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  margin-bottom: 30px;
}

.filtro-receta {
  flex: 0 1 120px;
  text-align: center;
  background: none;
  border: none;
  box-shadow: none;
  text-decoration: none;
}

.filtro-receta img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  transition: 0.03s;
}

.filtro-receta span {
  font-family: var(--font-principal-bold);
  font-weight: normal;
  display: block;
  margin-top: 5px;
  color: var(--rojo);
  transition: 0.3s;
}

.filtro-receta:hover img,
.filtro-receta.active img {
  outline: 3px solid var(--naranja);
}

.filtro-receta:hover span,
.filtro-receta.active span {
  color: var(--naranja);
}

/* Recetas */
.recetas-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.recetas-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.receta-card {
  border: 1.5px solid var(--naranja);
  border-radius: 10px;
  overflow: hidden;
  background: white;
  transition: transform 0.3s ease;
}

.receta-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s;
}

.receta-card:hover img {
  transform: scale(1.05);
}

.receta-info {
  padding: 15px;
}

.receta-info h3 {
  font-family: var(--font-principal-semi);
  font-weight: normal;
  font-size: 25px;
  color: var(--rojo);
  margin: 10px 0 15px;
}

.receta-info span {
  font-family: var(--font-principal-regular);
  display: block;
  color: var(--naranja);
  font-size: 18px;
}

.btn-receta {
  font-family: 'Inter';
  font-size: 15px;
  padding: 8px 15px;
  background-color: var(--naranja);
  color: white;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
}

.btn-receta:hover {
  background-color: var(--rojo);
}

/* PAGINACIÓN */
.paginacion-recetas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.paginacion-recetas a,
.paginacion-recetas button,
.paginacion-recetas span {
  font-family: var(--font-principal-semi);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  color: white;
  background-color: var(--naranja);
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s;
  flex-shrink: 0;
  /* evita que se deformen en pantallas pequeñas */
}

.paginacion-recetas .active,
.paginacion-recetas .current {
  background-color: var(--rojo);
  color: white;
}

.paginacion-recetas button:hover {
  background-color: var(--naranja);
}


/* Responsive Recetas */
@media (max-width: 1024px) {
  .recetas-wrapper,
  .recetas-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .recetas-wrapper,
  .recetas-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .recetas-wrapper,
  .recetas-container {
    grid-template-columns: repeat(1, 1fr);
  }

  /* Filtros en 2 columnas */
  .filtros-recetas {
    justify-content: space-between;
  }

  .filtro-receta {
    flex: 0 0 calc(50% - 10px);
  }

  .recetas-header h2 {
    font-size: 35px;
  }
}

/*MODAL*/
.abrir-filtros-mobile {
  display: none;
  background-color: var(--rojo);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  margin: 20px auto;
  font-family: var(--font-principal-semi);
  cursor: pointer;
}

/* Modal */
.modal-filtros {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: flex-start;
}

.modal-filtros.active {
  display: flex;
}

.modal-contenido {
  background-color: white;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 0 0 16px 16px;
  animation: slideDown 0.3s ease forwards;
  position: relative;
}

.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 45px;
  color: var(--rojo);
  cursor: pointer;
}

.cerrar-modal:hover {
  color: var(--naranja);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .abrir-filtros-mobile {
    display: block;
  }

  .filtros-desktop {
    display: none;
  }

  .filtros-modal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }

  .filtros-modal .filtro-receta {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (min-width: 769px) {
  .modal-filtros {
    display: none !important;
  }
}

/*DETALLE RECETAS*/
.receta-detalle {
  max-width: 1200px;
  margin: auto;
  padding: 40px;
  font-family: 'inter';
}

.receta-titulo {
  font-family: var(--font-principal-semi);
  font-weight: normal;
  padding-top: 30px;
  padding-bottom: 30px;
  font-size: 40px;
  text-align: center;
  color: var(--rojo);
}

.receta-informacion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.receta-atributos-rojo {
  font-family: var(--font-principal-regular);
  background-color: var(--rojo);
  color: white;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 10px 20px;
  border-radius: 8px;
}

.atributo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.atributo img {
  width: 40px;
  height: 40px;
}

.atributo div {
  display: flex;
  flex-direction: column;
}

.atributo span {
  font-family: var(--font-principal-semi);
}

.receta-compartir {
  position: relative;
  display: inline-block;
}

.receta-compartir img {
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.boton-compartir {
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.redes-sociales {
  display: none;
  position: absolute;
  top: 0;
  left: 60%;
  transform: translateX(25%);
  margin-top: 10px;
  z-index: 1;
}

.redes-sociales a {
  margin: 0 10px;
}

.receta-compartir:hover .redes-sociales {
  display: block;
}

.redes-sociales img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.redes-sociales img:hover {
  transform: scale(1.2);
}

.receta-contenido {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.receta-ingredientes,
.receta-preparacion {
  padding: 20px;
  border-radius: 8px;
}

.receta-detalle h2 {
  font-family: var(--font-principal-semi);
  font-weight: normal;
  color: var(--rojo);
  margin-bottom: 20px;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
  color: #797878;
}

.receta-detalle ul li,
.receta-detalle ol li {
  font-family: var(--font-principal-regular);
  color: var(--gris);
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 2px dotted var(--gris2);
  /* border-bottom: 1px dashed #cecdcd;*/
  padding-bottom: 20px;
}

.receta-detalle ul li span,
.receta-detalle ol li span {
  font-family: var(--font-principal-semi);
  font-weight: normal;
  color: var(--rojo);
}

.receta-detalle ul li::marker,
.receta-detalle ol li::marker {
  color: var(--rojo); /* Cambia la viñeta al color que quieras */
  font-size: 20px;    /* Opcional: agrandar la viñeta */
}

/* Contenedor para Tips */
.receta-tips {
  margin: 20px;
  border: 1px solid var(--naranja);
  padding: 20px;
  border-radius: 8px;
  background: #fffbed;
}

.receta-tips h3 {
  font-family: var(--font-principal-semi);
  font-weight: normal;
  color: var(--rojo);
  margin-bottom: 10px;
}

.receta-tips ul {
  margin: 0;
  padding-left: 20px;
}

.receta-tips ul li span {
  font-family: var(--font-principal-semi);
  font-weight: normal;
  color: var(--rojo);
}

@media (max-width: 768px) {
  .receta-informacion {
    flex-direction: column;
    align-items: flex-start;
  }

  .receta-atributos-rojo {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .receta-compartir {
    align-self: center;
    margin-top: 10px;
  }

  .receta-contenido {
    grid-template-columns: 1fr;
  }

  .receta-detalle {
    padding-left: 20px;
    padding-right: 20px;

  }

  .receta-detalle ul li,
  .receta-detalle ol li {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .receta-titulo {
  font-size: 35px;

}
   }

  /* ANIMACIONES */
  .receta-titulo,
  .receta-atributos-rojo,
  .receta-ingredientes,
  .receta-compartir,
  .receta-preparacion,
  .receta-tips,
  .volver {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.3s ease-out forwards;
  }

  .receta-atributos-rojo {
    animation-delay: 0.2s;
  }

  .receta-ingredientes {
    animation-delay: 0.4s;
  }

  .receta-compartir {
    animation-delay: 0.6s;
  }

  .receta-preparacion {
    animation-delay: 0.8s;
  }

  .receta-tips {
    animation-delay: 1s;
  }

  .volver {
    animation-delay: 1.2s;
  }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

/* BOTÓN VOLVER */
.volver {
  margin-top: 40px;
  text-align: center;
}

.volver a {
  position: relative;
  font-family: var(--font-parrafo);
  color: var(--rojo);
  font-weight: normal;
  text-decoration: none;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px; /* espacio interior */
  border: 2px solid var(--rojo);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

/* Flecha */
.flecha-volver {
  opacity: 0;
  margin-right: 5px;
  transition: opacity 0.3s ease, margin-right 0.3s ease, color 0.3s ease;
}

/* Hover */
.volver a:hover {
  color: var(--naranja);
  border-color: var(--naranja);
}

.volver a:hover .flecha-volver {
  color: var(--naranja);
  opacity: 1;
  margin-right: 10px;
}
