﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&family=Oswald:wght@500;700&family=Montserrat:wght@700;900&family=Playfair+Display:ital,wght@0,700;1,700&family=Bebas+Neue&family=Lobster&display=swap');

:root {
  --primary: #ff1493; /* Hot Pink */
  --primary-hover: #e01282;
  --secondary: #111111; /* Black */
  --background: #ffffff; /* White */
  --surface: #f8f9fa; /* Light Gray for cards */
  --text-primary: #111111;
  --text-secondary: #555555;
  --border: #eaeaea;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(255, 20, 147, 0.15); /* Pink tinted shadow */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }

.bg-primary { background-color: var(--primary); color: white; }
.bg-secondary { background-color: var(--secondary); color: white; }
.bg-surface { background-color: var(--surface); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 9999px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(255, 20, 147, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.5);
}

.btn-outline {
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: white;
}

.btn-admin {
  background-color: var(--secondary);
  color: white;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.875rem;
}
.btn-admin:hover {
  background-color: #333;
}

/* Headings */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Layout */
.grid {
  display: grid;
  gap: 20px;
}

/* Inputs */
.input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}
.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.1);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-active {
  background-color: #e6f4ea;
  color: #1e8e3e;
}
.badge-inactive {
  background-color: #fce8e6;
  color: #d93025;
}
.navbar {
  background-color: var(--background);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 5px 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 90px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.admin-link {
  background-color: var(--surface);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.admin-link:hover {
  background-color: var(--primary);
  color: white;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .logo-img {
    height: 50px;
  }
  
  .nav-links {
    gap: 10px;
  }
  
  .nav-link {
    font-size: 0.85rem;
  }
  
  .admin-link {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}
.carousel {
  position: relative;
  height: 500px;
  width: 100%;
  overflow: hidden;
  background-color: var(--secondary);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(17, 17, 17, 0.9) 0%, rgba(17, 17, 17, 0.4) 100%);
  z-index: 1;
}

.carousel-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 600px;
}

.carousel-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.carousel-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  transition: var(--transition);
}

.indicator.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

.mt-4 { margin-top: 1rem; }

@media (max-width: 768px) {
  .carousel { height: 400px; }
  .carousel-title { font-size: 2rem; }
  .carousel-subtitle { font-size: 1rem; }
  
  .corner-top-left { width: 30%; height: 75%; }
  .corner-bottom-right { width: 40%; height: 85%; }
}

/* Decorative Corner Waves */
.corner-wave {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.corner-top-left {
  top: 0;
  left: 0;
  width: 30%;
  height: 75%;
}

.corner-bottom-right {
  bottom: 0;
  right: 0;
  width: 40%;
  height: 85%;
}

.corner-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.corner-bottom-right svg {
  transform: scaleX(-1);
}

.wave-path-1 { opacity: 0.3; animation: wave-pulse 4s infinite alternate ease-in-out; }
.wave-path-2 { opacity: 0.5; animation: wave-pulse 5s infinite alternate ease-in-out; }
.wave-path-3 { opacity: 0.8; animation: wave-pulse 6s infinite alternate ease-in-out; }

@keyframes wave-pulse {
  0% { opacity: 0.2; }
  100% { opacity: 0.7; }
}

/* Content Animations */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

.animate-zoom-in {
  animation: zoomIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
/* Layout Container (defined in page.tsx) */
.menu-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.menu-content {
  flex-grow: 1;
}

/* MOBILE FIRST (Wrapped Icon Grid) */
.category-sidebar {
  width: 100%;
  flex-shrink: 0;
  display: block;
  position: sticky;
  top: 60px; /* Debajo del navbar en mÃƒÂ³viles */
  z-index: 40;
  background-color: var(--surface); /* Fondo para tapar el scroll */
  margin-top: -20px;
  padding: 10px 0;
  box-shadow: 0 4px 10px -4px rgba(0,0,0,0.1);
}

.sidebar-title {
  
}

.sidebar-sticky {
  width: 100%;
}

.sidebar-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; /* Permite agruparlos en varias lÃƒÂ­neas */
  justify-content: center;
  gap: 4px; /* Espaciado mÃƒÂ­nimo para permitir los bordes redondeados */
  padding: 4px 10px;
  align-items: stretch;
}

/* Cuadros rectangulares, pequeÃƒÂ±os, redondeados y con neÃƒÂ³n */
.sidebar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(25% - 3px); /* 4 cuadros por fila con un gap de 4px */
  min-height: 40px; 
  padding: 4px;
  background-color: white;
  border: 1px solid var(--primary); /* Borde fucsia */
  border-radius: 8px; /* Puntas redondeadas */
  margin: 0;
  color: var(--secondary); /* Texto en color oscuro para contraste */
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255, 20, 147, 0.4); /* Efecto NeÃƒÂ³n fucsia */
  transition: all 0.2s ease;
}

.sidebar-icon {
   /* Hide icons on mobile */
}

.sidebar-text {
  font-size: 0.65rem; /* slightly larger since no icon */
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  padding-left: 0;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2 lÃƒÂ­neas porque es mÃƒÂ¡s corto */
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  opacity: 1; 
}

.sidebar-box.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.8); /* Efecto NeÃƒÂ³n mÃƒÂ¡s fuerte cuando estÃƒÂ¡ activo */
}

.sidebar-box.active .sidebar-icon {
  color: white;
}

.desktop-text {
  display: none !important;
}

/* DESKTOP VIEW (Vertical Expandable Squares) */
@media (min-width: 992px) {
  .menu-layout {
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
  }

  .category-sidebar {
    width: 60px;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow: visible;
  }

  .sidebar-sticky {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 20px;
  }

  .sidebar-grid {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: visible;
    gap: 2px;
    padding: 0;
  }

  .sidebar-box {
    flex-direction: row; /* Restaura a horizontal en desktop */
    width: 50px;
    height: 50px;
    min-height: 50px;
    margin: 0;
    padding: 0;
    padding-left: 10px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s, box-shadow 0.2s;
    position: relative;
  }

  /* Efecto acordeÃƒÂ³n al hover */
  .sidebar-box:hover:not(.active) {
    width: 220px;
    background-color: white;
    color: var(--primary);
    border-color: rgba(255, 20, 147, 0.3);
    box-shadow: var(--shadow-md);
    z-index: 10;
  }

  .sidebar-icon {
    display: flex; /* Restore icon on desktop */
    align-items: center;
    justify-content: center;
    width: 28px;
    margin-bottom: 0;
  }

  .sidebar-text {
    font-size: 0.85rem;
    padding-left: 12px;
    margin-top: 0;
    text-align: left;
    white-space: nowrap;
    display: block; /* Restaura display block */
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .mobile-text {
    display: none !important;
  }

  .desktop-text {
    display: block !important;
  }

  .sidebar-box:hover:not(.active) .sidebar-text {
    opacity: 1;
    transition-delay: 0.1s;
  }

  .sidebar-box.active {
    z-index: 5;
    transform: none;
  }
}
.product-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-image-container {
  height: 200px;
  width: 100%;
  overflow: hidden;
  background-color: var(--secondary);
  position: relative; /* Para el overlay */
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary) 0%, #333 100%);
  color: var(--primary);
  font-weight: 800;
  font-size: 3rem;
}

.placeholder-text {
  opacity: 0.2;
}

/* Hover Overlay */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.15); /* Fondo casi transparente */
  backdrop-filter: blur(6px); /* Solo difumina la imagen fuertemente */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-description {
  color: white;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 600;
  text-shadow: 0 2px 5px rgba(0,0,0,0.8); /* Sombra para que el texto sea legible sobre cualquier color de imagen */
  transform: translateY(15px);
  transition: transform 0.3s ease;
}

.product-card:hover .product-description {
  transform: translateY(0);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 5px;
}

.product-name {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-primary);
  flex-grow: 1;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0;
}
.locations-section {
  padding: 80px 0;
  color: white;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 40px;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.location-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.location-card:hover {
  background-color: rgba(255, 20, 147, 0.1);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.location-icon {
  color: var(--primary);
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

.location-icon svg {
  width: 32px;
  height: 32px;
}

.location-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.location-details {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #ccc;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.location-details p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.inline-icon {
  color: var(--primary);
}

.location-btn {
  margin-top: 15px;
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.location-card:hover .location-btn {
  background-color: var(--primary);
  color: white;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 600px;
  padding: 25px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s ease;
  color: var(--text);
  text-align: left;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
  padding: 3px;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-title {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.modal-address {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.modal-map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: #eee;
}

@media (min-width: 768px) {
  .modal-map-container {
    height: 400px;
  }
}

/* Geolocation Styles */
.location-action-container {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-locate {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

.btn-locate:hover {
  background-color: #ff3399;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.6);
}

.btn-locate.locating {
  opacity: 0.8;
  cursor: wait;
}

.btn-locate .btn-icon {
  animation: none;
}

.btn-locate.locating .btn-icon {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.location-error {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin: 0;
}

.location-distance {
  color: var(--primary);
  font-weight: bold;
  font-size: 0.95rem;
  margin-top: 5px;
  margin-bottom: 10px;
  background: rgba(255, 20, 147, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
}

.nearest-card {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.3);
  position: relative;
  overflow: hidden;
  transform: translateY(-5px);
}

.nearest-badge {
  position: absolute;
  top: 15px;
  right: -30px;
  background-color: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 30px;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 1;
}
.order-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000; /* Higher than floating button */
  padding: 20px;
}

.order-modal-content {
  background-color: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  padding: 30px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  text-align: center;
}

.order-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
}

.order-modal-close:hover {
  color: var(--primary);
}

.order-modal-title {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.order-modal-subtitle {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.nearest-branch-card {
  background-color: #111;
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
  color: #fff;
}

.nearest-branch-name {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: bold;
}

.nearest-branch-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #ddd;
  font-size: 0.95rem;
  align-items: center;
}

.branch-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

.btn-map-link {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-map-link:hover {
  background-color: var(--primary);
  color: white;
}

.mobile-call-btn {
  background-color: var(--primary);
  color: white;
  padding: 10px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  display: block;
}

.desktop-call-text {
  
  color: #fff;
  font-weight: bold;
  margin-top: 10px;
}

@media (min-width: 768px) {
  .mobile-call-btn {
    
  }
  .desktop-call-text {
    display: block;
  }
}


.no-coverage-msg {
  color: #d9534f;
  font-weight: bold;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #fdf2f2;
  border-radius: 8px;
}

.change-address-section {
  border-top: 1px solid #eee;
  padding-top: 20px;
  margin-top: 10px;
}

.change-address-section h4 {
  color: var(--secondary);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.address-input-group {
  display: flex;
  gap: 10px;
  width: 100%;
}

.address-input {
  flex: 1;
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.address-input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-search {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .address-input-group {
    flex-direction: column;
  }
  .btn-search {
    width: 100%;
  }
}

.btn-search:hover {
  opacity: 0.9;
}

.btn-search:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.order-loading {
  color: #666;
  margin: 20px 0;
  font-style: italic;
}
.floating-order-btn {
  position: fixed;
  top: 50%;
  right: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: float-up-down 3s ease-in-out infinite;
}

.btn-content {
  background: linear-gradient(135deg, #1f1f1f, #333333);
  border: 2px solid var(--primary);
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-order-btn:hover .btn-content {
  transform: scale(1.05) translateY(-5px);
  background: linear-gradient(135deg, #2a2a2a, #404040);
  border-color: #ff3399;
}

.logo-container {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
  position: relative;
  animation: flash-sparkle 5s infinite;
}

.logo-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: coin-shine 5s infinite;
}

.floating-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btn-text {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-lines {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.order-icon {
  color: var(--primary);
  animation: wiggle 2s infinite;
}

.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--primary);
  filter: blur(25px);
  opacity: 0.4;
  border-radius: 50px;
  z-index: 1;
  animation: pulse-glow 2s infinite alternate;
}

/* Animations */
@keyframes float-up-down {
  0% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 10px)); }
  100% { transform: translateY(-50%); }
}

@keyframes pulse-glow {
  0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes wiggle {
  0%, 7% { transform: rotateZ(0); }
  15% { transform: rotateZ(-15deg); }
  20% { transform: rotateZ(10deg); }
  25% { transform: rotateZ(-10deg); }
  30% { transform: rotateZ(6deg); }
  35% { transform: rotateZ(-4deg); }
  40%, 100% { transform: rotateZ(0); }
}

@keyframes coin-shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

@keyframes flash-sparkle {
  0%, 18% {
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
    filter: brightness(1);
  }
  20% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 20, 147, 0.8);
    filter: brightness(1.2);
  }
  25%, 100% {
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
    filter: brightness(1);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .floating-order-btn {
    right: 15px;
    bottom: 20px;
    top: auto;
    transform: none;
    animation: none;
  }
  
  .glow-effect {
    display: none !important;
  }
  
  .btn-content {
    padding: 5px 8px;
    gap: 4px;
    border-radius: 20px;
  }
  
  .logo-container {
    width: 45px;
    height: 45px;
  }
  
  .btn-text {
    font-size: 0.75rem;
  }
  
  .order-icon {
    width: 14px;
    height: 14px;
  }
  
  .text-lines {
    flex-direction: column;
    align-items: center;
    gap: 0px;
    line-height: 1.1;
  }
}
.footer { background-color: var(--secondary);
  color: white;
  padding-top: 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.footer-subtitle {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.footer-desc {
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 15px;
}

.app-badges {
  display: flex;
  gap: 10px;
}

.badge-placeholder {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.6;
}
.menu-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
@media (min-width: 768px) {
    .menu-layout {
        flex-direction: row;
        align-items: flex-start;
    }
}
.category-sidebar {
    width: 100%;
    background: #111;
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 100px;
}
@media (min-width: 768px) {
    .category-sidebar {
        width: 250px;
        flex-shrink: 0;
    }
}
.sidebar-title {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list li {
    margin-bottom: 10px;
}
.category-link {
    color: #ddd;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}
.category-link:hover, .category-link.active {
    background: var(--primary);
    color: white;
}
.menu-content {
    flex-grow: 1;
}
.product-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}
.product-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-content {
    padding: 15px;
}
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.product-name {
    color: var(--primary);
    margin: 0;
    font-size: 1.2rem;
}
.product-price {
    font-weight: bold;
    color: #fff;
}
.product-description {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
}
.grid {
    display: grid;
}
.banner-carousel {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 800px;
    overflow: hidden;
    background-color: #000;
}
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}
.banner-slide.active {
    opacity: 1;
    z-index: 2;
}
.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}
.banner-text-line {
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin: 0;
    padding: 0 20px;
}
.banner-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    z-index: 10;
}
.banner-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}
.banner-dot.active {
    background: var(--primary);
}
/* CSS Animations for Banners */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

.banner-slide.active .banner-text-line {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.banner-slide.active[data-animation="fade-in"] .banner-text-line { animation-name: fadeIn; }
.banner-slide.active[data-animation="slide-up"] .banner-text-line { animation-name: slideUp; }
.banner-slide.active[data-animation="slide-down"] .banner-text-line { animation-name: slideDown; }
.banner-slide.active[data-animation="slide-left"] .banner-text-line { animation-name: slideLeft; }
.banner-slide.active[data-animation="slide-right"] .banner-text-line { animation-name: slideRight; }
.banner-slide.active[data-animation="zoom-in"] .banner-text-line { animation-name: zoomIn; }

.banner-slide.active .banner-text-line:nth-child(1) { animation-delay: 0.2s; }
.banner-slide.active .banner-text-line:nth-child(2) { animation-delay: 0.4s; }
.banner-slide.active .banner-text-line:nth-child(3) { animation-delay: 0.6s; }
.banner-slide.active .banner-text-line:nth-child(4) { animation-delay: 0.8s; }
/* Olas Decorativas del Banner */
.banner-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 75%;
    z-index: 5;
    pointer-events: none;
    opacity: 0.8;
}
.banner-wave-bottom {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30%;
    height: 75%;
    z-index: 5;
    pointer-events: none;
    opacity: 0.8;
    transform: rotate(180deg);
}
/* Floating Sidebar */
.floating-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #111;
    border: 1px solid var(--primary);
    border-left: none;
    border-radius: 0 15px 15px 0;
    padding: 5px 2px;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    
}

@media (min-width: 768px) {
    .floating-sidebar {
        display: block;
    }
    .menu-layout {
        display: block !important;
        padding-left: 70px;
    }
}

.floating-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.floating-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    position: relative;
    padding: 3px;
    transition: transform 0.3s;
}

.floating-link:hover { color: var(--primary);
    transform: scale(1.1);
}

.cat-icon { color: white; transition: color 0.3s;
    font-size: 1.1rem;
    min-width: 40px;
    text-align: center;
    z-index: 2;
}

.cat-name {
    position: absolute;
    left: 100%;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.floating-link:hover .cat-name {
    opacity: 1;
    transform: translateX(10px);
}

.floating-link:hover .cat-icon { color: var(--primary); }

/* OVERRIDE FOR FLOATING LINK (Desprenderse effect) */
.floating-link {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 3px 0;
    background: transparent;
    border-radius: 20px;
    width: 40px;
    height: 35px;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s, transform 0.3s;
    transform: scale(1) !important; /* disable previous scale hover */
}

.floating-link:hover {
    width: 170px;
    background: var(--primary);
    color: white;
}

.floating-link:hover .cat-icon {
    color: white !important; /* Keep white when background is primary */
}

.cat-name {
    position: static !important; /* reset from absolute */
    left: auto !important;
    background: transparent !important;
    color: white !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(0) !important;
    transition: opacity 0.3s ease !important;
    font-weight: bold;
    font-size: 0.9rem;
    padding-left: 5px !important;
}

.floating-link:hover .cat-name {
    opacity: 1 !important;
}
/* FIX: Prevenir que el fondo negro (.floating-sidebar) se expanda */
.floating-sidebar {
    width: 45px !important; 
    overflow: visible !important;
}

.floating-link {
    /* Permitir que el botÃ³n sobresalga de la barra al expandirse */
    width: 38px !important; 
}

.floating-link:hover {
    width: 170px !important; 
}
/* Mobile adjustment for thinner category sidebar */
@media (max-width: 768px) {
    .floating-sidebar {
        width: 25px !important;
        padding: 5px 0 !important;
    }
    .floating-link {
        width: 22px !important;
        height: 28px !important;
    }
    .cat-icon {
        font-size: 0.8rem !important;
        min-width: 22px !important;
    }
}
/* Responsive Text Scaling Function */
.banner-text-line {
    transition: font-size 0.3s ease;
    max-width: 85%;
    margin: 0 auto;
    word-wrap: break-word;
    text-shadow: 0 2px 15px rgba(0,0,0,0.6);
}

@media (max-width: 992px) {
    .banner-text-line {
        font-size: calc(var(--fs, 3rem) * 0.75) !important;
    }
}

@media (max-width: 768px) {
    .banner-slide {
        padding: 0 10% !important;
    }
    .banner-text-line {
        /* Automatic Scaling Function: Clamps the font size between 1.1rem and 50% of the original size */
        font-size: clamp(1.1rem, calc(var(--fs, 3rem) * 0.55), 2.5rem) !important;
        line-height: 1.2;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .banner-text-line {
        font-size: clamp(1rem, calc(var(--fs, 3rem) * 0.45), 1.8rem) !important;
    }
}

@media (min-width: 1100px) { .locations-grid { grid-template-columns: repeat(6, 1fr) !important; } }

