* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }
  
  html,
  body {
    height: 100%;
    margin: 0;
  }
  
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fff;
  }
  
  nav {
    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;
    margin-left: auto;
  }
  
  .menu-icon {
    cursor: pointer;
  }
  
  main {
    max-width: 95%;
    margin: 1rem auto;
    padding: 0 1rem 4rem 1rem;
    flex: 1;
  }
  
  /* Breadcrumb */
  .breadcrumb {
    margin: 1rem 0;
    color: #666;
    font-size: 0.9rem;
  }
  
  .breadcrumb a {
    color: #6b4423;
    text-decoration: none;
  }
  
  .breadcrumb a:hover {
    text-decoration: underline;
  }
  
  /* Título de Cultura */
  .culture-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f8f1e9;
  }
  
  .culture-header h1 {
    color: #6b4423;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-align: center;
  }
  
  .culture-description {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
  }
  
  /* 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-card {
    flex: 0 1 calc(25% - 2rem);
    min-width: 250px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    margin: 0;
  }
  
  .recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .recipe-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
  }
  
  .recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .recipe-card:hover .recipe-image img {
    transform: scale(1.05);
  }
  
  .recipe-card h3 {
    padding: 1rem;
    color: #333;
    font-size: 1.1rem;
    margin: 0;
  }
  
  .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;
  }
  
  /* Footer fijo */
  footer {
    background-color: #6b4423;
    color: #fff;
    text-align: center;
    padding: 1rem;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
  }
  
  /* ---------------------------- RESPONSIVE ---------------------------- */
  
  @media screen and (max-width: 1200px) {
    .recipe-card {
      flex: 0 1 calc(33.333% - 2rem);
    }
  }
  
  @media screen and (max-width: 992px) {
    .recipe-card {
      flex: 0 1 calc(50% - 2rem);
    }
  }
  
  @media screen and (max-width: 768px) {
    main {
      padding: 0.5rem 0.5rem 4rem 0.5rem;
    }
  
    .recipe-card {
      flex: 0 1 calc(100% - 2rem);
    }
  
    .recipe-image {
      height: 150px;
    }
  
    .recipe-meta {
      flex-wrap: wrap;
    }
  
    .filter-button {
      font-size: 0.9rem;
      padding: 0.4rem 0.8rem;
    }
  
    .breadcrumb {
      font-size: 0.8rem;
    }
  
    .culture-header h1 {
      font-size: 2rem;
    }
  
    .culture-description {
      font-size: 1rem;
      padding: 0 1rem;
    }
  }
  
  @media screen and (max-width: 480px) {
    .filters {
      flex-direction: column;
      gap: 1rem;
    }
  
    .recipe-image {
      height: 180px;
    }
  
    .search-bar {
      width: 150px;
    }
  
    nav {
      padding: 0.5rem;
    }
  
    .culture-header {
      padding: 1.5rem 0;
    }
  
    .culture-header h1 {
      font-size: 1.75rem;
    }
  }
  
  @media screen and (max-width: 320px) {
    .recipe-meta {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .difficulty,
    .time,
    .category {
      width: 100%;
      margin-bottom: 0.3rem;
    }
  }
  
  .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right: 20px;
  }
  
  .user-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  #user-name {
    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;
  }
  
  #filter-options label {
    display: block;
    margin-top: 10px;
  }
  
  #filter-options select {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
  }
  
  #apply-filters {
    margin-top: 15px;
    padding: 8px 15px;
    background-color: #6b4423;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  #apply-filters:hover {
    background-color: #8b5933;
  }
  
  /* Estilos del menú desplegable - Actualizados para coincidir con "Recetas Dificultad Fácil" */
  .overlay-menu {
    display: none;
    position: static; /* Cambiado de fixed a static */
    width: 100%;
    background-color: #f8f1e9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #e8d5c4;
    font-size: 16px;
  }
  
  .overlay-menu.active {
    display: block; /* Muestra el menú cuando está activo */
  }
  
  .overlay-content {
    width: 100%;
    padding: 2rem 1rem;
    display: flex;
    justify-content: space-between;
    background-color: #f8f1e9;
    gap: 5px;
  }
  
  .close-btn {
    position: absolute;
    top: 120px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
  }
  
  .close-btn:hover {
    color: #6b4423;
  }
  
  .menu-section {
    flex: 1;
    margin: 0;
    padding: 0.3rem;
  }
  
  .menu-section h3 {
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: #333;
  }
  
  .menu-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .menu-section ul li {
    margin: 0.2rem 0;
    padding: 0.3rem 0;
  }
  
  .menu-section ul li a {
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .menu-section ul li a:hover {
    color: #6b4423;
  }
  
  /* Mejorar los estilos responsivos para páginas secundarias */
  
  /* Ajustes para el menú desplegable */
  @media screen and (max-width: 992px) {
    .overlay-content {
      flex-wrap: wrap;
    }
  
    .menu-section {
      flex: 0 0 50%;
      margin-bottom: 1rem;
    }
  }
  
  @media screen and (max-width: 576px) {
    .menu-section {
      flex: 0 0 100%;
    }
  
    .close-btn {
      top: 80px;
    }
  }
  
  /* Mejoras para la sección de cultura */
  @media screen and (max-width: 992px) {
    .culture-header h1 {
      font-size: 2.2rem;
    }
  
    .culture-description {
      max-width: 90%;
    }
  }
  
  @media screen and (max-width: 768px) {
    .culture-header {
      padding: 1.5rem 0;
    }
  
    .culture-header h1 {
      font-size: 1.8rem;
    }
  
    .culture-description {
      font-size: 0.95rem;
    }
  
    .filters {
      flex-wrap: wrap;
      gap: 0.5rem;
      justify-content: center;
    }
  
    .filter-button {
      margin: 0.2rem;
    }
  
    #filter-options {
      right: 0;
      left: 0;
      margin: 0 auto;
      width: 90%;
      max-width: 300px;
    }
  }
  
  @media screen and (max-width: 480px) {
    .culture-header h1 {
      font-size: 1.6rem;
    }
  
    .breadcrumb {
      font-size: 0.8rem;
      margin: 0.5rem 0;
    }
  
    .recipe-card h3 {
      font-size: 1rem;
      padding: 0.8rem;
    }
  
    .recipe-meta {
      padding: 0 0.8rem 0.8rem;
    }
  
    .user-info {
      gap: 5px;
    }
  
    #user-name {
      font-size: 0.9rem;
    }
  }
  