:root {
  --brand-yellow: #ffd100;
  --brand-green: #00b44e;
  --brand-green-dark: #009a42;
  --brand-dark: #1f2937;
  --gray-light: #f9fafb;
  --gray-text: #4b5563;
  --white: #ffffff;
  --border-color: #e5e7eb;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Optimización de scroll suave */
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", sans-serif;
  background-color: var(--brand-yellow);
  color: var(--brand-dark);
  /* Optimizaciones de renderizado */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
  /* Asegurar altura completa */
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  /* Optimización de contenedor */
  contain: layout style paint;
}
.main-header {
  background-color: var(--brand-yellow);
  padding: 0.5rem 0 2.5rem 0;
}
.header-content {
  display: flex;
  justify-content: space-between;
}
/* Asegurar que en escritorio todos los elementos estén en línea horizontal */
@media (min-width: 481px) {
  .restaurant-info {
    flex-direction: row !important;
    align-items: center;
    gap: 0.75rem;
  }
  
  .schedule-likes-info {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 0.6rem;
  }
}

@media (max-width: 640px) {
  .zone-selector {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  #district-filter {
    width: 100%;
  }
}
.header-button {
  background-color: var(--white);
  color: var(--brand-dark);
  font-weight: bold;
  padding: 0.5rem 1rem;
  border: none;
  font-size: 20px;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
  height: 40px;
  font-family: "Nunito", sans-serif;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-button--alt {
  background-color: var(--brand-dark);
  color: var(--white);
  font-weight: bold;
}

.hero-section {
  background-color: var(--brand-yellow);
  text-align: center;
  padding: 1.5rem 1rem;
}
.hero-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
}
.hero-section p {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.25rem;
}
.main-content {
  padding: 1rem 0;
  min-height: calc(100vh - 200px); /* Ajustar según el header y hero section */
}
.zone-selector {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 2rem; /* Aumentar el espaciado entre elementos */
  padding: 0.25rem; /* Agregar padding alrededor de todo el contenedor */
}
.zone-selector h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
#district-filter {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  color: var(--brand-dark);
  background-color: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
#district-filter:focus {
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.2);
}

.available-restaurants {
  background-color: transparent;
  border-radius: 0;
  padding: 0.25rem 1.25rem;
  margin-bottom: 1rem;
  border: none;
}

.available-restaurants-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.available-restaurants-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.available-restaurants-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-dark);
  flex-shrink: 0;
}

.available-restaurants-count {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-text);
  margin-left: auto;
}

.restaurant-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.5rem;
}
.restaurant-card {
  background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1.2rem 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 90px;
  cursor: pointer;
  gap: 1.2rem;
  margin: 0.5rem 0.75rem 0.5rem 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.restaurant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}

.restaurant-card:hover::before {
  left: 100%;
}

.restaurant-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.restaurant-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--brand-yellow, #ffd100) 0%, #ffdd33 100%);
  border-color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.restaurant-card:active {
  transform: translateY(-1px);
}
.restaurant-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 1.5rem;
  border: 3px solid rgba(255, 255, 255, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* Optimizaciones de imagen */
  will-change: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
  backface-visibility: hidden;
}

.restaurant-card:hover img {
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: auto;
  gap: 0;
}

.restaurant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.restaurant-likes {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #d32f2f;
  font-weight: 600;
}

.heart-icon {
  font-size: 0.9rem;
}

.likes-count {
  font-size: 0.85rem;
  font-weight: 600;
}
.restaurant-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.3rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  white-space: normal;
  flex: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.restaurant-card:hover .restaurant-title {
  color: var(--brand-dark, #1f2937);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  transform: translateX(2px);
}
.card-content p {
  color: var(--gray-text);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}
.restaurant-info {
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.schedule-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.restaurant-card:hover .schedule-info {
  color: var(--brand-dark, #1f2937);
  text-shadow: none;
}

.restaurant-likes {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #ff4757;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.restaurant-card:hover .restaurant-likes {
  color: #e74c3c;
  transform: scale(1.05);
}

.delivery-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: black;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  flex-wrap: wrap; /* Permitir que el texto se ajuste en múltiples líneas si es necesario */
  max-width: 100%; /* Asegurar que use todo el ancho disponible */
}

.restaurant-card:hover .delivery-info {
  color: black;
  transform: translateX(2px);
}

.schedule-icon, .delivery-icon {
  width: 14px;
  height: 14px;
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.restaurant-card:hover .schedule-icon,
.restaurant-card:hover .delivery-icon {
  transform: scale(1.1);
}

.delivery-icon {
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
}

.delivery-icon + .delivery-icon {
  margin-left: 0;
}

.schedule-text, .delivery-text {
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap; /* Para textos cortos mantener en una línea */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Permitir que textos más largos (como "Delivery • Atención en local") se muestren completamente */
.delivery-text {
  white-space: normal; /* Permitir salto de línea para textos largos */
  text-overflow: unset;
  overflow: visible;
}

.heart-icon {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  font-size: 0.9rem;
}

.likes-count {
  line-height: 1.2;
  font-weight: 600;
}


/* Estilos para la barra de búsqueda de distritos */
.district-search-container {
  margin: 30px auto;
  padding: 0 20px;
  max-width: 500px;
  display: flex;
  justify-content: center;
  position: relative;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.search-wrapper:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-wrapper:focus-within {
  border-color: #ff8c00;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.15);
}

.search-icon {
  padding: 12px 15px;
  color: #ff8c00;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

#district-search {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 15px 12px 0;
  font-size: 16px;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  color: var(--brand-dark);
}

#district-search::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

#district-search:focus {
  outline: none;
}

/* Flecha del dropdown */
.dropdown-arrow {
  padding: 12px 15px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.dropdown-arrow:hover {
  color: #6b7280;
}

.dropdown-arrow.rotated {
  transform: rotate(180deg);
}

/* Botón de localización integrado */
.location-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  border: none;
  padding: 12px 14px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  overflow: hidden;
  min-width: 48px;
  min-height: 48px;
  animation: locationPulse 2s ease-in-out infinite;
}

.location-btn-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.location-btn:hover {
  background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
  animation: locationBounce 0.6s ease-in-out infinite;
}

.location-btn:active {
  transform: scale(1.05) translateY(0px);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.7);
}

/* Efectos de pulso y ondas */
.location-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: rgba(255, 107, 107, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: locationPulseEffect 1.5s ease-in-out infinite;
  pointer-events: none;
}

.location-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: rgba(255, 107, 107, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: locationRippleEffect 2s ease-in-out infinite 0.5s;
  pointer-events: none;
}

/* Animaciones llamativas */
@keyframes locationPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
  }
}

@keyframes locationBounce {
  0%, 100% { transform: scale(1.1) translateY(-2px); }
  50% { transform: scale(1.15) translateY(-6px); }
}

@keyframes locationPulseEffect {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.4);
  }
}

@keyframes locationRippleEffect {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}

/* Efecto de brillo adicional */
.location-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.8s;
  z-index: 1;
}

.location-btn:hover::before {
  left: 100%;
}

/* Tooltip personalizado */
.location-btn::after {
  content: attr(title);
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-out;
}

.location-btn:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Responsivo para móviles */
@media (max-width: 768px) {
  .location-btn {
    padding: 10px 12px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
  }
  
  .location-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .location-btn::after {
    font-size: 11px;
    padding: 6px 10px;
    top: -50px;
  }
}

/* Dropdown personalizado */
.custom-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  border: 1px solid #e5e7eb;
  min-width: 180px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1;
  margin-top: 4px;
}

.custom-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content {
  max-height: 250px;
  overflow-y: auto;
  padding: 4px 0;
}

.dropdown-option {
  padding: 10px 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  color: var(--brand-dark);
  cursor: pointer;
  transition: background-color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-option:hover {
  background-color: #f8f9fa;
}

.dropdown-option.selected {
  background-color: #f1f5f9;
  color: var(--brand-dark);
}

.dropdown-option.selected:hover {
  background-color: #e2e8f0;
}

.dropdown-option-icon {
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.15s ease;
  color: #9ca3af;
}

.dropdown-option:hover .dropdown-option-icon,
.dropdown-option.selected .dropdown-option-icon {
  opacity: 1;
}

/* Scrollbar personalizado para el dropdown */
.dropdown-content::-webkit-scrollbar {
  width: 4px;
}

.dropdown-content::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 4px;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

@media (max-width: 768px) {
  .district-search-container {
    padding: 0 15px;
    max-width: 100%;
    margin: 20px auto;
  }
  
  .search-wrapper {
    border-radius: 8px;
  }
  
  .search-icon {
    padding: 10px 12px;
  }
  
  .dropdown-arrow {
    padding: 10px 12px;
  }
  
  #district-search {
    font-size: 14px;
    padding: 10px 12px 10px 0;
  }
}

.see-more-container {
  padding: 10px;
  display: flex;
  justify-content: center;
}
.see-more-button {
  background-color: var(--white);
  color: var(--brand-dark);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  display: none;
}
.see-more-button:hover {
  background-color: var(--gray-light);
  border-color: #d1d5db;
}
.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: var(--brand-dark);
  color: var(--white);
  text-align: center;
  border-radius: 4px;
  padding: 16px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 1rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s, visibility 0s linear 0.5s;
}
.toast.show {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s;
}
@media (max-width: 768px) {
  .restaurant-card {
    flex-direction: row !important;
    align-items: center !important;
    padding: 0.6rem !important;
    min-height: 65px !important;
    gap: 0.6rem !important;
    margin-bottom: 0.2rem !important;
    border-radius: 12px !important;
  }
  
  .restaurant-card:hover {
    transform: translateY(-4px) scale(1.01) !important;
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.5) !important;
  }
  
  .restaurant-card img {
    width: 65px !important;
    height: 65px !important;
    margin-right: 0 !important;
    border-width: 2px !important;
  }
  
  .restaurant-card:hover img {
    transform: scale(1.03) rotate(1deg) !important;
  }
  
  .card-content {
    flex: 1;
    min-height: auto;
    text-align: left;
    margin-bottom: 0;
    gap: 0.2rem;
  }
  
  .restaurant-title {
    font-size: 0.9rem !important;
    margin: 0;
    font-weight: 700;
    color: white;
    line-height: 1.2;
  }
  
  .restaurant-card:hover .restaurant-title {
    color: var(--brand-dark, #1f2937) !important;
  }
  
  .restaurant-likes {
    font-size: 0.7rem !important;
    color: #ff4757 !important;
  }
  
  .heart-icon {
    font-size: 0.75rem !important;
  }
  
  .likes-count {
    font-size: 0.7rem !important;
  }
  
  .restaurant-info {
    gap: 0.4rem !important;
    flex-wrap: nowrap;
    margin: 0;
    justify-content: flex-start;
  }
  
  .schedule-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
  }
  
  .restaurant-card:hover .schedule-info {
    color: var(--brand-dark, #1f2937) !important;
  }
  
  .restaurant-likes {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: #d32f2f;
    font-weight: 400;
  }
  
  .delivery-info {
    font-size: 0.7rem !important;
    color: black !important;
    font-weight: 500 !important;
  }
  
  .restaurant-card:hover .delivery-info {
    color: black !important;
  }
  
  .schedule-icon, .delivery-icon {
    width: 10px !important;
    height: 10px !important;
  }
  
  .delivery-icon {
    font-size: 0.7rem;
  }
  
  .delivery-icon + .delivery-icon {
    margin-left: 0.5rem;
  }
}

.delivery-info {
  font-size: 0.7rem;
  color: #00d084;
  font-weight: 400;
}
  


@media (max-width: 480px) {
  .restaurant-card {
    flex-direction: row;
    align-items: center;
    padding: 0.5rem;
    min-height: 60px;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
    border-radius: 10px;
  }
  
  .restaurant-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
  }
  
  .restaurant-card img {
    width: 55px;
    height: 55px;
    margin-right: 0;
    border-width: 2px;
  }
  
  .restaurant-card:hover img {
    transform: scale(1.02);
  }
  
  .card-content {
    flex: 1;
    min-height: auto;
    text-align: left;
    margin-bottom: 0;
    gap: 0.1rem;
  }
  
  .restaurant-title {
    font-size: 0.85rem;
    margin: 0;
    font-weight: 700;
    color: white;
    line-height: 1.2;
  }
  
  .restaurant-card:hover .restaurant-title {
    color: var(--brand-dark, #1f2937);
  }
  
  .restaurant-likes {
    font-size: 0.65rem;
    color: #ff4757;
  }
  
  .heart-icon {
    font-size: 0.7rem;
  }
  
  .likes-count {
    font-size: 0.65rem;
  }
  
  .restaurant-info {
    gap: 0.3rem;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
  }
  
  .schedule-likes-info {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    align-items: center;
    justify-content: flex-start;
  }
  
  .schedule-info {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
  }
  
  .restaurant-card:hover .schedule-info {
    color: var(--brand-dark, #1f2937);
  }
  
  .delivery-info {
    font-size: 0.65rem;
    color: black;
    font-weight: 500;
  }
  
  .restaurant-card:hover .delivery-info {
    color: black;
  }
  
  .schedule-icon, .delivery-icon {
    width: 9px;
    height: 9px;
  }
}



@media (max-width: 640px) {
  .hero-section h2 {
    font-size: 2rem;
  }
  .hero-section p {
    font-size: 1.25rem;
  }
  .container {
    padding: 0 1rem;
  }
  .zone-selector {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .zone-selector h3 {
    flex-shrink: 0;
    margin: 0;
  }
  #district-filter {
    flex: 1;
    max-width: none;
  }
  .restaurant-card {
    flex-direction: row;
    text-align: left;
    min-height: 120px;
    padding: 1rem;
  }
  .restaurant-card img {
    width: 65px;
    height: 65px;
    margin-right: 1rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .card-content {
     flex: 1;
     display: flex;
     flex-direction: column;
     justify-content: flex-start;
     min-height: auto;
     gap: 0;
   }
   .restaurant-title {
     width: 100%;
     margin: 0;
     text-align: left;
   }
   .restaurant-info {
     margin: 0;
     gap: 0.3rem;
   }
   .schedule-info, .delivery-info {
     display: flex;
     align-items: center;
     margin-bottom: 0.3rem;
     font-size: 0.85rem;
   }
   .schedule-icon, .delivery-icon {
     margin-right: 0.3rem;
     font-size: 0.9rem;
   }

  .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .header-button {
    width: auto;
    flex-grow: 0;
    margin-top: 0;
    height: 40px;
    font-size: 16px;
    padding: 0.5rem 0.75rem;
  }
}
.login-modal-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}
.login-modal-content {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  animation: fadeInScale 0.3s forwards ease-out;
  color: #333;
  font-family: "Nunito", sans-serif;
  position: relative;
}
.login-modal-content h2 {
  color: var(--brand-color);
  margin-top: 0;
  font-size: 2.2em;
  margin-bottom: 20px;
  font-weight: 800;
}
.login-modal-content p {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 30px;
}
.login-modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8em;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.3s ease;
}
.login-modal-close-btn:hover {
  color: #666;
}
#google-login-btn {
  background-color: #4285f4;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
#google-login-btn:hover {
  background-color: #357ae8;
  transform: translateY(-2px);
}
#google-login-btn:active {
  transform: translateY(0);
}
#google-login-btn img {
  width: 24px;
  height: 24px;
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
#favorites-count-display {
  display: flex;
  align-items: center;
  margin-left: 10px;
  cursor: pointer;
  color: #e91e63;
  font-weight: bold;
  font-size: 1.1em;
  gap: 5px;
}
#favorites-count-display svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
}


.restaurant-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.restaurant-title h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
}

.restaurant-likes-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  color: red;
  font-size: 0.85rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.restaurant-likes-inline svg {
  width: 16px;
  height: 16px;
}

/* Media query para pantallas grandes - aumentar tamaño de fuente */
@media (min-width: 1024px) {
  .zone-selector h3 {
    font-size: 1.4rem;
  }
  
  .available-restaurants-text {
    font-size: 1.1rem;
  }
  
  .available-restaurants-count {
    font-size: 1rem;
  }
  
  .restaurant-title {
    font-size: 1.2rem;
  }
  
  .schedule-info {
    font-size: 0.9rem;
  }
  
  .restaurant-likes {
    font-size: 0.9rem;
  }
  
  .delivery-info {
    font-size: 0.9rem;
  }
  
  .heart-icon {
    font-size: 1rem;
  }
  
  .likes-count {
    font-size: 1rem;
  }
}

/* Estilos personalizados para Tom Select */
.ts-control {
  border: 2px solid var(--gray-light) !important;
  border-radius: 8px !important;
  background-color: var(--white) !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 1rem !important;
  padding: 0.75rem 1rem !important;
  min-height: 48px !important;
  min-width: 250px !important;
  width: 250px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

.ts-control:focus {
  border-color: var(--brand-color) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
  outline: none !important;
}

.ts-control.single .ts-input {
  color: var(--text-dark) !important;
  font-weight: 500 !important;
}

.ts-dropdown {
  border: 2px solid var(--gray-light) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  background-color: var(--white) !important;
  font-family: 'Nunito', sans-serif !important;
  z-index: 1000 !important;
}

.ts-dropdown .ts-option {
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  color: var(--text-dark) !important;
  border-bottom: 1px solid var(--gray-light) !important;
  transition: background-color 0.2s ease !important;
}

.ts-dropdown .ts-option:last-child {
  border-bottom: none !important;
}

.ts-dropdown .ts-option.active {
  background-color: var(--brand-color) !important;
  color: var(--white) !important;
}

.ts-dropdown .ts-option:hover {
  background-color: var(--gray-light) !important;
}

.ts-dropdown .ts-option.active:hover {
  background-color: var(--brand-color) !important;
}

.ts-control .ts-input {
  font-family: 'Nunito', sans-serif !important;
  font-size: 1rem !important;
}

/* Responsive para Tom Select */
@media (max-width: 640px) {
  .ts-control {
    width: 180px !important;
    min-width: 180px !important;
    min-height: 48px !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
  }
  
  .ts-dropdown .ts-option {
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 640px) {
  /* Ajuste para el botón de cuenta de usuario */
  #my-account-btn { 
    position: relative; 
    top: 3px; 
  } 
  
  /* Ajuste para el botón de restaurante */
  #my-restaurant-btn {
    position: relative;
    top: 3px;
  }
}
@media (max-width: 480px) {
  .cont-gen {
    gap: 40px; /* Más espacio para evitar que el dropdown sea tapado */
  }
  
  .cont-com, .cont-but {
    padding: 6px 8px; /* Reducir aún más el padding */
  }
  
  .header-button {
    font-size: 12px; /* Reducir más el tamaño de fuente */
    padding: 0.5rem 0.5rem; /* Reducir el padding del botón */
  }
}



.logout-modal__overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  z-index: 9999;
  animation: logout-fade-in .2s ease-out both;
}

.logout-modal__card {
  width: min(92vw, 520px);
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px 26px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  animation: logout-pop-in .25s ease-out both;
}

.logout-modal__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #22c55e; 
  display: grid;
  place-items: center;
}

.logout-modal__title {
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(1.25rem, 2.2vw + .6rem, 2rem);
  color: #111827;
  margin: 6px 0 10px;
}

.logout-modal__text {
  font-size: clamp(1rem, 1.3vw + .6rem, 1.375rem);
  color: #374151;
}


.logout-modal--closing .logout-modal__card {
  animation: logout-pop-out .18s ease-in forwards;
}
.logout-modal--closing {
  animation: logout-fade-out .25s ease-in forwards;
}


@keyframes logout-pop-in {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes logout-pop-out {
  to { opacity: 0; transform: scale(.98); }
}
@keyframes logout-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes logout-fade-out {
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .logout-modal__overlay,
  .logout-modal__card {
    animation: none !important;
  }
}

#custom-dropdown,
.dropdown-arrow {
  display: none !important;
}

/* Animaciones adicionales para las tarjetas de restaurante */
@keyframes cardPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes iconBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  60% { transform: translateY(-2px); }
}

.restaurant-card:active {
  animation: cardPulse 0.3s ease-in-out;
}

.restaurant-card:hover .schedule-icon,
.restaurant-card:hover .delivery-icon,
.restaurant-card:hover .heart-icon {
  animation: iconBounce 0.6s ease-in-out;
}

/* Efecto de resplandor para móviles */
@media (max-width: 768px) {
  .restaurant-card:active {
    box-shadow: 0 0 20px rgba(255, 209, 0, 0.6) !important;
  }
}

/* Mejora en la transición de colores */
.restaurant-info > * {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto de destello en las tarjetas nuevas */
.restaurant-card.is-visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

