/* ==========================================================================
   REPOSTERÍA LOS PRIMOS - ESTILOS PRINCIPALES
   Estética: Cálida, artesanal, moderna y profesional (Sin aspecto genérico de IA)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

:root {
  /* Paleta de Colores Artesanal */
  --primary: #5C3A21;           /* Chocolate / Horneado oscuro */
  --primary-hover: #462A17;
  --primary-light: #8C5A37;
  --primary-soft: #F4ECE4;
  
  --accent: #E5832E;            /* Dorado Empanada / Calidez */
  --accent-hover: #CF701D;
  --accent-light: #FFF4EA;
  
  --sage: #4E8752;              /* Menta / Ingredientes frescos */
  --sage-soft: #EBF4EC;
  
  --bg-main: #FAF6F0;           /* Crema cáscara de huevo cálida */
  --bg-card: #FFFFFF;
  --bg-subtle: #F5EFE8;
  
  --text-main: #2D231C;
  --text-muted: #6E6259;
  --text-light: #9C8F84;
  
  --border-color: #E8DFD5;
  --border-focus: #E5832E;
  
  --danger: #D32F2F;
  --danger-soft: #FFEBEE;
  --success: #2E7D32;
  --success-soft: #E8F5E9;
  
  /* Sombras y Elevación */
  --shadow-sm: 0 2px 8px rgba(92, 58, 33, 0.05);
  --shadow-md: 0 8px 24px rgba(92, 58, 33, 0.08);
  --shadow-lg: 0 16px 36px rgba(92, 58, 33, 0.12);
  --shadow-hover: 0 12px 28px rgba(229, 131, 46, 0.2);
  
  /* Transiciones */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

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

button {
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

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

/* Layout y Contenedores */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo img {
  height: 52px;
  width: auto;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.brand-logo:hover img {
  transform: scale(1.04) rotate(-2deg);
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--accent);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--primary);
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-icon:hover {
  background: var(--primary-soft);
  color: var(--accent);
  transform: translateY(-2px);
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-main);
}

.btn-admin-login {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(92, 58, 33, 0.15);
  transition: var(--transition);
}

.btn-admin-login:hover {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 2.5rem;
  background: radial-gradient(circle at 80% 20%, rgba(229, 131, 46, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(92, 58, 33, 0.05) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent-hover);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(229, 131, 46, 0.2);
}

.hero-title {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.hero-title span {
  color: var(--accent);
  font-style: italic;
}

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

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

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

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(229, 131, 46, 0.35);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 131, 46, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--primary-soft);
  transform: translateY(-2px);
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}

.hero-image-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-card:hover img {
  transform: scale(1.03);
}

.hero-floating-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid var(--border-color);
}

.floating-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* Category Filter Bar */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 2.4rem;
  color: var(--primary);
}

.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

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

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(229, 131, 46, 0.4);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg-subtle);
  cursor: pointer;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.stock-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.stock-badge.available {
  background: rgba(46, 125, 50, 0.9);
  color: white;
}

.stock-badge.out-of-stock {
  background: rgba(198, 40, 40, 0.9);
  color: white;
}

.photo-counter {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  backdrop-filter: blur(4px);
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.product-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
}

.price-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.btn-add-cart {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-add-cart:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 131, 46, 0.3);
}

.btn-add-cart:disabled {
  background: var(--border-color);
  color: var(--text-light);
  cursor: not-allowed;
  opacity: 0.7;
}

/* About & Story Banner */
.story-section {
  background: var(--primary-soft);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin: 2rem 0 4rem;
  border: 1px solid rgba(92, 58, 33, 0.1);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.story-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.story-logo {
  max-width: 280px;
  filter: drop-shadow(0 10px 20px rgba(92, 58, 33, 0.15));
  animation: floatBounce 4s ease-in-out infinite;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.story-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.story-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.story-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.story-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.story-feature-item i {
  color: var(--accent);
  font-size: 1.2rem;
}

/* Modals System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 35, 28, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 10;
}

.modal-title {
  font-size: 1.4rem;
  color: var(--primary);
}

.btn-close-modal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.btn-close-modal:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.modal-body {
  padding: 1.75rem;
}

/* Cart Items & Checkout Wizard */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

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

.btn-remove-item {
  color: var(--text-light);
  font-size: 1.1rem;
  padding: 0.25rem;
  transition: var(--transition);
}

.btn-remove-item:hover {
  color: var(--danger);
}

.cart-summary-box {
  background: var(--primary-soft);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.summary-row.total {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  border-top: 1px dashed rgba(92, 58, 33, 0.2);
  padding-top: 0.75rem;
  margin-bottom: 0;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-card);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(229, 131, 46, 0.15);
}

/* Map Selector Box */
.map-container-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-color);
  margin-bottom: 0.75rem;
  position: relative;
}

#checkout-map {
  height: 220px;
  width: 100%;
  z-index: 1;
}

.map-help-text {
  font-size: 0.8rem;
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Yape Payment Box */
.yape-payment-box {
  background: #EFF6FF;
  border: 2px dashed #3B82F6;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.yape-badge {
  display: inline-block;
  background: #7000FF;
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.yape-amount-display {
  font-size: 2rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 1rem;
}

.yape-qr-frame {
  width: 180px;
  height: 180px;
  margin: 0 auto 1rem;
  background: white;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid #E2E8F0;
}

.yape-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.yape-phone-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.25rem;
}

.yape-holder-name {
  font-size: 0.85rem;
  color: #64748B;
}

/* Lightbox Photo Preview */
.lightbox-content {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

.lightbox-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.lightbox-slide {
  scroll-snap-align: center;
  flex: 0 0 100%;
}

.lightbox-slide img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--primary);
  color: white;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: #D5C7BC;
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-title {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #E6DAD0;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #B5A599;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-description {
    margin: 0 auto 2rem;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .story-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
  }

  /* El menú se convierte en un desplegable debajo del header */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1.5rem 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }

  .nav-menu.open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 1rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-brand div {
    justify-content: center;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn-accent,
  .hero-cta-group .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .whatsapp-float-text {
    display: none;
  }
}

/* ==========================================================================
   BOTÓN HAMBURGUESA (menú móvil)
   ========================================================================== */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover {
  background: var(--primary-soft);
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}
.whatsapp-float i {
  font-size: 1.5rem;
  line-height: 1;
}
@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }
  .whatsapp-float i {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   ZONAS DE DELIVERY (rediseño)
   ========================================================================== */
.delivery-section {
  margin-top: 3.5rem;
}
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.delivery-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}
.delivery-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--accent);
}
.delivery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.delivery-card--free {
  background: linear-gradient(160deg, #ffffff 0%, var(--sage-soft) 100%);
  border-color: var(--sage);
}
.delivery-card--free::before {
  background: var(--sage);
}
.delivery-card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}
.delivery-card--free .delivery-card-icon {
  background: #ffffff;
  color: var(--sage);
}
.delivery-card-tag {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.delivery-card--free .delivery-card-tag {
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.delivery-card-zone {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}
.delivery-card-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   ¿CÓMO PEDIR?
   ========================================================================== */
.how-section {
  margin-top: 4.5rem;
  padding-top: 1rem;
}
.how-intro {
  max-width: 620px;
  margin: 0.85rem auto 0;
  color: var(--text-muted);
  line-height: 1.6;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.how-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.how-step-num {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.how-step-icon {
  font-size: 2.2rem;
  color: var(--accent);
  display: block;
  margin: 0.5rem 0 0.85rem;
}
.how-step h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.45rem;
}
.how-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.how-hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: 3rem auto 0;
  max-width: 560px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-md);
  color: #fff;
}
.how-hours i {
  font-size: 1.9rem;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.how-hours strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.how-hours span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}
