/* ===== ESTILOS ESPECÍFICOS PARA LA PÁGINA DE INICIO ===== */

/* ===== SECCIÓN DE CATEGORÍAS ===== */
.categories-section {
  background: #FFFFFF !important;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin: 2rem 0;
  padding: 3rem 0;
}

.categories-section .container {
  position: relative;
  z-index: 2;
}

/* ===== SECCIÓN DE MENÚ PREVIEW ===== */
.menu-preview-section {
  background: #FFFFFF !important;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin: 2rem 0;
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.menu-preview-section .container {
  position: relative;
  z-index: 2;
}

/* ===== MEJORAS ESPECÍFICAS PARA TARJETAS ===== */
.category-card {
  position: relative;
  overflow: hidden;
}

.category-content h3 {
  color: #000000 !important;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(210, 105, 30, 0.1));
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 1;
}

.category-card:hover::before {
  opacity: 1;
}

.category-content {
  position: relative;
  z-index: 2;
}

.menu-item-card {
  position: relative;
  overflow: hidden;
}

.menu-item-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.05), rgba(210, 105, 30, 0.05));
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 1;
}

.menu-item-card:hover::after {
  opacity: 1;
}

.menu-item-content {
  position: relative;
  z-index: 2;
}

/* ===== BADGES PERSONALIZADOS ===== */
.badge.bg-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.badge.bg-success {
  background: var(--secondary-color) !important;
}

.badge.bg-warning {
  background: var(--accent-color) !important;
  color: var(--text-light) !important;
}

.badge.bg-info {
  background: var(--primary-color) !important;
}

/* ===== SECCIÓN ABOUT MEJORADA ===== */
#index-page .about-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Fondo de color para el home */
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.about-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
}

.about-image {
  position: relative;
  z-index: 2;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  border-radius: var(--border-radius-xl);
  z-index: -1;
  opacity: 0.3;
}

.about-content {
  position: relative;
  z-index: 2;
}

.about-content .btn {
  position: relative;
  z-index: 999;
  cursor: pointer;
  pointer-events: auto;
  display: inline-block;
}

.about-content .btn:hover {
  text-decoration: none;
}

.about-content a.btn {
  position: relative;
  z-index: 999;
  cursor: pointer;
  pointer-events: auto;
  display: inline-block;
  text-decoration: none;
}

/* ===== SECCIÓN DE UBICACIONES ===== */
.locations-section {
  background: #FFFFFF !important;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin: 2rem 0;
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.locations-section .container {
  position: relative;
  z-index: 2;
}

.location-card {
  position: relative;
  overflow: hidden;
}

.location-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.02), rgba(210, 105, 30, 0.02));
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 1;
}

.location-card:hover::before {
  opacity: 1;
}

.location-card h3 {
  position: relative;
  z-index: 2;
  color: #000000 !important;
  transition: color 0.3s ease;
}

.map-container {
  position: relative;
  z-index: 2;
}

/* ===== ANIMACIONES ESPECÍFICAS ===== */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.category-card:hover .category-image {
  animation: float 3s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.menu-item-card:hover .menu-item-image {
  animation: pulse 2s ease-in-out infinite;
}

/* ===== EFECTOS DE HOVER MEJORADOS ===== */
.category-card:hover .category-content h3,
.menu-item-card:hover .menu-item-content h4,
.location-card:hover h3 {
  color: var(--accent-color) !important;
}

.category-card:hover .category-content p {
  color: var(--text-primary);
}

/* ===== RESPONSIVE ESPECÍFICO ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    text-align: center;
  }
  
  .hero-description {
    font-size: 1rem;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .about-content .section-title {
    text-align: center;
  }
  
  .about-features {
    align-items: center;
  }
  
  .feature-item {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .category-content h3,
  .menu-item-content h4 {
    font-size: 1.25rem;
  }
  
  .about-content .section-title {
    font-size: 1.75rem;
  }
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
  .category-card:hover .category-image,
  .menu-item-card:hover .menu-item-image {
    animation: none;
  }
  
  .btn::before {
    display: none;
  }
  
  .category-card:hover,
  .menu-item-card:hover,
  .location-card:hover {
    transform: none;
  }
}

/* ===== ESTILOS PARA MODO OSCURO (FUTURO) ===== */
@media (prefers-color-scheme: dark) {
  .categories-section,
  .menu-preview-section,
  .locations-section {
    background: var(--bg-dark);
  }
  
  .category-card,
  .menu-item-card,
  .location-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .category-content h3,
  .location-card h3 {
    color: var(--text-light);
  }
  
  .category-content p {
    color: var(--text-muted);
  }
}

/* ===== OPTIMIZACIONES DE RENDIMIENTO ===== */
.category-image img,
.menu-item-image img,
.about-image img {
  will-change: transform;
}

.category-card,
.menu-item-card,
.location-card {
  will-change: transform;
}

/* ===== ESTILOS PARA IMPRESIÓN ===== */
@media print {
  .whatsapp-float,
  .hero-buttons,
  .social-links {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .category-card,
  .menu-item-card,
  .location-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
