/* ==========================================================================
   Dolce Tropea - Hoja de Estilos Principal (CSS Moderno & Premium)
   ========================================================================== */

/* Importación de Fuentes Premium de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght=300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght=300;400;500;600;700&family=Playfair+Display:wght=400;700&display=swap');

/* Variables de Diseño (Custom Properties) */
:root {
  /* Paleta Light (Predeterminada - Tono Crema/Cálido) */
  --color-primary: hsl(25, 40%, 20%);       /* Espresso cálido */
  --color-primary-light: hsl(25, 30%, 35%);
  --color-secondary: hsl(343, 90%, 60%);     /* Frambuesa vibrante */
  --color-secondary-hover: hsl(343, 80%, 50%);
  --color-bg-base: hsl(30, 45%, 98%);       /* Crema suave */
  --color-bg-card: hsl(0, 0%, 100%);        /* Blanco puro */
  --color-bg-glass: rgba(255, 255, 255, 0.75);
  --color-text-main: hsl(25, 30%, 15%);      /* Marrón oscuro para texto */
  --color-text-muted: hsl(25, 12%, 45%);
  --color-accent-gold: hsl(35, 75%, 55%);    /* Dulce de leche */
  --color-accent-green: hsl(140, 45%, 45%);  /* Pistacho */
  --color-accent-green-bg: hsl(140, 45%, 93%);
  --color-border: hsl(25, 20%, 90%);
  --color-shadow: rgba(74, 49, 33, 0.08);

  /* Medidas de Espaciado y Bordes */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  
  --shadow-sm: 0 2px 8px var(--color-shadow);
  --shadow-md: 0 8px 24px var(--color-shadow);
  --shadow-lg: 0 16px 40px rgba(74, 49, 33, 0.12);
  
  --container-max: 1200px;
}

/* Modo Oscuro (Preferencia del sistema o Toggle) */
[data-theme="dark"] {
  --color-primary: hsl(30, 20%, 90%);       /* Crema muy claro */
  --color-primary-light: hsl(30, 15%, 75%);
  --color-secondary: hsl(343, 90%, 65%);     /* Frambuesa un poco más luminoso */
  --color-secondary-hover: hsl(343, 90%, 55%);
  --color-bg-base: hsl(25, 20%, 10%);       /* Chocolate oscuro profundo */
  --color-bg-card: hsl(25, 15%, 14%);       /* Marrón intermedio */
  --color-bg-glass: rgba(25, 15, 10, 0.8);
  --color-text-main: hsl(30, 20%, 95%);      /* Blanco hueso */
  --color-text-muted: hsl(25, 10%, 70%);
  --color-border: hsl(25, 15%, 20%);
  --color-shadow: rgba(0, 0, 0, 0.3);
  --color-accent-green-bg: hsl(140, 45%, 15%); 
}

body.dark footer, [data-theme="dark"] footer {
    background-color: hsl(25, 20%, 10%) !important;    /* Chocolate oscuro profundo*/
}

/* Reset y Estilos Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Clases de Contenedor */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Componentes Globales & Botones (Thumb-zone friendly)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  transition: var(--transition-smooth);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--color-bg-card);
  color: var(--color-primary);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-bg-base);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Badge o Etiquetas */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-gold {
  background-color: var(--color-accent-gold);
  color: #ffffff;
}

.badge-green {
  background-color: var(--color-accent-green-bg);
  color: var(--color-accent-green);
}

/* ==========================================================================
   Header & Navegación (Sticky Glassmorphic)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-primary-light);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--color-secondary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Botón de Modo Oscuro */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-border);
  color: var(--color-primary);
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  transform: rotate(15deg) scale(1.05);
  background-color: var(--color-primary);
  color: var(--color-bg-card);
}

/* Menú Hamburguesa para Móviles */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  height: 24px;
  justify-content: space-between;
}

.mobile-nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(249, 59, 105, 0.08) 0%, rgba(255, 251, 247, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  align-self: flex-start;
  background-color: var(--color-accent-green-bg);
  color: var(--color-accent-green);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent-green);
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--color-secondary);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.hero-info-pills {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.info-pill {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-pill-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--color-border);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.info-pill-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.info-pill-text p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-bg {
  position: absolute;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, var(--color-border) 0%, transparent 70%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: -1;
  animation: morph-bg 12s infinite linear alternate;
}

@keyframes morph-bg {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%; }
  100% { border-radius: 70% 30% 50% 50% / 30% 50% 50% 70%; }
}

.hero-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  transform: rotate(2deg);
  transition: var(--transition-smooth);
}

.hero-image:hover {
  transform: rotate(0deg) scale(1.02);
}

/* Floating Card inside Hero */
.hero-floating-card {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background-color: var(--color-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.floating-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.floating-card-info h5 {
  font-size: 0.9rem;
}

.floating-card-info p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Menú Digital Interactivo
   ========================================================================== */
.menu-section {
  padding: 100px 0;
  background-color: var(--color-bg-base);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

/* Grilla de categorías para navegación directa */
.menu-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.category-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
}

.category-icon {
  font-size: 3rem;
  background-color: var(--color-bg-base);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.category-card:hover .category-icon {
  background-color: var(--color-secondary);
  color: white;
  transform: scale(1.1);
}

.category-card h3 {
  font-size: 1.4rem;
  color: var(--color-primary);
}

.category-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.category-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 0.95rem;
  margin-top: 10px;
  transition: var(--transition-fast);
}

.category-card:hover .category-link {
  color: var(--color-secondary-hover);
  letter-spacing: 0.5px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Controles de Búsqueda y Filtro */
.menu-controls {
  max-width: 800px;
  margin: 0 auto 40px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  background-color: var(--color-bg-base);
  border: 2px solid var(--color-border);
  padding: 16px 20px 16px 52px;
  border-radius: var(--radius-full);
  color: var(--color-text-main);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--color-secondary);
  background-color: var(--color-bg-card);
  box-shadow: 0 0 0 4px rgba(249, 59, 105, 0.1);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
  pointer-events: none;
}

/* Pestañas (Tabs) */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.menu-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
  white-space: nowrap;
  font-size: 1rem;
}

.tab-btn:hover {
  color: var(--color-primary);
  background-color: var(--color-bg-base);
}

.tab-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Filtros rápidos alimenticios */
.diet-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.diet-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background-color: var(--color-bg-card);
  transition: var(--transition-smooth);
}

.diet-btn:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}

.diet-btn.active {
  background-color: var(--color-accent-green-bg);
  border-color: var(--color-accent-green);
  color: var(--color-accent-green);
}

/* Grid de Productos */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  min-height: 400px;
}

@media (min-width: 576px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (min-width: 992px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
}

.product-card.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(10px);
}

.product-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-border);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.product-badge {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
}

.badge-featured { background-color: var(--color-accent-gold); }
.badge-veggie { background-color: var(--color-accent-green); }
.badge-sintacc { background-color: #17a2b8; }

.product-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.product-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-secondary);
  white-space: nowrap;
}

.product-description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex-grow: 1;
}

/* Interacción de Selección para Pedido */
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: auto;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  background-color: var(--color-bg-card);
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: bold;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background-color: var(--color-border);
}

.qty-val {
  width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-add-order {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  background-color: var(--color-primary);
  color: white;
  transition: var(--transition-smooth);
}

.btn-add-order:hover {
  background-color: var(--color-secondary);
}

.btn-add-order.in-cart {
  background-color: var(--color-accent-green);
}

/* Alerta de no resultados */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.no-results-icon {
  font-size: 3rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Sección de Información Práctica & Geolocalización
   ========================================================================== */
.info-section {
  padding: 100px 0;
  background-color: var(--color-bg-base);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.info-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.info-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 20px;
}

.info-card-icon {
  font-size: 1.8rem;
  color: var(--color-secondary);
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

.info-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-card-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.info-card-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
}

.live-status.open { color: var(--color-accent-green); }
.live-status.closed { color: var(--color-secondary); }

.map-wrapper {
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.map-frame {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.2) contrast(1.1);
}

/* ==========================================================================
   Prueba Social - Testimonios Reales Google Maps
   ========================================================================== */
.testimonials-section {
  padding: 100px 0;
  background-color: var(--color-bg-base);
  border-top: 1px solid var(--color-border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.testimonial-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  right: 24px;
  font-size: 5rem;
  font-family: 'Playfair Display', serif; /* Aplicada la nueva fuente premium */
  color: var(--color-border);
  line-height: 1;
  pointer-events: none;
}

.stars {
  display: flex;
  gap: 4px;
  color: var(--color-accent-gold);
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text-main);
  flex-grow: 1;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.user-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.user-info p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Barra Flotante del Carrito (Mobile Optimized CTA)
   ========================================================================== */
.order-bar-container {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  transform: translateY(150%);
  transition: var(--transition-smooth);
}

.order-bar-container.show {
  transform: translateY(0);
}

.order-bar {
  background-color: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  padding: 16px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(74, 49, 33, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-bar-info {
  display: flex;
  flex-direction: column;
}

.order-bar-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.order-bar-qty {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.btn-send-whatsapp {
  background-color: #25D366;
  color: white;
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-send-whatsapp:hover {
  background-color: #20ba59;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
}

.footer-description {
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-links h4, .footer-contact h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Media Queries & Responsividad (Mobile-First overrides)
   ========================================================================== */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content { align-items: center; }
  .hero-badge { align-self: center; }
  .hero-description { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-info-pills { justify-content: center; width: 100%; }
  .info-grid { grid-template-columns: 1fr; gap: 40px; }
  .map-wrapper { height: 350px; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .header-container { height: 70px; }
  .mobile-nav-toggle { display: flex; z-index: 1001; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; max-width: 320px; height: 100vh;
    background-color: var(--color-bg-card);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 40px; box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth); z-index: 1000;
  }
  .nav-links.active { right: 0; }
  .mobile-nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
  .mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
  .hero-title { font-size: 2.5rem; }
  .hero-info-pills { flex-direction: column; align-items: flex-start; max-width: 320px; margin: 24px auto 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .hero-floating-card { left: 10px; right: 10px; bottom: -10px; }
  .menu-tabs { justify-content: flex-start; padding-left: 12px; padding-right: 12px; }
}

/* ==========================================================================
   Estilos de Navegación Secundaria (Volver) & Botón WhatsApp
   ========================================================================== */
.back-btn-container { margin-bottom: 30px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Outfit', sans-serif; font-weight: 600;
  color: var(--color-text-muted); transition: var(--transition-fast);
}
.back-link:hover { color: var(--color-secondary); transform: translateX(-4px); }

.btn-card-whatsapp {
  width: 100%; background-color: #25D366; color: white;
  border-radius: var(--radius-full); padding: 12px 20px;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15); transition: var(--transition-smooth);
  margin-top: 8px;
}
.btn-card-whatsapp:hover { background-color: #20ba59; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25); }
.btn-card-whatsapp:active { transform: translateY(0); }
[data-theme="dark"] .btn-card-whatsapp { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }

/* ==========================================================================
   --- ESTILOS DEL CARRITO (TOTALMENTE INTEGRADOS AL MODO OSCURO) ---
   ========================================================================== */
.cart-floating-btn {
  position: fixed; bottom: 20px; right: 20px;
  background-color: #25d366; color: white;
  border: none; border-radius: 50px; padding: 15px 25px;
  font-size: 18px; font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); cursor: pointer;
  z-index: 1000; transition: transform 0.2s;
}
.cart-floating-btn:hover { transform: scale(1.05); }

/* Fondo oscuro con aparición suave */
.cart-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  opacity: 1; visibility: visible;
  transition: opacity 0.3s ease;
}

.cart-modal-overlay.hidden {
  opacity: 0; visibility: hidden;
}

/* Panel lateral flotante adaptativo */
.cart-modal-content {
  background: var(--color-bg-card); /* 🌟 Corregido: cambia con el tema */
  color: var(--color-text-main);    /* 🌟 Corregido: texto contrastado */
  width: 100%; max-width: 400px; height: 96vh;
  margin: 2vh 15px; border-radius: 20px; padding: 20px;
  box-sizing: border-box; overflow-y: auto;
  display: flex; flex-direction: column; gap: 15px;
  border: 1px solid var(--color-border);
  
  /* Efecto deslizante */
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-modal-overlay.hidden .cart-modal-content {
  transform: translateX(120%);
}

.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid var(--color-border); /* 🌟 Línea adaptativa */
  padding-bottom: 10px;
}
.close-cart { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--color-text-main); }

/* Estilos del Formulario del Carrito */
.cart-form input[type="text"], 
.cart-form input[type="tel"] {
  width: 100%; padding: 10px; margin-bottom: 10px;
  background: var(--color-bg-base);  /* 🌟 Corregido: Fondo oscuro/claro en inputs */
  color: var(--color-text-main);     /* 🌟 Corregido: Texto siempre visible al escribir */
  border: 1px solid var(--color-border);
  border-radius: 8px; box-sizing: border-box;
  font-family: inherit;
}
.form-row { display: flex; gap: 10px; }
.delivery-options { display: flex; gap: 15px; margin-bottom: 10px; }

.btn-checkout {
  background-color: var(--color-secondary); 
  color: white; width: 100%; padding: 15px;
  border: none; border-radius: 8px; font-size: 18px;
  font-weight: bold; cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-checkout:hover {
  background-color: var(--color-secondary-hover);
}

/* ==========================================================================
   OVERLAY PROCESANDO PAGO
   ========================================================================== */
.payment-loading {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}

.loading-card {
  background: var(--color-bg-card);
  padding: 40px; border-radius: var(--radius-lg);
  text-align: center; width: 90%; max-width: 360px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.loading-card h2 { margin-top: 20px; color: var(--color-primary); }
.loading-card p { color: var(--color-text-muted); margin-top: 8px; }

.spinner {
  width: 60px; height: 60px;
  border: 5px solid var(--color-border);
  border-top: 5px solid var(--color-secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite; margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-bar {
  width: 100%; height: 8px;
  background: var(--color-border); border-radius: 999px;
  margin-top: 20px; overflow: hidden;
}

.loading-progress {
  height: 100%; width: 0%;
  background: var(--color-secondary);
  animation: loadProgress 3s ease forwards;
}

@keyframes loadProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.loading-small { font-size: 0.8rem; margin-top: 12px; opacity: 0.7; }

/* ==========================================================================
   PRELOADER CINEMÁTICO: ENTRADAS LATERALES Y ALTA VELOCIDAD
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg-base);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
}

/* Contenedor del Helado */
.ice-cream-loader {
  position: relative;
  width: 120px;
  height: 180px;
}

/* 🧇 Cucurucho Evolucionado (Efecto Curvo 3D basado en image_75c34a.png) */
.cone {
  position: absolute;
  bottom: 10px;
  left: 30px;
  width: 60px;
  height: 85px;
  background: #de9b52;
  /* Capa 1: Sombra de redondez a la derecha | Capa 2 y 3: Rejas cruzadas */
  background-image: 
    linear-gradient(to right, transparent 35%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(135deg, rgba(139, 79, 18, 0.35) 15%, transparent 15%, transparent 50%, rgba(139, 79, 18, 0.35) 50%, rgba(139, 79, 18, 0.35) 65%, transparent 65%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.15) 15%, transparent 15%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 65%, transparent 65%);
  background-size: 100% 100%, 12px 12px, 12px 12px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 5px 8px rgba(0,0,0,0.18));
  
  /* Entrada fluida desde la izquierda */
  opacity: 0;
  animation: slideInFromLeft 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* 🔮 Bochas con Caída de Alta Velocidad (0.32 segundos de duración) */
.scoop {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  opacity: 0;
  animation: fastOvershootDrop 0.32s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* --- BOCHA 1: Chocolate (Cae al toque después del cono) --- */
.scoop-1 {
  background: radial-gradient(circle at 35% 35%, #7a431d 0%, #40200a 70%, #241104 100%);
  box-shadow: inset -3px -3px 8px rgba(0,0,0,0.6), 2px 5px 10px rgba(0, 0, 0, 0.25);
  bottom: 70px;
  left: 12px;
  z-index: 2;
  animation-delay: 0.45s; /* Entra ni bien frena el cono */
}

/* --- BOCHA 2: Frutilla (Seguidilla rápida) --- */
.scoop-2 {
  background: radial-gradient(circle at 35% 35%, #ff7597 0%, #d62846 70%, #800c20 100%);
  box-shadow: inset -3px -3px 8px rgba(0,0,0,0.5), -2px 5px 10px rgba(0, 0, 0, 0.23);
  bottom: 70px;
  left: 54px;
  z-index: 1;
  animation-delay: 0.7s; 
}

/* --- BOCHA 3: Crema Americana (Corona al instante) --- */
.scoop-3 {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #fff7e0 60%, #e0d2b4 100%);
  box-shadow: inset -2px -2px 6px rgba(0, 0, 0, 0.15), 0 8px 12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08); 
  bottom: 104px;
  left: 33px;
  z-index: 3;
  animation-delay: 0.95s;
}

/* 💧 Gota de Chocolate (Acelerada para empalmar con la velocidad) */
.cone-drip {
  position: absolute;
  bottom: 56px;
  left: 24px;
  width: 14px;
  height: 20px;
  background: #40200a;
  border-radius: 0 0 7px 7px;
  transform: scaleY(0);
  transform-origin: top;
  z-index: 2;
  animation: meltDrip 0.3s ease-out forwards 0.72s;
}

.cone-droplet {
  position: absolute;
  bottom: 56px;
  left: 28px;
  width: 6px;
  height: 6px;
  background: #241104;
  border-radius: 50%;
  opacity: 0;
  z-index: 2;
  animation: fallDroplet 0.4s ease-in forwards 0.9s;
}

/* 🏷️ Texto "Dolce Tropea" (Más grande y con entrada izquierda) */
.preloader-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.1rem; /* Subido el tamaño como pediste */
  letter-spacing: 1px;
  color: var(--color-primary);
  
  opacity: 0;
  animation: slideInFromLeft 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* ==========================================================================
   ANIMACIONES OPTIMIZADAS (MÁS VELOCIDAD Y FLUIDEZ)
   ========================================================================== */

/* Entrada elegante desde la izquierda para Cono y Texto juntos */
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Caída veloz con rebote orgánico e impacto elástico */
@keyframes fastOvershootDrop {
  0% {
    transform: translateY(-180px) scaleY(1.4) scaleX(0.7);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  70% {
    /* Impacta y baja un cachito de más aplastándose */
    transform: translateY(5px) scaleY(0.88) scaleX(1.1); 
  }
  90% {
    /* Micro rebote hacia arriba antes de asentarse */
    transform: translateY(-2px) scaleY(1.02) scaleX(0.98);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes meltDrip {
  100% { transform: scaleY(1); }
}

@keyframes fallDroplet {
  0% { opacity: 1; transform: translateY(12px) scale(1); }
  100% { opacity: 0; transform: translateY(40px) scale(0.7); }
}
