/* Overlay principal */
.ScrollHintAnimation_overlay__b1liM {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: ScrollHintAnimation_fadeIn__I8bqa 0.5s ease-out;
}

@keyframes ScrollHintAnimation_fadeIn__I8bqa {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Contenedor principal */
.ScrollHintAnimation_container__ZjBW\+ {
  background: white;
  border-radius: 2vw;
  padding: 3vw;
  max-width: 25vw;
  text-align: center;
  box-shadow: 0 1vw 3vw rgba(0, 0, 0, 0.3);
  animation: ScrollHintAnimation_slideUp__p5roV 0.6s ease-out;
  position: relative;
}

@keyframes ScrollHintAnimation_slideUp__p5roV {
  from {
    transform: translateY(2vw);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Contenido */
.ScrollHintAnimation_content__gh8m2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vw;
}

/* Animación de dedos */
.ScrollHintAnimation_fingerAnimation__kmUYG {
  position: relative;
  margin-bottom: 1vw;
}

.ScrollHintAnimation_trackpad__hfy74 {
  width: 8vw;
  height: 5vw;
  background: linear-gradient(145deg, #f0f0f0, #e6e6e6);
  border-radius: 0.8vw;
  position: relative;
  border: 0.1vw solid #d0d0d0;
  box-shadow: inset 0 0.1vw 0.3vw rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.ScrollHintAnimation_finger__z04Ck {
  position: absolute;
  width: 0.8vw;
  height: 1.2vw;
  background: radial-gradient(ellipse at center, #ffdbba 0%, #f4c2a1 70%, #e8a082 100%);
  border-radius: 0.4vw 0.4vw 0.3vw 0.3vw;
  box-shadow: 0 0.1vw 0.3vw rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.ScrollHintAnimation_finger1__D6c-Q {
  left: 2.5vw;
  top: 1.5vw;
  animation: ScrollHintAnimation_fingerScroll1__YGudk 2s ease-in-out infinite;
}

.ScrollHintAnimation_finger2__AwWKA {
  left: 4.7vw;
  top: 1.5vw;
  animation: ScrollHintAnimation_fingerScroll2__nbl9Y 2s ease-in-out infinite;
}

@keyframes ScrollHintAnimation_fingerScroll1__YGudk {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.8vw);
  }
}

@keyframes ScrollHintAnimation_fingerScroll2__nbl9Y {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.8vw);
  }
}

/* Indicador de scroll vertical */
.ScrollHintAnimation_scrollIndicator__BLuOu {
  position: absolute;
  right: 0.3vw;
  top: 0.5vw;
  bottom: 0.5vw;
  width: 0.2vw;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.1vw;
  overflow: hidden;
}

.ScrollHintAnimation_scrollLine__6TQKN {
  width: 100%;
  height: 30%;
  background: #01B494;
  background: var(--primary-color, #01B494);
  border-radius: 0.1vw;
  animation: ScrollHintAnimation_scrollMove__wOP8p 2s ease-in-out infinite;
}

@keyframes ScrollHintAnimation_scrollMove__wOP8p {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(200%);
  }
}

/* Indicador de scroll horizontal */
.ScrollHintAnimation_scrollIndicatorHorizontal__TVJOJ {
  position: absolute;
  left: 0.5vw;
  right: 0.5vw;
  bottom: 0.3vw;
  height: 0.2vw;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.1vw;
  overflow: hidden;
}

.ScrollHintAnimation_scrollLineHorizontal__S7eUb {
  height: 100%;
  width: 30%;
  background: #01B494;
  background: var(--primary-color, #01B494);
  border-radius: 0.1vw;
  animation: ScrollHintAnimation_scrollMoveHorizontal__4\+JmY 2s ease-in-out infinite;
}

@keyframes ScrollHintAnimation_scrollMoveHorizontal__4\+JmY {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(200%);
  }
}

/* Contenido de texto */
.ScrollHintAnimation_textContent__puME3 {
  margin: 1vw 0;
}

.ScrollHintAnimation_title__r0SWJ {
  font-family: 'Montserrat Medium', sans-serif;
  font-size: 1.2vw;
  color: #333;
  margin: 0 0 0.5vw 0;
  font-weight: 600;
}

.ScrollHintAnimation_subtitle__j9CH9 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9vw;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Botón de dismiss */
.ScrollHintAnimation_dismissButton__jLNQJ {
  background: transparent;
  border: 0.1vw solid #ddd;
  color: #666;
  padding: 0.8vw 1.5vw;
  border-radius: 0.5vw;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8vw;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5vw;
}

.ScrollHintAnimation_dismissButton__jLNQJ:hover {
  background: #f5f5f5;
  border-color: #bbb;
  color: #333;
}

/* Responsive para tablets (por si acaso) */
@media (max-width: 1024px) and (min-width: 769px) {
  .ScrollHintAnimation_container__ZjBW\+ {
    max-width: 35vw;
    padding: 4vw;
  }
  
  .ScrollHintAnimation_trackpad__hfy74 {
    width: 10vw;
    height: 6vw;
  }
  
  .ScrollHintAnimation_finger__z04Ck {
    width: 1vw;
    height: 1.5vw;
  }
  
  .ScrollHintAnimation_finger1__D6c-Q {
    left: 3vw;
    top: 2vw;
  }
  
  .ScrollHintAnimation_finger2__AwWKA {
    left: 6vw;
    top: 2vw;
  }
  
  .ScrollHintAnimation_title__r0SWJ {
    font-size: 1.8vw;
  }
  
  .ScrollHintAnimation_subtitle__j9CH9 {
    font-size: 1.3vw;
  }
  
  .ScrollHintAnimation_dismissButton__jLNQJ {
    font-size: 1.2vw;
    padding: 1.2vw 2vw;
  }
}

/* Ocultar completamente en móvil */
@media (max-width: 768px) {
  .ScrollHintAnimation_overlay__b1liM {
    display: none !important;
  }
}

.filters_container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 0 2vw;
}

.buttons_filters_container {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  justify-content: start;
  cursor: grab;
  margin-bottom: 2vw;
}

.buttons_filters_container:active {
  cursor: grabbing;
}

.buttons_filters_container::-webkit-scrollbar {
  display: none;
}

.buttons_filters {
  display: flex;
  justify-content: start;
  flex-wrap: nowrap;
  gap: 1vw;
}

.buttons_filters button {
  width: 9.5vw;
  padding: 1.042vw 1.302vw;
  border-radius: 1.042vw;
  background: #EBF9F6;
  border: .1vw solid #EBF9F6;
  flex-shrink: 0;
  cursor: grab;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.buttons_filters button:hover {
  background-color: var(--color-verde);
  color: #fff;
}

.descubrir_site .recipe_card_carousel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)); /* Cambio importante aquí */
  grid-gap: 2vw;
  gap: 2vw;
  width: 100%;
  padding: 0 2vw; /* Añadir padding horizontal */
  box-sizing: border-box; /* Asegurar que el padding no afecte el ancho total */
}

/* Reutiliza los estilos existentes del RecipeCarousel */
.descubrir_site .recipe_card_carousel .recipe_card_unique {
  width: 100%; /* Asegurar que cada card tome el ancho completo de su columna */
  display: flex;
  flex-direction: column;
  min-width: 0; /* Prevenir que el contenido fuerce un ancho mínimo */
}

.descubrir_site .recipe_card_unique .imagen-receta-descubrir {
  width: 100%;
  aspect-ratio: 16/9; /* Mantener proporción consistente */
  object-fit: cover;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
}

.additional-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
}

.additional-filters select {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.limit-message {
  text-align: center;
  color: #666;
  padding: 1rem;
  margin: 1rem 0;
  background: #f8f8f8;
  border-radius: 8px;
}

.filter {
  position: relative;
  cursor: pointer;
  margin-right: 20px;
}

.filter-text {
  color: #01B494;
  font-weight: bold;
}

.arrow-icon {
  margin-left: 0.5rem;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #f0f0f0;
}

.img_button_filter {
  width: 1.094vw;
  transition: all 0.3s ease;
}

.ingredients-dropdown {
  width: 250px;
  max-height: 300px;
  overflow-y: auto;
}

.ingredient-search {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 8px;
}

.dropdown-item.selected {
  background-color: #e0f7fa;
  color: #01B494;
}

.dropdown-item.disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

/* Actualizar estilos para que coincidan con RecipeCarousel */
.descubrir.subcard_recipe_card {
  width: 100%;
  box-sizing: border-box; /* Asegurar que el padding no afecte el ancho */
  padding: 0.781vw 1.042vw;
  background-color: #EBF9F6;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  flex: 1 1; /* Permitir que crezca para llenar el espacio */
}

.descubrir.subcard_recipe_card h3 {
  font-size: var(--fluid-font-h3);
  font-family: 'Montserrat Medium', sans-serif;
  font-style: normal;
  font-weight: 700;
  line-height: 110%;
  letter-spacing: 0.044vw;
  margin: 0.781vw 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
  color: #000;
}

.descubrir .subcard_recipe_card_info {
  text-align: left;
  color: #5F5B71;
  color: var(--Texto, #5F5B71);
  font-family: 'Montserrat Medium', sans-serif;
  font-size: 0.625vw;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
}

.descubrir .like-dislike-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: .5vw;
  align-items: center;
  justify-content: center;
}

.descubrir .like-button,
.descubrir .dislike-button {
  border: 0.1vw solid var(--primary-color);
  outline: none;
  width: 2.172vw;
  height: 2.172vw;
  cursor: pointer;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .4vw;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1vw;
}

.like-button img,
.dislike-button img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-tag {
  background-color: #e0f7fa;
  padding: 4px 8px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-tag button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 4px;
}

.clear-filters {
  background-color: #fff;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
}

.recipe-count {
  color: #666;
  margin-left: 8px;
}

.no-recipes-message {
  width: 100%;
  text-align: center;
  padding: 50px 0;
  grid-column: 1 / -1;
}

.no-recipes-message p {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-family: 'Montserrat Medium', sans-serif;
}

.top-filters {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
}

.bottom-filters {
  margin-bottom: 2rem;
}

.pagination {
  text-align: center;
  margin: 2rem 0;
}

.load-more-button {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.load-more-button:hover {
  background-color: var(--color-verde-hover);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.pagination-button {
  padding: 8px 16px;
  border: 1px solid var(--primary-color);
  background-color: white;
  color: var(--primary-color);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination-button:hover:not(.disabled) {
  background-color: var(--primary-color);
  color: white;
}

.pagination-button.active {
  background-color: var(--primary-color);
  color: white;
}

.pagination-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f5f5f5;
  border-color: #ddd;
  color: #999;
}

@media screen and (max-width: 480px) {
  .filters_container {
    padding: 0 4.167vw; /* 20px/480px */
  }

  .buttons_filters_container {
    margin-bottom: 4.167vw;
  }

  .buttons_filters {
    gap: 2.083vw; /* 10px/480px */
  }

  .buttons_filters button {
    width: 25vw; /* Botones más anchos en móvil */
    padding: 2.083vw 2.5vw;
    border-radius: 2.083vw;
    font-size: 3.333vw; /* 16px/480px */
  }

  .descubrir_site .recipe_card_carousel {
    grid-template-columns: repeat(2, 1fr); /* Cambio a 2 columnas */
    gap: 6vw; /* Aumentar el espacio entre cards */
    padding: 4vw; /* Aumentar el padding general */
    width: 92vw; /* Ancho total menos el padding */
    margin: 0 auto; /* Centrar el grid */
  }

  .recipe_card_unique {
    width: 100%;
    margin-bottom: 4vw; /* Espacio vertical entre cards */
  }

  .descubrir_site .recipe_card_unique .imagen-receta-descubrir {
    width: 100%;
    height: 40vw; /* Altura más grande para las imágenes */
    border-top-left-radius: 4vw;
    border-top-right-radius: 4vw;
  }

  .descubrir.subcard_recipe_card {
    padding: 3vw;
    border-bottom-left-radius: 4vw;
    border-bottom-right-radius: 4vw;
  }

  .descubrir.subcard_recipe_card h3 {
    font-size: var(--fluid-font-h3); /* Título más grande */
    margin: 2vw 0;
    line-height: 120%;
  }

  .descubrir .subcard_recipe_card_info {
    font-size: 3vw; /* Texto más grande */
    margin-top: 2vw;
  }

  .descubrir .like-dislike-buttons {
    gap: 2vw;
    margin-top: 2vw;
  }

  .descubrir.subcard_recipe_card {
    padding: 2.083vw 2.5vw;
  }

  .recipe_card_unique .descubrir.subcard_recipe_card h3 {
    font-size: var(--fluid-font-h3);
    letter-spacing: 0.208vw;
    margin: 2.083vw 0;
  }

  .descubrir .subcard_recipe_card_info {
    font-size: 2.917vw;
  }

  .descubrir .like-button,
  .descubrir .dislike-button {
    width: 4vw; /* 40px/480px */
    height: 4vw;
    padding: 1.667vw;
    border-radius: 2.083vw;
  }

  .descubrir .like-button img, .descubrir .dislike-button img {
    width: 3vw;
    height: auto;
  }

  .top-filters {
    flex-direction: column;
    gap: 2.083vw;
    padding: 2.083vw;
    margin-bottom: 4.167vw;
  }

  .filter {
    width: 100%;
    margin-right: 0;
  }

  .dropdown {
    width: 91.667vw; /* 440px/480px */
    left: 50%;
    transform: translateX(-50%);
  }

  .ingredients-dropdown {
    width: 91.667vw;
    max-height: 62.5vw; /* 300px/480px */
  }

  .ingredient-search {
    padding: 2.083vw;
    font-size: 3.333vw;
  }

  .dropdown-item {
    padding: 2.083vw 2.5vw;
    font-size: 3.333vw;
  }

  .active-filters {
    flex-wrap: wrap;
    gap: 2.083vw;
  }

  .filter-tag {
    padding: 1.667vw 2.083vw;
    font-size: 2.917vw;
  }

  .clear-filters {
    padding: 1.667vw 2.5vw;
    font-size: 2.917vw;
  }

  .recipe-count {
    font-size: 2.917vw;
  }

  .no-recipes-message p {
    font-size: 4.167vw; /* 20px/480px */
  }

  .pagination {
    gap: 2.083vw;
  }

  .pagination-button {
    padding: 2.083vw 3.333vw;
    font-size: 3.333vw;
  }

  .img_button_filter {
    width: 4.167vw; /* 20px/480px */
  }

  /* Ajustes adicionales para mejorar la usabilidad en móvil */
  .filter-text {
    font-size: 3.333vw;
  }

  .arrow-icon {
    width: 3.333vw;
  }

  /* Ajustes para el scroll horizontal de los filtros */
  .buttons_filters_container {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .buttons_filters button {
    scroll-snap-align: start;
  }

  /* Mejoras para la interactividad táctil */
  .like-button,
  .dislike-button,
  .buttons_filters button,
  .pagination-button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}


.historial-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.historial-header {
  margin-bottom: 30px;
}

.historial-header h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.historial-header .historial-count {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.month-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.month-filters button {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background-color: #f0f0f0;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.month-filters button.active {
  background-color: var(--primary-color); /* Color principal */
  color: white;
}

.month-filters button:hover {
  background-color: rgba(1, 180, 148, 0.1); /* Version con transparencia del color principal */
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  padding: 20px 0;
}

.recipe-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(1, 180, 148, 0.2); /* Sombra con el color principal */
}

.recipe-image-container {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 aspect ratio */
}

.recipe-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consumed-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: var(--primary-color); /* Color principal */
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: bold;
}

.recipe-info {
  padding: 15px;
}

.recipe-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 5px; /* Espacio para el scroll */
  max-width: 100%;
  -ms-overflow-style: none;  /* Oculta scrollbar en IE y Edge */
  scrollbar-width: none;     /* Oculta scrollbar en Firefox */
  cursor: grab;
  position: relative;
}

/* Oculta la barra de desplazamiento en Chrome/Safari */
.recipe-categories::-webkit-scrollbar {
  display: none;
}

/* Estilo cuando se está arrastrando */
.recipe-categories:active {
  cursor: grabbing;
}

.category-tag {
  background-color: rgba(1, 180, 148, 0.1); /* Version con transparencia del color principal */
  color: var(--primary-color); /* Color principal */
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  flex-shrink: 0; /* Previene que las etiquetas se compriman */
  display: inline-block;
}

.recipe-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.interaction-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.like-button,
.dislike-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 2;
}

.like-button img,
.dislike-button img {
  width: 24px;
  height: 24px;
}

.like-button:hover,
.dislike-button:hover {
  transform: scale(1.1);
}

.no-recipes {
  text-align: center;
  padding: 40px;
  color: #666;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.recipe-actions {
  display: flex;
  gap: 8px;
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.9);
  /* Línea horizontal eliminada */
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.unconsume-button,
.delete-button {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.unconsume-button {
  background-color: rgba(1, 180, 148, 0.1);
  color: var(--primary-color);
  height: 2vw;
}

.unconsume-button:hover {
  background-color: rgba(1, 180, 148, 0.2);
}

.recipe-actions .delete-button {
  background-color: #f56565;
  color: white;
  min-width: 7vw;
  border-radius: 0.3vw;
  height: 2vw;
  padding: 6px 12px;
  border: none;
  margin: 0;
  margin: initial;
}

.recipe-actions .delete-button:hover {
  background-color: rgba(255, 0, 0, 0.2);
}

.recipe-content {
  cursor: pointer;
}

.recipe-interactions {
  padding: 15px;
  /* Línea horizontal eliminada */
  display: flex;
  justify-content: center;
  align-items: center;
}

.toggle-not-affined-button {
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1vw;
}

.toggle-not-affined-button:hover {
  background-color: rgba(1, 180, 148, 0.9);
}

.not-affined-section h3 {
  margin: 20px 0;
  color: #333;
}

.not-affined-card {
  position: relative;
  border: 2px solid rgba(255, 0, 0, 0.1);
}

.restore-button {
  position: absolute;
  bottom: 15px;
  right: 15px;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.restore-button:hover {
  background-color: rgba(1, 180, 148, 0.9);
}

/* New styles */
.not-affined-section {
  margin-top: 20px;
}

.not-affined-section h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 20px;
}

.not-affined-card {
  background: white;
  position: relative;
  border: 2px solid rgba(1, 180, 148, 0.2);
  transition: all 0.3s ease;
}

.not-affined-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.not-affined-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff6b6b;
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: bold;
  z-index: 1;
}

.restore-button {
  position: absolute;
  bottom: 15px;
  right: 15px;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  z-index: 2;
}

.restore-button:hover {
  background-color: #019d82;
  transform: scale(1.05);
}

.not-affined-card .recipe-content {
  padding-bottom: 60px; /* Espacio para el botón de restaurar */
}

.not-affined-card .recipe-info {
  padding: 15px;
}

.not-affined-card h3 {
  margin: 10px 0;
  color: #333;
  font-size: 18px;
}

.not-affined-card .recipe-details p {
  color: #666;
  font-size: 14px;
}

/* Estilos específicos para los botones de like/dislike en el historial */
.recipe-interactions .like-dislike-buttons.large .like-button,
.recipe-interactions .like-dislike-buttons.large .dislike-button {
  width: 4vw;
  height: 4vw;
  padding: 0.8vw;
  border-radius: 2vw;
  border: 0.15vw solid var(--primary-color);
}

.recipe-interactions .like-dislike-buttons {
  gap: 1vw;
}

.recipe-interactions .like-dislike-buttons .like-button:hover,
.recipe-interactions .like-dislike-buttons .dislike-button:hover {
  transform: scale(1.15);
  box-shadow: 0 0.2vw 1vw rgba(0, 0, 0, 0.2);
}

/* Ajustar el diseño responsive */
@media (max-width: 768px) {
  .historial-container {
    padding: 2.5vw;
    max-width: 100%;
    overflow-x: hidden;
  }

  .historial-header h2 {
    font-size: 5vw;
    margin-bottom: 4vw;
  }

  .month-filters {
    gap: 2vw;
    padding-bottom: 2vw;
  }

  .month-filters button {
    padding: 2vw 3vw;
    font-size: 3vw;
    min-width: auto;
  }

  .recipes-grid {
    grid-template-columns: 1fr;
    gap: 4vw;
    padding: 4vw 0;
  }

  .recipe-card {
    width: 100%;
    margin: 0;
  }

  .recipe-image-container img {
    width: 100%;
    height: 40vw;
    object-fit: cover;
  }

  .recipe-info h3 {
    font-size: 4vw;
    line-height: 1.2;
  }

  .recipe-details p {
    font-size: 3vw;
  }

  .toggle-not-affined-button {
    font-size: 3vw;
    padding: 2vw 4vw;
    margin-bottom: 4vw;
  }

  .recipe-actions {
    flex-direction: column;
    gap: 2vw;
  }

  .recipe-actions button {
    font-size: 3vw;
    padding: 2vw;
  }
}

@media (max-width: 480px) {
  .historial-container {
    padding: 3vw;
  }

  .recipes-grid {
    gap: 6vw;
  }

  .recipe-card {
    border-radius: 3vw;
    box-shadow: 0 1vw 3vw rgba(0, 0, 0, 0.1);
  }
}

.flex_row {
  display: flex;
}

.button_group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.button_group button {
  padding: 10px 20px;
  border: none;
  background-color: #ebf9f6; /* Verde claro */
  color: var(--primary-color); /* Verde oscuro */
  cursor: pointer;
  border-radius: 5px;
  font-family: 'Montserrat Medium';
  font-size:  var(--fluid-font-h3);
}

.button_group button.selected {
  background-color: var(--primary-color); /* Verde oscuro */
  color: white;
}

.button_group button:hover:not(.selected) {
  background-color: #d1f1e8; /* Verde claro más oscuro */
}

.unread {
  font-weight: bold;
}

.read {
  font-weight: normal;
}

.apariencia-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.theme-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1 1;
    min-width: 300px;
    max-width: 400px;
}

.theme-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 12px;
    overflow: hidden;
}

.theme-image-container:hover {
    transform: scale(1.02);
}

.theme-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.check-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2));
}

.theme-option span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

