/* Reset y estilos globales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  overflow-x: hidden; /* Evitar desplazamiento horizontal */
}

body {
  padding-top: 0; /* Eliminar el padding-top que estaba causando el espacio */
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

nav {
  position: sticky; /* Hacer que la barra de navegación sea sticky */
  top: 0;
  z-index: 1000;
  background-color: #f8f1e9;
  padding: 1rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 1px solid #e0d5c9;
  gap: 20px;
}

.logo {
  width: 200px;
  height: 70px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-bar {
  padding: 0.5rem;
  border: 1px solid #d4c3b5;
  border-radius: 4px;
  width: 300px;
}

.auth-buttons {
  margin-left: auto;
  margin-right: 20px;
  color: #6b4423;
  text-decoration: none;
}

.menu-icon {
  cursor: pointer;
  font-size: 24px;
  color: #6b4423;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.menu-icon:hover {
  background-color: rgba(107, 68, 35, 0.1);
}

main {
  flex: 1 0 auto; /* Hacer que el contenido principal ocupe el espacio disponible */
  margin-bottom: 0; /* Eliminar margen inferior */
  padding-bottom: 2rem; /* Añadir padding inferior para separar del footer */
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.featured-dishes {
  background-color: #fff;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border: 1px solid #e0d5c9;
  text-align: center;
  width: 100%;
}

.featured-dishes h2 {
  margin-bottom: 1.5rem;
}

/* Ajustar la sección del hero video */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 87vh; /* Reducir la altura para dejar espacio en blanco abajo */
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Oscurecer más el overlay del video */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7); /* Aumentar la opacidad del fondo negro */
  color: white;
  z-index: 2;
  padding: 0 2rem;
}

.culture-dishes {
  background-color: #fff;
  padding: 1rem 2rem;
  margin: 0 auto 1rem auto;
  border: 1px solid #e0d5c9;
  text-align: center;
  width: 100%;
  overflow: hidden;
}

/* Nuevo scroll horizontal para culturas */
.culture-scroll {
  display: flex;
  gap: 3rem;
  padding: 1rem 0;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.culture-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.culture-card {
  flex: 0 0 250px; /* Ancho fijo, no shrink, no grow */
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  background-color: white;
  height: 250px;
}

.culture-card:hover {
  transform: translateY(-5px);
}

.culture-card img {
  width: 100%;
  height: 80%;
  object-fit: cover;
}

.culture-card h3 {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 1.2rem;
  color: #6b4423;
}

/* Media queries para ajustar el comportamiento en diferentes tamaños de pantalla */
@media screen and (min-width: 768px) {
  .culture-scroll {
    flex-wrap: wrap; /* Permitir que las tarjetas se envuelvan en filas */
    overflow-x: visible; /* Desactivar el scroll horizontal en pantallas más grandes */
    justify-content: center; /* Centrar las tarjetas */
  }

  .culture-card {
    flex: 0 0 calc(33.333% - 1rem); /* 3 tarjetas por fila en tablets */
    margin-bottom: 1rem;
  }
}

@media screen and (min-width: 1200px) {
  .culture-scroll {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .culture-card {
    flex: 0 0 calc(16.666% - 1.7rem); /* 6 tarjetas en una fila en pantallas grandes */
  }
}

/* Estilos mejorados para la sección de recetas */
.recipe-filters {
  background-color: #fff;
  padding: 2rem;
  margin: 0 auto 2rem auto;
  border: 1px solid #e0d5c9;
  text-align: center;
  width: 100%;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.recipe-filters h2 {
  margin-bottom: 1.5rem;
  color: #6b4423;
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.recipe-filters h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #8b5d33, #d4c3b5);
  border-radius: 3px;
}

.culture-dishes h2 {
  margin-bottom: 1.5rem;
  color: #6b4423;
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.culture-dishes h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #8b5d33, #d4c3b5);
  border-radius: 3px;
}

/* Estilos para el slider de recetas */
/* Modificación para que las tarjetas ocupen más espacio horizontal */
.recipe-slider {
  position: relative;
  padding: 0 60px;
  margin: 2rem auto;
  overflow: visible;
  max-width: 100%; /* Cambiado de 1400px a 100% para ocupar todo el ancho disponible */
}

/* Contenedor de las tarjetas de recetas */
.recipe-track {
  display: flex;
  justify-content: space-between; /* Cambiado de center a space-between para distribuir el espacio */
  gap: 20px; /* Reducido de 25px a 20px para permitir más espacio a las tarjetas */
  width: 100%;
  margin: 0 auto;
  transition: all 0.5s ease;
}

/* Tarjeta de receta individual - Ajustada para ocupar más espacio */
.recipe-card {
  position: relative;
  flex: 1; /* Cambiado para que ocupe espacio disponible de manera equitativa */
  min-width: 220px; /* Ancho mínimo para evitar que sean demasiado estrechas */
  max-width: 300px; /* Ancho máximo para mantener la proporción */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: white;
  transition: all 0.3s ease;
  margin: 0;
  display: block;
  cursor: pointer;
  height: 380px;
}

/* Imagen de la receta */
.recipe-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-image img {
  transform: scale(1.08);
}

/* Contenido de la tarjeta */
.recipe-content {
  padding: 15px;
  height: 180px;
  display: flex;
  flex-direction: column;
}

.recipe-content h3 {
  margin: 0 0 15px;
  font-size: 18px;
  color: #333;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  height: 50px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Metadatos de la receta */
.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 0 5px;
}

.recipe-meta span {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.recipe-meta .difficulty {
  background-color: #f8f1e9;
  color: #6b4423;
}

.recipe-meta .time {
  background-color: #e3f2fd;
  color: #0d47a1;
}

.recipe-meta .category {
  background-color: #e8f5e9;
  color: #1b5e20;
}

/* Overlay para el hover */
.recipe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%);
  padding: 25px 20px;
  color: white;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
  border-radius: 12px;
}

.recipe-overlay.active {
  opacity: 1;
  visibility: visible;
}

.recipe-overlay .title {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.recipe-overlay p {
  color: white;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 90%;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.recipe-overlay .read-more {
  display: inline-block;
  padding: 8px 20px;
  background-color: #6b4423;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 25px;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.recipe-overlay .read-more:hover {
  background-color: #8b5d33;
  transform: translateY(-2px);
}

/* Botones de navegación del slider */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background-color: #6b4423;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  transition: all 0.3s ease;
}

.slider-nav:hover {
  background-color: #8b5d33;
  transform: translateY(-50%) scale(1.1);
}

.prev-button {
  left: 10px;
}

.next-button {
  right: 10px;
}

/* Indicador de carga */
.loading-indicator {
  text-align: center;
  padding: 30px;
  color: #6b4423;
  font-size: 16px;
  width: 100%;
}

.loading-indicator p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Modificar los estilos del footer */
footer {
  background: linear-gradient(to bottom, #8b5d33, #6b4423);
  color: white;
  padding: 3rem 0 0; /* Eliminar padding bottom */
  position: relative;
  width: 100%;
  margin-top: auto;
  min-height: fit-content;
  height: auto;
  overflow: visible;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-links {
  flex: 1;
  min-width: 200px;
  margin: 1rem;
}

.footer-links h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 0.5rem 0;
}

.footer-links ul li a {
  color: #f8f1e9;
  text-decoration: none;
}

.footer-links ul li a:hover {
  text-decoration: underline;
}

.footer-social {
  flex: 1;
  min-width: 200px;
  margin: 1rem;
}

.footer-social h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center; /* Centrar los iconos */
}

.social-icons img {
  width: 30px;
  height: 30px;
}

/* Ajustar el footer bottom */
.footer-bottom {
  width: 100%;
  padding: 1.5rem 0;
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.1);
  text-align: center;
}

.language-selector {
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative; /* Asegurar posicionamiento relativo */
  z-index: 20; /* Asegurar que esté por encima de otros elementos */
}

.language-selector label {
  margin-right: 0.5rem;
  color: #f8f1e9;
}

/* Estilos del Slider */
.slider-container {
  width: 100%;
  height: 50vh;
  position: relative;
  overflow: hidden;
  margin: 0 0 40px 0;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
}

.slide-card {
  position: relative;
  flex: 1;
  max-width: 400px;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
  transition: transform 0.3s ease;
}

.slide-card:hover {
  transform: translateY(-5px);
}

.slide-card img {
  width: 100%;
  height: 80%;
  object-fit: cover;
}

.slide-card h3 {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 1.2rem;
  color: #6b4423;
}

.slider-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
  pointer-events: none;
}

.slider-button {
  pointer-events: auto;
  background-color: rgba(107, 68, 35, 0.7);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.slider-button:hover {
  background-color: rgba(107, 68, 35, 0.9);
}

.dots-container {
  position: absolute;
  bottom: -30px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  padding-bottom: 10px;
}

.dot {
  pointer-events: auto;
  width: 12px;
  height: 12px;
  background-color: rgba(107, 68, 35, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: rgba(107, 68, 35, 0.9);
}

/* Estilos del Hero Video */
.video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-overlay h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.video-overlay p {
  font-size: 1.5rem;
  max-width: 800px;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.hero-btn {
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow: none;
}

.primary-btn {
  background-color: #6b4423;
  color: white;
  border: 2px solid #6b4423;
}

.primary-btn:hover {
  background-color: #8b5d33;
  border-color: #8b5d33;
  transform: translateY(-3px);
}

.secondary-btn {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Estilos responsive para el hero video */
@media screen and (max-width: 768px) {
  .hero-video-section {
    height: 70vh; /* Altura reducida en pantallas más pequeñas */
  }

  .video-overlay h1 {
    font-size: 2.5rem;
  }

  .video-overlay p {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-btn {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-video-section {
    height: 60vh; /* Altura aún más reducida en móviles */
  }

  .video-overlay h1 {
    font-size: 2rem;
  }

  .video-overlay p {
    font-size: 1rem;
  }
}

/* ---------------------------- RESPONSIVE ---------------------------- */

@media screen and (max-width: 1200px) {
  .recipe-card {
    flex: 0 0 calc(25% - 0.75rem); /* 4 cards */
  }
  .slide-card {
    max-width: 350px;
  }
}

@media screen and (max-width: 992px) {
  .recipe-card {
    flex: 0 0 calc(33.333% - 0.67rem); /* 3 cards */
  }
}

@media screen and (max-width: 1024px) {
  .slide {
    gap: 1rem;
    padding: 0 1rem;
  }

  .slide-card:nth-child(3) {
    display: none;
  }

  .slide-card {
    max-width: 450px;
  }

  .culture-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
  }
}

@media screen and (max-width: 768px) {
  .recipe-card {
    flex: 0 0 calc(50% - 0.5rem); /* 2 cards */
  }

  .culture-card {
    flex: 0 0 200px;
    height: 200px;
  }
  main {
    max-width: 100%;
    padding: 0.5rem;
  }

  .slide {
    padding: 0 0.5rem;
  }

  .slide-card:nth-child(2) {
    display: none;
  }

  .slide-card {
    max-width: 100%;
  }

  .slider-container {
    height: 40vh;
  }

  .culture-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    padding: 0 0.5rem;
  }

  .culture-card {
    height: 200px;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .slider-button {
    padding: 0.5rem 1rem;
  }
}

@media screen and (max-width: 480px) {
  .recipe-card {
    flex: 0 0 100%; /* 1 card */
  }

  .culture-card {
    flex: 0 0 180px;
    height: 180px;
  }
  .slider-container {
    height: 35vh;
  }

  .culture-grid {
    grid-template-columns: 1fr;
  }

  .culture-card {
    height: 180px;
  }

  .search-bar {
    width: 150px;
  }

  nav {
    padding: 0.5rem;
  }
}

@media screen and (max-width: 320px) {
  .slider-container {
    height: 30vh;
  }

  .slide-card h3,
  .culture-card h3 {
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.2rem;
  }
}

.user-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.user-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #e0d5c9;
  padding: 2px;
}

#user-name {
  font-size: 1rem;
  color: #6b4423;
}

#logout-btn {
  color: #6b4423;
  text-decoration: none;
  margin-right: 20px;
}

#logout-btn:hover {
  text-decoration: underline;
}
/* Ajustar el contenedor de la derecha */
.right-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Añadir estilos para el nuevo wrapper de contenido */
.content-wrapper {
  max-width: 95%;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Filtros */
.filters {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  align-items: center;
}

.filter-button {
  padding: 0.5rem 1rem;
  border: 1px solid #d4c3b5;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  color: #6b4423;
  transition: all 0.3s ease;
}

.filter-button.active {
  background: #6b4423;
  color: white;
}

.filter-button:hover {
  background: #8b5933;
  color: white;
}

/* Grid de recetas */
.recipes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
  padding-top: 1rem;
  margin: 0 auto;
  max-width: 1200px;
}

.recipe-meta {
  padding: 0 1rem 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #666;
  gap: 0.5rem;
}

.difficulty,
.time,
.category {
  background: #f8f1e9;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  display: inline-block;
  color: #6b4423;
}

/* Estilos para el cuadro de filtros */
#filter-options {
  position: absolute;
  background: white;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  right: 0;
  top: 100%;
  min-width: 250px;
}

#filter-options label {
  display: block;
  margin-top: 10px;
  color: #6b4423;
  font-size: 0.9rem;
}

#filter-options select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #d4c3b5;
  border-radius: 4px;
  color: #666;
}

#apply-filters {
  width: 100%;
  margin-top: 15px;
  padding: 8px 15px;
  background-color: #6b4423;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#apply-filters:hover {
  background-color: #8b5933;
}

/* Media queries para responsividad */
@media screen and (max-width: 1200px) {
  .recipe-card {
    flex: 0 1 calc(33.333% - 1.5rem);
  }
}

@media screen and (max-width: 992px) {
  .recipe-card {
    flex: 0 1 calc(50% - 1rem);
  }
}

@media screen and (max-width: 768px) {
  .recipe-card {
    flex: 0 1 100%;
  }

  .recipe-meta {
    flex-wrap: wrap;
  }

  .filter-button {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

@media screen and (max-width: 480px) {
  .filters {
    flex-direction: column;
    gap: 1rem;
  }

  .recipe-image {
    height: 180px;
  }
}

/* Media queries para responsividad */

#recipe-slider-section {
  display: block; /* Asegúrate de que el slider esté visible */
  overflow: hidden; /* Ocultar el desbordamiento */
}

/* Eliminar la regla que oculta las recetas adicionales */
/* .recipe-card:nth-child(n+6) {
  display: none;
} */

/* Media queries para responsividad */
/* Ajustes responsivos para diferentes tamaños de pantalla */
@media screen and (max-width: 1400px) {
  .recipe-card {
    min-width: 200px;
  }
}

@media screen and (max-width: 1100px) {
  .recipe-card {
    min-width: 180px;
  }
}

@media screen and (max-width: 768px) {
  .recipe-card {
    min-width: 160px;
  }

  .recipe-slider {
    padding: 0 40px;
  }
}

@media screen and (max-width: 480px) {
  .recipe-card {
    min-width: 220px;
    max-width: 100%;
  }

  .recipe-track {
    justify-content: center;
  }
}

/* Nuevos estilos para el efecto hover */
.hover-effect-container {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto; /* Cambiado de 100% a auto para adaptarse al contenido */
  min-height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  background-color: #fff;
  transition: all 0.3s ease;
  transform: scale(0.95);
  opacity: 0;
}

.hover-effect-container.active {
  transform: scale(1);
  opacity: 1;
}

.hover-effect-container img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.hover-info {
  padding: 15px;
  background-color: #f8f1e9;
  min-height: 150px; /* Altura mínima para asegurar espacio para el contenido */
}

.hover-info h3 {
  margin: 0 0 10px 0;
  color: #6b4423;
  font-size: 1.2rem;
  text-align: center;
}

.hover-info p {
  margin: 0 0 15px 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #333;
  text-align: left;
}

.read-more-hover {
  display: inline-block;
  padding: 5px 15px;
  background-color: #6b4423;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: background-color 0.3s ease;
}

.read-more-hover:hover {
  background-color: #8b5d33;
}

/* Asegurar que la tarjeta tenga posición relativa para el posicionamiento correcto */
.recipe-card {
  position: relative;
  /* Resto de estilos se mantienen igual */
}

/* Footer Styles */
footer {
  background: linear-gradient(to bottom, #8b5d33, #6b4423);
  color: white;
  padding: 3rem 0 0; /* Eliminar padding bottom */
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: auto;
  min-height: fit-content;
  height: auto;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #f8f1e9, #d4c3b5, #f8f1e9);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-links {
  flex: 1;
  min-width: auto;
  margin: 0;
}

.footer-links h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 0.8rem;
  color: #f8f1e9;
}

.footer-links h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: #f8f1e9;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 0.8rem 0;
  transition: transform 0.3s ease;
}

.footer-links ul li:hover {
  transform: translateX(5px);
}

.footer-links ul li a {
  color: #f8f1e9;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: block;
}

.footer-links ul li a:hover {
  color: #ffffff;
}

.footer-social {
  flex: 1;
  min-width: auto;
  margin: 0;
}

.footer-social h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 0.8rem;
  color: #f8f1e9;
}

.footer-social h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: #f8f1e9;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-icons a img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.social-icons a:hover img {
  filter: brightness(0);
}

/* Ajustar el footer bottom */
.footer-bottom {
  width: 100%;
  padding: 1.5rem 0;
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.1);
  text-align: center;
}

.language-selector {
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.language-selector label {
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.language-selector select {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-selector select:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.language-selector select option {
  background-color: #6b4423;
  color: #fff;
}

/* Responsive Footer */
@media screen and (max-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .footer-links,
  .footer-social {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .social-icons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cookie-modal-content {
    padding: 1rem;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* Social Media Section */
.social-section {
  display: flex;
  flex-direction: column;
}

/* Newsletter */
.newsletter {
  margin-top: 1rem;
}

.newsletter h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  background-color: #fff;
  color: #6b4423;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #f8f1e9;
  transform: translateY(-2px);
}

/* Footer Divider */
.footer-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 3rem 0 1.5rem;
}

/* Footer Bottom */

.copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.cookie-settings-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.cookie-settings-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Cookie Modal */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.cookie-modal.active {
  display: flex;
}

.cookie-modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
}

.cookie-modal-content h2 {
  color: #333;
  margin-bottom: 1rem;
}

.cookie-options {
  margin: 2rem 0;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cookie-text h4 {
  color: #333;
  margin-bottom: 0.5rem;
}

.cookie-text p {
  color: #666;
  font-size: 0.9rem;
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #6b4423;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.cookie-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.cookie-btn.primary {
  background-color: #6b4423;
  color: #fff;
}

.cookie-btn.secondary {
  background-color: #f1f1f1;
  color: #333;
}

.cookie-btn:hover {
  transform: translateY(-2px);
}

/* Ajustar el botón de scroll */
.scroll-to-top {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  background: transparent; /* Eliminar el fondo marrón */
  padding: 0;
  margin: 0;
  z-index: 100; /* Asegurar que esté por encima de otros elementos */
  position: relative;
  text-decoration: none; /* Eliminar subrayado del enlace */
}

.scroll-gif {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.scroll-to-top:hover .scroll-gif {
  transform: scale(1.2);
}

/* Añadir un efecto visual para indicar que es clickeable */
.scroll-to-top::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transition: all 0.3s ease;
}

.scroll-to-top:hover::after {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Estilos del menú desplegable - Actualizados para coincidir con la imagen de referencia */
/* Nuevo estilo para el menú horizontal */
.overlay-menu {
  display: none;
  position: static;
  width: 100%;
  background-color: #f8f1e9;
  border-bottom: 1px solid #e0d5c9;
  z-index: 999;
}

.overlay-menu.active {
  display: block;
}

.overlay-content {
  display: flex;
  justify-content: space-around;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative; /* Añadido para posicionar el botón de cierre */
}

.menu-section {
  flex: 1;
  padding: 0 15px;
}

.menu-section h3 {
  color: #6b4423;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid #e0d5c9;
  padding-bottom: 10px;
}

.menu-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-section ul li {
  margin: 10px 0;
}

.menu-section ul li a {
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
  display: block;
}

.menu-section ul li a:hover {
  color: #6b4423;
}

/* Botón de cierre del menú */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #6b4423;
  background: transparent;
  border: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.close-btn:hover {
  color: #8b5d33;
}

/* Estilos responsivos para el menú */
@media screen and (max-width: 768px) {
  .overlay-content {
    flex-direction: column;
    padding: 15px;
  }

  .menu-section {
    margin-bottom: 15px;
  }

  .menu-section:last-child {
    margin-bottom: 0;
  }

  .menu-section h3 {
    margin-bottom: 10px;
  }

  .menu-section ul li {
    margin: 8px 0;
  }
}

/* Estilos responsivos */
@media screen and (max-width: 1400px) {
  .recipe-card {
    flex: 0 0 calc(25% - 20px);
    width: calc(25% - 20px);
  }
}

@media screen and (max-width: 1100px) {
  .recipe-card {
    flex: 0 0 calc(33.333% - 20px);
    width: calc(33.333% - 20px);
  }
}

@media screen and (max-width: 768px) {
  .recipe-card {
    flex: 0 0 calc(50% - 15px);
    width: calc(50% - 15px);
  }

  .recipe-slider {
    padding: 0 40px;
  }

  .recipe-filters h2 {
    font-size: 1.6rem;
  }

  .culture-dishes h2 {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 480px) {
  .recipe-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .recipe-slider {
    padding: 0 30px;
  }

  .slider-nav {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

/* Añadir estas mejoras responsivas al final del archivo styles.css */

/* Mejoras generales de responsividad */
@media screen and (max-width: 1200px) {
  .hero-video-section {
    height: 80vh;
  }

  .video-overlay h1 {
    font-size: 3rem;
  }

  .footer-container {
    padding: 0 1.5rem;
  }
}

@media screen and (max-width: 992px) {
  .hero-video-section {
    height: 70vh;
  }

  .video-overlay h1 {
    font-size: 2.5rem;
  }

  .video-overlay p {
    font-size: 1.2rem;
    max-width: 600px;
  }

  nav {
    padding: 0.8rem;
  }

  .logo {
    width: 180px;
    height: 60px;
  }

  .recipe-card {
    height: 360px;
  }
}

@media screen and (max-width: 768px) {
  .hero-video-section {
    height: 60vh;
  }

  .video-overlay h1 {
    font-size: 2rem;
  }

  .video-overlay p {
    font-size: 1rem;
    max-width: 500px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 80%;
    max-width: 300px;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
  }

  nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .search-container {
    order: 3;
    width: 100%;
    margin-top: 10px;
  }

  .recipe-filters,
  .culture-dishes {
    padding: 1.5rem 1rem;
  }

  .recipe-filters h2,
  .culture-dishes h2 {
    font-size: 1.8rem;
  }

  .recipe-slider {
    padding: 0 40px;
  }

  .recipe-card {
    min-width: 200px;
    height: 350px;
  }

  .recipe-content h3 {
    font-size: 16px;
  }
}

@media screen and (max-width: 576px) {
  .hero-video-section {
    height: 50vh;
  }

  .video-overlay h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .video-overlay p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .logo {
    width: 150px;
    height: 50px;
  }

  .auth-buttons,
  #logout-btn {
    font-size: 0.9rem;
  }

  .recipe-filters h2,
  .culture-dishes h2 {
    font-size: 1.5rem;
  }

  .recipe-slider {
    padding: 0 30px;
    margin: 1.5rem auto;
  }

  .slider-nav {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .recipe-card {
    min-width: 180px;
    height: 330px;
  }

  .recipe-content {
    padding: 10px;
  }

  .recipe-content h3 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .recipe-meta span {
    padding: 4px 8px;
    font-size: 11px;
  }

  .culture-card {
    height: 200px;
  }
}

@media screen and (max-width: 480px) {
  .hero-video-section {
    height: 45vh;
  }

  .video-overlay h1 {
    font-size: 1.5rem;
  }

  .video-overlay p {
    font-size: 0.85rem;
    max-width: 90%;
  }

  .hero-buttons {
    width: 90%;
  }

  .hero-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .recipe-card {
    min-width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .recipe-track {
    justify-content: center;
  }

  .culture-card {
    flex: 0 0 160px;
    height: 180px;
  }

  .culture-card h3 {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
}
