/* ===== 1. TOKENS / VARIABLES ===== */
:root {
  /* Marca */
  --primary: #42220D;          /* Chocolate profundo */
  --primary-soft: #5a3417;
  --gold: #c79a3b;             /* Dorado elegante */
  --gold-bright: #d8b24a;
  --gold-deep: #a87f28;
  --cream: #faf6ee;            /* Fondo crema */
  --cream-deep: #f1e9d8;
  --ink: #2b2118;              /* Texto principal */
  --muted: #7a6b5c;            /* Texto secundario */
  --light: #ffffff;
  --line: #ece3d3;             /* Bordes suaves */
  --dark: #000000;             /* texto Negro */

  /* Alias usados en HTML/JS heredado */
  --cocoa-primary: var(--primary);
  --cocoa-gold: var(--gold);
  --cocoa-cream: var(--cream);
  --cocoa-light: var(--light);
  --cocoa-shadow: rgba(66, 34, 13, 0.10);
  --cocoa-overlay: rgba(40, 20, 8, 0.92);
  --dark: var(--ink);
  --accent: var(--gold-deep);
  --shadow: rgba(66, 34, 13, 0.10);

  /* Tipografía */
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Sombras */
  --sh-sm: 0 2px 8px rgba(66, 34, 13, 0.06);
  --sh-md: 0 8px 24px rgba(66, 34, 13, 0.10);
  --sh-lg: 0 18px 48px rgba(66, 34, 13, 0.16);

  /* Radios */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;

  /* Transición */
  --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 80px;
}

/* ===== 2. RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--primary);
  font-weight: 600;
  line-height: 1.2;
}

::selection { background: var(--gold); color: #fff; }

/* Scrollbar global (desktop) */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--cream-deep); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 6px; border: 2px solid var(--cream-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* Utilidad: título de sección */
.section { padding: 70px 6vw; }
.section-title { text-align: center; margin-bottom: 46px; }
.section-title h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
  color: #000;
  font-size: 1.02rem;
  max-width: 600px;
  margin: 16px auto 0;
}

/* =========================================================
   3. NAVBAR (cocoanav)
   ========================================================= */
.cocoanav-header {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-soft) 100%);
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.18);
  transition: padding var(--t), background var(--t);
}
.cocoanav-header.scrolled { box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25); }

.cocoanav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 22px;
}

.cocoanav-logo img {
  height: 58px; width: auto;
  transition: var(--t);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
.cocoanav-header.scrolled .cocoanav-logo img { height: 46px; }
.cocoanav-logo:hover img { transform: scale(1.05); }

.cocoanav-actions { display: flex; align-items: center; gap: 14px; }

.cocoanav-menu-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  min-width: 104px;
  height: 46px;
  border-radius: 40px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  transition: var(--t);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}
.cocoanav-menu-btn i { font-size: 1.05rem; transition: transform 0.4s ease; }
.cocoanav-menu-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(199, 154, 59, 0.4);
  border-color: transparent;
}
.cocoanav-menu-btn.open { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }
.cocoanav-menu-btn.open i { transform: rotate(180deg); }
.cocoanav-menu-btn.open .menu-text { opacity: 0; width: 0; margin: 0; transform: scale(0); }
.cocoanav-menu-btn.open::after {
  content: '✕';
  position: absolute;
  font-size: 1.3rem; font-weight: 300;
  animation: fadeInScale 0.3s ease;
}

/* Overlay */
.cocoanav-overlay {
  position: fixed; inset: 0;
  width: 100%; height: 100vh;
  background: var(--cocoa-overlay);
  backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0; visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cocoanav-overlay.active { opacity: 1; visibility: visible; }

/* Panel deslizante */
.cocoanav-panel {
  position: fixed;
  top: 0; right: -100%;
  width: 100%; max-width: 400px;
  height: 100vh; height: -webkit-fill-available;
  background: var(--light);
  z-index: 10000;
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}
.cocoanav-panel.active { right: 0; }

.cocoanav-panel-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  padding: 22px 20px;
  color: #fff;
  display: flex; align-items: center; gap: 15px;
  border-bottom: 3px solid var(--gold);
  flex-shrink: 0;
  position: sticky; top: 0; z-index: 10;
}
.cocoanav-panel-logo { height: 42px; width: auto; }
.cocoanav-panel-title { font-size: 1.15rem; color: #fff; }
.cocoanav-panel-close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.16);
  border: none; color: #fff;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.cocoanav-panel-close:hover { background: var(--gold); transform: rotate(90deg); }

.cocoanav-menu-container { flex: 1; padding: 10px 14px 24px; min-height: 0; }
.cocoanav-menu { padding-bottom: 20px; }
.cocoanav-menu-item { margin-bottom: 0; border-radius: 10px; }

.cocoanav-menu-link {
  display: flex; align-items: center;
  padding: 15px 14px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.2px;
  border-radius: 10px;
  border-bottom: 1px solid #efe7d9;
  transition: var(--t);
  cursor: pointer;
}
.cocoanav-menu-item:last-child > .cocoanav-menu-link { border-bottom: none; }
.cocoanav-menu-link i:first-child { color: var(--gold); margin-right: 14px; font-size: 1rem; width: 20px; text-align: center; }
.cocoanav-menu-link .cocoanav-menu-text { flex: 1; }
.cocoanav-menu-link .cocoanav-arrow { transition: transform var(--t); color: var(--gold); font-size: 0.78rem; }
.cocoanav-menu-link:hover { background: var(--cream-deep); color: var(--gold-deep); }
.cocoanav-menu-link:hover i:first-child { color: var(--gold-deep); }

.cocoanav-submenu {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  background: #fbf8f2;
  border-radius: 10px;
  margin: 4px 0 6px;
}
.cocoanav-submenu.active { max-height: 900px; overflow-y: auto; }
.cocoanav-submenu-link {
  display: flex; align-items: center;
  padding: 12px 16px 12px 44px;
  color: #6a5d50;
  font-size: 0.94rem;
  transition: var(--t);
  border-bottom: 1px solid #f0ece3;
  word-break: break-word;
}
.cocoanav-submenu-link:last-child { border-bottom: none; }
.cocoanav-submenu-link:hover { background: var(--cream-deep); color: var(--gold-deep); padding-left: 50px; }
.cocoanav-submenu-link i { color: var(--gold); margin-right: 12px; font-size: 0.8rem; min-width: 16px; }
.cocoanav-submenu-link:hover i { color: var(--gold-deep); }
.cocoanav-submenu .cocoanav-submenu { margin-left: 14px; background: #f5efe4; }
.cocoanav-submenu .cocoanav-submenu.active { max-height: 600px; }
.cocoanav-submenu .cocoanav-submenu-link { padding-left: 60px; font-size: 0.9rem; }

.cocoanav-panel::-webkit-scrollbar { width: 6px; }
.cocoanav-panel::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; border: none; }

/* =========================================================
   4. HERO
   ========================================================= */
.hero-v2 {
  min-height: 92vh;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background:
    linear-gradient(rgba(40, 20, 8, 0.55), rgba(40, 20, 8, 0.65)),
    url('../img/fruti-hero.webp') center/cover no-repeat;
  background-attachment: scroll;
  color: #fff;
  padding: var(--header-h) 6vw 40px;
}
.hero-v2::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 160px;
  /* Se funde con el rosa de la sección de frutillas que va debajo */
  background: linear-gradient(to top, #ffeef0, transparent);
}
.hero-content-v2 { position: relative; z-index: 2; max-width: 760px; animation: heroIn 1s ease both; }
.hero-content-v2 h1 {
  color: #fff;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  letter-spacing: 1px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 14px;
}
.hero-content-v2 p {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: 30px;
  opacity: 0.95;
}
.cta-hero-v2 {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 15px 40px;
  border-radius: 40px;
  box-shadow: 0 8px 24px rgba(168, 127, 40, 0.45);
  transition: var(--t);
}
.cta-hero-v2:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(168, 127, 40, 0.55); }

/* =========================================================
   6. GALERÍA ZIGZAG
   ========================================================= */
.zigzag-gallery { padding: 50px 6vw 70px; background: var(--cream); position: relative; }
/* Degradado superior que funde el fondo de la sección de productos (cream-deep) con el de la galería (cream) */
.zigzag-gallery::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 130px;
  background: linear-gradient(to bottom, var(--cream-deep), transparent);
  z-index: 0; pointer-events: none;
}
.zigzag-gallery > * { position: relative; z-index: 1; }
.zigzag-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  max-width: 1140px;
  margin: 0 auto;
}
.zigzag-item {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  aspect-ratio: 3 / 4;
}
.zigzag-item:nth-child(even) { transform: translateY(70px); }
.zigzag-item.visible { opacity: 1; transform: translateY(0); }
.zigzag-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; cursor: zoom-in; }
.zigzag-item:hover img { transform: scale(1.07); }

/* =========================================================
   7. PRODUCTOS DESTACADOS (index)
   ========================================================= */
.products-section { background: var(--cream-deep); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
}
.product-card {
  background: var(--light);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: var(--t);
  border: 1px solid var(--line);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--sh-md); }
.product-image { aspect-ratio: 1 / 1; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-image img { transform: scale(1.08); }
.product-info { padding: 18px 16px 22px; text-align: center; }
.product-info h3 { font-size: 1.12rem; }
.product-info h3 a, .title-link { color: var(--primary); transition: color var(--t); }
.product-card:hover .product-info h3 a { color: var(--gold-deep); }

/* =========================================================
   8. CHEF + UBICACIÓN
   ========================================================= */
.combined-section { background: var(--cream); padding: 70px 6vw; }
.combined-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
  align-items: stretch;
}
.chef-card-compact {
  background: var(--light);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-md);
  display: flex;
  flex-direction: column;
}
.chef-image-wrapper { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.chef-photo { width: 100%; height: 100%; object-fit: cover; }
.chef-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 20px 16px;
  background: linear-gradient(to top, rgba(40, 20, 8, 0.85), transparent);
  color: #fff;
}
.chef-overlay h3 { color: #fff; font-size: 1.4rem; }
.chef-chef-title { color: var(--gold-bright); font-size: 0.9rem; letter-spacing: 0.5px; }
.chef-info-compact { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.chef-quote { text-align: center; color: var(--primary); font-family: var(--font-head); font-style: italic; font-size: 1.15rem; }
.chef-quote i { color: var(--gold); font-size: 0.85rem; margin: 0 6px; }
.chef-experience { text-align: center; }
.experience-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cream-deep);
  color: var(--primary);
  padding: 10px 22px;
  border-radius: 40px;
  font-weight: 600;
  margin-bottom: 8px;
}
.experience-badge i { color: var(--gold); }
.chef-experience p { color: var(--muted); }

.location-card {
  background: linear-gradient(150deg, var(--primary), var(--primary-soft));
  color: #fff;
  border-radius: var(--r-md);
  padding: 36px 30px;
  box-shadow: var(--sh-md);
  display: flex;
  flex-direction: column;
}
.section-chef-title { color: #fff; font-size: 1.9rem; margin-bottom: 24px; }
.location-info { display: flex; flex-direction: column; gap: 22px; flex: 1; }
.contact-method { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-bright);
  font-size: 1.1rem;
}
.contact-details h4 { color: var(--gold-bright); font-size: 1rem; margin-bottom: 3px; }
.contact-details p, .contact-details a { color: #f3ece0; font-size: 0.96rem; }
.phone-link-card { color: #fff; font-weight: 600; }
.phone-link-card:hover { color: var(--gold-bright); }
.map-btn {
  margin-top: 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #fff;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 40px;
  transition: var(--t);
}
.map-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }

/* =========================================================
   9. FOOTER
   ========================================================= */
footer {
  background: linear-gradient(180deg, var(--primary-soft), var(--primary));
  color: #f3ece0;
  padding: 46px 6vw 24px;
}
.footer-content { max-width: 1140px; margin: 0 auto; }
.footer-info { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.footer-info span { font-size: 0.95rem; }
.footer-info strong { color: var(--gold-bright); }
.phone-link { color: #fff; font-weight: 600; }
.phone-link:hover { color: var(--gold-bright); }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 28px; padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #cdbfae;
}
.footer-link { color: var(--gold-bright); font-weight: 600; }
.footer-link:hover { text-decoration: underline; }

/* =========================================================
   9b. SOY MONTSE + VISITANOS (sección rediseñada del index)
   ========================================================= */
.story-section { padding: 70px 6vw; background: var(--cream); }
.story-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center;
}
.story-media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.story-media img { width: 100%; height: 100%; max-height: 480px; object-fit: cover; display: block; transition: transform 0.6s ease; }
.story-media:hover img { transform: scale(1.04); }
.story-badge {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(66, 34, 13, 0.9);
  color: #fff;
  padding: 9px 16px; border-radius: 40px;
  font-size: 0.85rem; font-weight: 600;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.story-badge i { color: var(--gold-bright); }
.story-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 0.78rem; font-weight: 700; color: var(--gold-deep); }
.story-body h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 8px 0 18px; }
.story-body p { color: #000000; margin-bottom: 14px; }
.story-thanks { font-weight: 600; color: var(--primary); }
.story-body .social-links { margin-top: 22px; }

.visit-card {
  max-width: 1140px; margin: 44px auto 0;
  background: linear-gradient(150deg, var(--primary), var(--primary-soft));
  color: #fff;
  border-radius: var(--r-lg);
  padding: 42px 40px;
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
}
.visit-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep), var(--gold-bright));
}
.visit-head { text-align: center; margin-bottom: 30px; }
.visit-head h3 { color: #fff; font-size: 1.9rem; }
.visit-head p { color: #e9ddcd; margin-top: 4px; }
.visit-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 30px; }
.visit-item { display: flex; gap: 14px; align-items: flex-start; }
.visit-icon {
  flex-shrink: 0; width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-bright); font-size: 1.05rem;
}
.visit-item h4 { color: var(--gold-bright); font-size: 0.98rem; margin-bottom: 3px; }
.visit-item p, .visit-item a { color: #f3ece0; font-size: 0.94rem; }
.visit-card .map-btn { display: flex; max-width: 320px; margin: 0 auto; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 28px; }
  .story-media { order: -1; max-height: 380px; }
  .story-media img { max-height: 380px; }
  .visit-info { grid-template-columns: 1fr; gap: 18px; }
  .visit-card { padding: 32px 22px; }
}

/* =========================================================
   10. PÁGINAS DE PRODUCTO (menu-section)
   ========================================================= */
.menu-section { padding: calc(var(--header-h) + 40px) 4vw 70px; max-width: 1560px; margin: 0 auto; }
.menu-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 8px;
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.menu-title::after {
  content: ""; display: block;
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.share-trigger { cursor: pointer; }
.share-icon { font-size: 0.7em; opacity: 0.85; }
.menu-subtitle { text-align: center; color: #000; font-size: 1.05rem; margin: 22px auto 44px; max-width: 620px; }
.menu-subtitle-section {
  text-align: center;
  color: var(--primary);
  font-family: var(--font-head);
  font-size: 1.6rem;
  margin: 50px 0 26px;
  scroll-margin-top: calc(var(--header-h) + 90px);
}
/* Solo es un contenedor de sección anclada, no debe heredar estilos del subtítulo */
.menu-subsection { scroll-margin-top: calc(var(--header-h) + 90px); }
/* Navegación de anclas: queda fija al hacer scroll */
.sub-nav {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--header-h) + 6px);
  z-index: 900;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin: 0 0 40px;
  padding: 12px 10px;
  border-radius: var(--r-md);
  background: rgba(250, 246, 238, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-sm);
}
.sub-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.sub-nav li { list-style: none; }
.sub-nav a {
  display: inline-block;
  padding: 9px 18px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 40px;
  color: var(--primary);
  font-size: 0.9rem; font-weight: 500;
  transition: var(--t);
}
.sub-nav a:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.sub-nav a.active {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #fff; border-color: var(--gold-deep);
  box-shadow: 0 4px 12px rgba(199, 154, 59, 0.38);
}
.sub-nav { scroll-behavior: smooth; }
/* Que el título de cada subsección no quede tapado por el header + sub-nav al saltar */
.menu-subsection, .menu-subtitle-section { scroll-margin-top: calc(var(--header-h) + 92px); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* Tarjeta de producto (menu-item) */
.menu-item {
  background: var(--light);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: var(--t);
  opacity: 0;
  transform: translateY(30px);
}
.menu-item.visible { opacity: 1; transform: translateY(0); }
.menu-item:hover { transform: translateY(-8px); box-shadow: var(--sh-md); }
.item-image { aspect-ratio: 5 / 4; overflow: hidden; position: relative; background: #fff; }
/* Foto de producto completa (sin recorte), un poco más chica y con respiro */
.item-image img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform 0.6s ease; }
.menu-item:hover .item-image img { transform: scale(1.07); }
.item-content { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; gap: 7px; text-align: center; }
.item-content .item-details > div { width: 100%; }
.item-title { font-size: 1.12rem; color: var(--primary); line-height: 1.3; }
.item-description { color: var(--muted); font-size: 0.92rem; flex: 1; }
.item-details { margin-top: 2px; }
.item-price { font-size: 1.3rem; font-weight: 700; color: var(--gold-deep); font-family: var(--font-head); }
.item-old-price { text-decoration: line-through; color: #b3a594; font-size: 0.95rem; }
.item-quantity { font-size: 0.82rem; color: var(--muted); }
.quantity-info { font-size: 0.8rem; color: var(--muted); font-style: italic; text-align: center; }

/* Badges */
.item-badge, .product-badge {
  position: absolute; top: 12px; left: 12px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #fff;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: var(--sh-sm);
  z-index: 2;
}
.product-badge { position: static; display: inline-block; margin-bottom: 4px; }
.badge-off { background: linear-gradient(135deg, #c0392b, #922b21); }
.out-of-season { opacity: 0.55; filter: grayscale(0.4); }

/* Producto nuevo / de temporada (estilo temporal destacado) */
.menu-item--seasonal {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-bright), var(--sh-md);
}
.menu-item--seasonal:hover { box-shadow: 0 0 0 2px var(--gold-bright), var(--sh-lg); }
.season-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #ff7eb3, #d6336c);
  color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.4px;
  padding: 6px 12px; border-radius: 20px;
  box-shadow: 0 4px 12px rgba(214, 51, 108, 0.35);
  animation: seasonPulse 2.2s ease-in-out infinite;
}
.season-badge i { font-size: 0.7rem; }
@keyframes seasonPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .season-badge { animation: none; } }

/* Controles de cantidad */
.quantity-controls { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.quantity-selector {
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: var(--cream-deep);
  border-radius: 40px;
  padding: 4px;
  align-self: center;
}
.quantity-btn {
  width: 38px; height: 38px;
  border: none;
  background: var(--light);
  color: var(--primary);
  font-size: 1.2rem; font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
  box-shadow: var(--sh-sm);
}
.quantity-btn:hover:not(:disabled) { background: var(--gold); color: #fff; }
.quantity-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.quantity-display { min-width: 48px; text-align: center; font-weight: 700; font-size: 1.05rem; color: var(--primary); }

.add-to-cart-btn {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 13px 18px;
  border-radius: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.add-to-cart-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 127, 40, 0.4);
}
.add-to-cart-btn:disabled { background: #cfc6ba; cursor: not-allowed; opacity: 0.7; }

/* Tarjetas horizontales en PC/tablet: foto al costado, texto al lado (más anchas y bajas) */
@media (min-width: 769px) {
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }
  .menu-item { flex-direction: row; align-items: stretch; }
  .item-image { flex: 0 0 42%; aspect-ratio: auto; min-height: 210px; }
  .item-content { text-align: left; justify-content: center; align-items: stretch; }
  .item-content .quantity-selector { align-self: flex-start; }
}

/* =========================================================
   11. VARIANTES DE TORTAS
   ========================================================= */
.custom-select-wrapper { position: relative; margin-top: 4px; }
.variant-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 40px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--primary);
  cursor: pointer;
  transition: var(--t);
  text-align: center;
  text-align-last: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a87f28' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.variant-select option { text-align: center; }
.variant-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199, 154, 59, 0.18); }
.selected-weight-display {
  display: inline-block;
  background: var(--cream-deep);
  color: var(--gold-deep);
  font-weight: 600; font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.price-display { font-family: var(--font-head); margin-top: 2px; }
.price-from { color: var(--muted); font-size: 0.85rem; font-family: var(--font-body); }
.price-currency { color: var(--gold-deep); font-weight: 600; }
.price-value { font-size: 1.5rem; font-weight: 700; color: var(--gold-deep); }
.price-weight { font-weight: 700; color: var(--primary); font-size: 1.1rem; }

/* =========================================================
   12. CARRITO
   ========================================================= */
.cart-icon {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 10px 28px rgba(168, 127, 40, 0.5);
  z-index: 9000;
  cursor: pointer;
  transition: var(--t);
}
.cart-icon:hover { transform: scale(1.08) translateY(-2px); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem; font-weight: 700;
  min-width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--cream);
}

.cart-container {
  position: fixed;
  top: 0; right: 0;
  width: 100%; max-width: 420px;
  height: 100vh; height: 100dvh;
  background: var(--light);
  z-index: 10001;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  animation: slideInRight 0.35s ease;
}
.cart-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  padding: 22px 22px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 3px solid var(--gold);
}
.cart-title { color: #fff; font-size: 1.3rem; }
.close-cart {
  background: rgba(255, 255, 255, 0.16);
  border: none; color: #fff;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.close-cart:hover { background: var(--gold); transform: rotate(90deg); }
.cart-items { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.empty-cart-message { text-align: center; color: var(--muted); padding: 50px 20px; font-style: italic; }
.cart-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.cart-item-name { font-weight: 600; color: var(--primary); margin-bottom: 6px; font-size: 0.98rem; }
.cart-item-details { font-size: 0.82rem; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.cart-item-subtotal { color: var(--gold-deep); font-weight: 600; }
.cart-item-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-quantity-controls { display: flex; align-items: center; gap: 6px; }
.cart-quantity-btn {
  width: 30px; height: 30px;
  border: none;
  background: var(--light);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-sm);
  transition: var(--t);
}
.cart-quantity-btn:hover { background: var(--gold); color: #fff; }
.cart-quantity-btn.remove-item { background: #f7e7e4; color: #c0392b; }
.cart-quantity-btn.remove-item:hover { background: #c0392b; color: #fff; }
.cart-quantity-display { min-width: 26px; text-align: center; font-weight: 700; color: var(--primary); }
.cart-total { padding: 20px 22px; border-top: 1px solid var(--line); background: var(--cream); }
.total-price { font-size: 1.3rem; font-weight: 700; color: var(--primary); font-family: var(--font-head); text-align: center; margin-bottom: 16px; }
.cart-actions { display: flex; gap: 12px; }
.cart-action-btn {
  flex: 1;
  border: none;
  padding: 13px 16px;
  border-radius: 40px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--t);
}
.clear-cart { background: var(--cream-deep); color: var(--primary); }
.clear-cart:hover { background: #e6dcc8; }
.send-whatsapp { background: linear-gradient(135deg, #25d366, #128c40); color: #fff; }
.send-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(18, 140, 64, 0.4); }

/* =========================================================
   13. MODAL CHECKOUT
   ========================================================= */
.modal-backdrop { position: fixed; inset: 0; background: rgba(40, 20, 8, 0.6); backdrop-filter: blur(4px); z-index: 10010; opacity: 0; visibility: hidden; transition: var(--t); }

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

.checkout-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); border: none; border-radius: var(--r-lg); padding: 0; margin: 0; width: min(560px, 94vw); max-height: 92vh; box-shadow: var(--sh-lg); background: var(--light); z-index: 10011; overflow: hidden; }

.checkout-modal::backdrop { background: rgba(40, 20, 8, 0.6); backdrop-filter: blur(4px); }

.checkout-modal[open] { animation: modalIn 0.25s ease; }

.checkout-modal form { display: flex; flex-direction: column; max-height: 92vh; }

.checkout-modal__header { background: linear-gradient(135deg, var(--primary), var(--primary-soft)); color: #fff; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--gold); }

.checkout-modal__header h2 { color: #fff; font-size: 1.35rem; }

.checkout-close { background: rgba(255, 255, 255, 0.16); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--t); }

.checkout-close:hover { background: var(--gold); transform: rotate(90deg); }

.checkout-modal__body { padding: 24px; overflow-y: auto; }

.checkout-hint { background: var(--cream-deep); border-left: 3px solid var(--gold); padding: 12px 14px; border-radius: 8px; font-size: 0.88rem; color: #5a4d40; margin-bottom: 20px; }

.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group--full { grid-column: 1 / -1; }

.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--primary); }

.form-group input, .form-group select, .form-group textarea { font-family: var(--font-body); font-size: 0.95rem; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink); transition: var(--t); }

.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(199, 154, 59, 0.16); }

.btn-location { background: var(--cream-deep); border: 1.5px dashed var(--gold); color: var(--primary); font-weight: 600; padding: 11px 16px; border-radius: 10px; transition: var(--t); width: 100%; }

.btn-location:hover { background: var(--gold); color: #fff; }

.small-hint { font-size: 0.8rem; color: var(--muted); }

/* Mapa de entrega (Leaflet) dentro del checkout */
.checkout-map { width: 100%; height: 240px; border-radius: 10px; border: 1.5px solid var(--line); overflow: hidden; margin-bottom: 10px; z-index: 0; }

.checkout-map .leaflet-container { font-family: var(--font-body); }

.location-group { gap: 8px; }

.form-alert { grid-column: 1 / -1; background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; padding: 11px 14px; border-radius: 8px; font-size: 0.9rem; margin-top: 14px;
}

.checkout-modal__footer { padding: 18px 24px; border-top: 1px solid var(--line); background: var(--cream); display: flex; gap: 12px; justify-content: flex-end; }

.btn-secondary { background: var(--cream-deep); color: var(--primary); border: none; padding: 12px 22px; border-radius: 40px; font-weight: 600; transition: var(--t); }

.btn-secondary:hover { background: #e6dcc8; }

.btn-primary { background: linear-gradient(135deg, #25d366, #128c40); color: #fff; border: none; padding: 12px 24px; border-radius: 40px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: var(--t); }

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(18, 140, 64, 0.4); }

body.modal-open { overflow: hidden; }

@media (max-width: 500px) { .checkout-modal {  width: 94vw;  max-height: 90vh; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-map {  height: 200px; }
  .checkout-modal__footer { flex-direction: column;  }
  .btn-secondary, .btn-primary { width: 100%; justify-content: center; } }

/* =========================================================
   14. SOUVENIRS (galería + modal zoom)
   ========================================================= */
.souvenir-title { text-align: center; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.souvenir-subtitle { text-align: center; color: var(--muted); margin-bottom: 36px; }
.souvenir-zigzag-gallery {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 40px 24px;
  margin: 40px auto;
  max-width: 1200px;
}
/* PC: una sola hilera de 5 */
.souvenir-zigzag-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1100px; margin: 0 auto;
}
.souvenir-zigzag-item {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.souvenir-zigzag-item:nth-child(odd) { transform: translateY(-10px); }
.souvenir-zigzag-item:nth-child(even) { transform: translateY(10px); }
.souvenir-zigzag-item:hover { transform: scale(1.04); box-shadow: var(--sh-md); }
.souvenir-zigzag-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

/* Móvil: slider horizontal con scroll-snap */
@media (max-width: 768px) {
  .souvenir-zigzag-gallery { padding: 28px 14px; }
  .souvenir-zigzag-container {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .souvenir-zigzag-container::-webkit-scrollbar { height: 6px; }
  .souvenir-zigzag-container::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; border: none; }
  .souvenir-zigzag-item {
    flex: 0 0 auto;
    width: 60vw; max-width: 220px;
    aspect-ratio: 1 / 1;
    scroll-snap-align: center;
    transform: none !important;
  }
}
.souvenir-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10020;
  text-align: center;
}
.souvenir-modal-content {
  max-width: 90%; max-height: 86vh;
  margin: 5vh auto;
  border-radius: var(--r-sm);
  transition: transform 0.3s ease;
  cursor: zoom-in;
}
.souvenir-modal-content.zoomed { transform: scale(1.8); cursor: zoom-out; }
.souvenir-close { position: absolute; top: 20px; right: 28px; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* =========================================================
   15. ERROR 404
   ========================================================= */
.error-container {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 6vw;
  gap: 18px;
}
.error-container h1 { font-size: clamp(4rem, 14vw, 8rem); color: var(--gold); }
.bunny-icon {   width: 90px; height: 90px; fill: none; stroke: #8B4513; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; opacity: 0.9;}
.home-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff; font-weight: 600;
  padding: 14px 32px; border-radius: 40px;
  transition: var(--t);
}
.home-btn:hover { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); transform: translateY(-3px); }

/* =========================================================
   16. ANIMACIONES
   ========================================================= */
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@keyframes bounce  width: 90px;
  height: 90px;
  fill: none;
  stroke: #8B4513;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 20px;
  opacity: 0.9;Fade {
  0% { opacity: 0; transform: translateY(30px); }
  50% { opacity: 0.85; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   17. RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
  .section { padding: 54px 5vw; }
  .combined-section { padding: 54px 5vw; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-modal__footer { flex-direction: column-reverse; }
  .checkout-modal__footer .btn-primary,
  .checkout-modal__footer .btn-secondary { width: 100%; justify-content: center; }
  .hero-v2 { min-height: 80vh; background-attachment: scroll; }
  .menu-grid { gap: 18px; }
  .products-grid { gap: 16px; }

  /* Menú de anclas: una sola fila deslizable (no apila ni tapa los productos) */
  .sub-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 10px;
    gap: 8px;
    border-radius: 14px;
  }
  .sub-nav::-webkit-scrollbar { display: none; }
  .sub-nav ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    gap: 8px;
  }
  .sub-nav li { flex: 0 0 auto; }
  .sub-nav a { white-space: nowrap; padding: 6px 13px; font-size: 0.8rem; }
  .menu-subtitle-section, .menu-subsection { scroll-margin-top: calc(var(--header-h) + 60px); }
}

@media (max-width: 500px) {
  :root { --header-h: 72px; }
  .cocoanav-panel { max-width: 100%; }
  .cocoanav-menu-btn { min-width: 56px; padding: 0 14px; }
  .cocoanav-container { padding: 12px 16px; }
  .cocoanav-logo img { height: 48px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .menu-item .item-content { padding: 14px 12px 16px; }
  .item-title { font-size: 0.98rem; }
  .add-to-cart-btn { padding: 11px 12px; font-size: 0.9rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .sub-nav { padding: 10px 8px; gap: 8px; }
  .sub-nav ul { gap: 8px; }
  .sub-nav a { padding: 6px 13px; font-size: 0.8rem; }
  .menu-subtitle-section, .menu-subsection { scroll-margin-top: calc(var(--header-h) + 60px); }
  .zigzag-container { grid-template-columns: repeat(2, 1fr); }
  .zigzag-item:nth-child(even) { transform: translateY(40px); }
  .cart-icon { bottom: 18px; right: 18px; width: 56px; height: 56px; font-size: 1.25rem; }
  .menu-section { padding-top: calc(var(--header-h) + 28px); }
  .cart-item { flex-direction: column; }
  .cart-item-controls { flex-direction: row; align-self: stretch; justify-content: space-between; width: 100%; }
}

@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* iOS fill-available */
@supports (-webkit-touch-callout: none) {
  .cocoanav-panel { height: -webkit-fill-available; }
  .cart-container { height: -webkit-fill-available; }
}

/* =========================================================
   BUSCADOR EN EL HEADER
   ========================================================= */
.cocoanav-search { flex: 1; display: flex; justify-content: center; align-items: center; padding: 0 18px; }
.search-toggle {
  display: none;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  color: #fff; width: 46px; height: 46px; border-radius: 50%;
  align-items: center; justify-content: center; font-size: 1.05rem; transition: var(--t);
}
.search-toggle:hover { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); border-color: transparent; }
.search-field { position: relative; width: 100%; max-width: 430px; }
.search-field-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.9rem; pointer-events: none; }
#site-search {
  width: 100%; height: 44px; border: none; border-radius: 40px;
  padding: 0 18px 0 40px; font-family: var(--font-body); font-size: 0.95rem;
  background: rgba(255,255,255,0.96); color: var(--ink); outline: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15); transition: box-shadow var(--t);
}
#site-search::placeholder { color: #9b8b7a; }
#site-search:focus { box-shadow: 0 0 0 3px rgba(199,154,59,0.55); }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: 14px; box-shadow: var(--sh-lg);
  overflow: hidden auto; max-height: min(70vh, 430px); display: none; z-index: 10005;
}
.search-results.show { display: block; }
.search-result { display: flex; flex-direction: column; gap: 2px; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: var(--cream); }
.sr-name { font-weight: 600; font-size: 0.92rem; color: var(--primary); }
.sr-cat { font-size: 0.75rem; color: var(--muted); }
.search-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* Resaltado del producto al llegar desde una búsqueda */
.search-hit { animation: searchHit 2.6s ease; }
@keyframes searchHit {
  0%, 100% { box-shadow: var(--sh-sm); }
  12%, 62% { box-shadow: 0 0 0 3px var(--gold-bright), var(--sh-lg); transform: translateY(-4px); }
}

/* Móvil: lupa que despliega una barra bajo el header */
@media (max-width: 820px) {
  .cocoanav-search { flex: 0 0 auto; padding: 0; }
  .search-toggle { display: flex; }
  .search-field-icon { display: none; }
  .search-field {
    position: absolute; top: 100%; left: 0; right: 0; max-width: none;
    padding: 12px 16px; background: linear-gradient(180deg, var(--primary), var(--primary-soft));
    box-shadow: 0 10px 22px rgba(0,0,0,0.28);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 9990;
  }
  #search-box.open .search-field { opacity: 1; visibility: visible; transform: translateY(0); }
  #site-search { padding-left: 16px; }
  .search-field .search-results { left: 16px; right: 16px; }
}


/* =========================================================
   NAV DE ESCRITORIO + BOTÓN CARRITO EN HEADER
   ========================================================= */
.cocoanav-desktop { display: none; align-items: center; gap: 4px; margin-left: 10px; }
.cnav-link { color: rgba(255,255,255,0.92); font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: var(--t); }
.cnav-link:hover { background: rgba(255,255,255,0.14); color: #fff; }
.cnav-dd { position: relative; }
.cnav-dd-btn i { font-size: 0.7rem; transition: transform var(--t); }
.cnav-dd:hover .cnav-dd-btn i { transform: rotate(180deg); }
.cnav-dd-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: 12px; box-shadow: var(--sh-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--t); z-index: 10006; }
.cnav-dd:hover .cnav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cnav-dd-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--primary); font-size: 0.92rem; transition: var(--t); }
.cnav-dd-menu a:hover { background: var(--cream-deep); color: var(--gold-deep); }
.cnav-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); color: #fff; font-size: 1.1rem; transition: var(--t); order: -1; }
.cnav-cart:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(168,127,40,0.45); }
.cnav-cart-count { position: absolute; top: -4px; right: -4px; background: var(--primary); color: #fff; font-size: 0.7rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--primary-soft); }
@media (min-width: 821px) {
  .cocoanav-desktop { display: flex; }
  .cnav-cart { display: inline-flex; }
  .cocoanav-menu-btn { display: none; }
  #cart-icon { display: none; }
}

/* =========================================================
   MODAL "AGREGADO AL CARRITO"
   ========================================================= */
.added-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.added-modal.open { opacity: 1; visibility: visible; }
.added-backdrop { position: absolute; inset: 0; background: rgba(40,20,8,0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.added-box { position: relative; z-index: 1; background: var(--cream); border-radius: var(--r-lg); box-shadow: var(--sh-lg); width: min(420px, 94vw); padding: 30px 26px 26px; text-align: center; transform: translateY(14px) scale(0.97); transition: transform 0.28s cubic-bezier(0.4,0,0.2,1); }
.added-modal.open .added-box { transform: none; }
.added-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.added-check { width: 62px; height: 62px; border-radius: 50%; background: #2ecc71; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin: 4px auto 14px; box-shadow: 0 6px 18px rgba(46,204,113,0.4); }
.added-title { color: var(--primary); font-size: 1.3rem; margin-bottom: 18px; }
.added-product { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; text-align: left; margin-bottom: 20px; }
.added-thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--cream-deep); color: var(--gold-deep); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.added-name { font-weight: 600; color: var(--primary); font-size: 0.95rem; }
.added-price { color: var(--gold-deep); font-weight: 600; font-size: 0.9rem; }
.added-actions { display: flex; gap: 12px; }
.added-continue, .added-view { flex: 1; padding: 13px 14px; border-radius: 40px; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: var(--t); cursor: pointer; }
.added-continue { background: none; border: 1.5px solid var(--primary); color: var(--primary); }
.added-continue:hover { background: var(--primary); color: #fff; }
.added-view { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); color: #fff; border: none; }
.added-view:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(168,127,40,0.4); }

/* =========================================================
   PÁGINA DE CARRITO
   ========================================================= */
.cart-page { max-width: 1200px; margin: 0 auto; padding: calc(var(--header-h) + 40px) 5vw 70px; }
.cart-page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.cart-page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cart-back { color: var(--gold-deep); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.cart-back:hover { color: var(--primary); }
.cart-page-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.cart-col { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; box-shadow: var(--sh-sm); }
.cart-col h2 { font-size: 1.25rem; margin-bottom: 16px; }
.cartpage-empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.cartpage-empty i { font-size: 2.4rem; color: var(--line); display: block; margin-bottom: 12px; }
.cartpage-empty p { margin-bottom: 16px; }
.cartpage-item { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cartpage-item:last-of-type { border-bottom: none; }
.cartpage-item-name { font-weight: 600; color: var(--primary); font-size: 0.95rem; }
.cartpage-item-unit { font-size: 0.8rem; color: var(--muted); }
.cartpage-qty { display: flex; align-items: center; gap: 8px; background: var(--cream-deep); border-radius: 40px; padding: 4px 6px; }
.cartpage-qty button { width: 30px; height: 30px; border: none; background: #fff; border-radius: 50%; font-size: 1.1rem; font-weight: 700; color: var(--primary); cursor: pointer; box-shadow: var(--sh-sm); }
.cartpage-qty button:hover { background: var(--gold); color: #fff; }
.cartpage-qty span { min-width: 22px; text-align: center; font-weight: 700; color: var(--primary); }
.cartpage-item-sub { font-weight: 700; color: var(--gold-deep); font-family: var(--font-head); white-space: nowrap; }
.cartpage-remove { border: none; background: #f7e7e4; color: #c0392b; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; transition: var(--t); }
.cartpage-remove:hover { background: #c0392b; color: #fff; }
.cartpage-summary { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--line); flex-wrap: wrap; gap: 12px; }
.cartpage-clear { background: var(--cream-deep); border: none; color: var(--primary); padding: 10px 18px; border-radius: 40px; font-weight: 600; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.cartpage-clear:hover { background: #e6dcc8; }
.cartpage-total-wrap { font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.cartpage-total-wrap span { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-left: 4px; }
.cart-send { width: 100%; margin-top: 18px; justify-content: center; font-size: 1rem; padding: 15px; }
@media (max-width: 860px) { .cart-page-grid { grid-template-columns: 1fr; } }
@media (max-width: 500px) {
  .cartpage-item { grid-template-columns: 1fr auto auto; }
  .cartpage-item-main { grid-column: 1 / -1; }
}

@media (min-width: 821px) { .cocoanav-panel, .cocoanav-overlay { display: none !important; } }

/* =========================================================
   FOOTER REDISEÑADO
   ========================================================= */
.site-footer { background: linear-gradient(180deg, var(--primary-soft), var(--primary)); color: #efe6d8; padding: 50px 6vw 26px; }
.footer-top { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; }
.footer-logo { height: 74px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); margin-bottom: 12px; }
.footer-tagline { color: #cdbfae; font-size: 0.92rem; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: #fff; transition: var(--t); }
.footer-social a:hover { background: var(--gold); transform: translateY(-3px); }
.footer-col h4 { color: var(--gold-bright); font-size: 1.5rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li { font-size: 0.92rem; color: #e4d8c7; }
.footer-col ul li a { color: #e4d8c7; transition: color var(--t); }
.footer-col ul li a:hover { color: var(--gold-bright); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact li i { color: var(--gold-bright); margin-top: 3px; width: 16px; text-align: center; flex-shrink: 0; }
.footer-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; background: linear-gradient(135deg,#25d366,#128c40); color: #fff; padding: 10px 18px; border-radius: 40px; font-weight: 600; font-size: 0.9rem; transition: var(--t); }
.footer-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(18,140,64,0.4); }
.footer-bottom { max-width: 1200px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); text-align: center; font-size: 0.84rem; color: #cdbfae; }
.site-footer .footer-link { color: var(--gold-bright); font-weight: 600; }
@media (max-width: 780px) {
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand { text-align: center; }
  .footer-social { justify-content: center; }
}

/* =========================================================
   PÁGINA DE CONTACTO
   ========================================================= */
.contact-page { max-width: 1200px; margin: 0 auto; padding: calc(var(--header-h) + 40px) 5vw 70px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.contact-map { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-md); min-height: 380px; border: 1px solid var(--line); }
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.contact-social { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.contact-social a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; color: #fff; transition: var(--t); }
.contact-social a:hover { background: var(--gold); transform: translateY(-3px); }
.visit-card .map-btn + .map-btn { margin-top: 12px; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer: productos en 2 columnas (4 y 4) y número de contacto como link */
.footer-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; row-gap: 9px; }
.footer-contact li a { color: #e4d8c7; transition: color var(--t); }
.footer-contact li a:hover { color: var(--gold-bright); }

/* Fix: footer productos en 2 columnas (mayor especificidad que .footer-col ul) */
.footer-col ul.footer-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 9px; }

/* Fix: página de contacto — tarjeta más ancha, datos apilados y legibles, mapa más chico */
.contact-grid { grid-template-columns: 1.35fr 0.85fr; }
.contact-page .visit-info { grid-template-columns: 1fr; gap: 14px; }
.contact-page .visit-item { align-items: center; }
.contact-map { min-height: 340px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* Contacto: galería de fotos 3x2 en lugar del mapa */
.contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
.contact-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: start; }
.contact-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-sm); box-shadow: var(--sh-sm); transition: transform 0.3s ease; }
.contact-gallery img:hover { transform: scale(1.04); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-gallery { grid-template-columns: repeat(2, 1fr); } }

/* Footer: productos en 2 columnas parejas (multicolumna, sin huecos) */
.footer-col ul.footer-products { display: block; column-count: 2; column-gap: 26px; }
.footer-col ul.footer-products li { break-inside: avoid; margin-bottom: 10px; }

/* Contacto: galería 2x2 (muestras) alineada a la altura de la tarjeta + lightbox */
.contact-grid { align-items: stretch; }
.contact-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.contact-gallery img { aspect-ratio: auto; height: 100%; width: 100%; min-height: 150px; object-fit: cover; cursor: zoom-in; }
@media (max-width: 820px) {
  .contact-gallery { grid-template-rows: auto; }
  .contact-gallery img { height: auto; aspect-ratio: 4 / 3; min-height: 0; }
}
.cg-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 10060; display: none; align-items: center; justify-content: center; padding: 20px; }
.cg-lightbox.open { display: flex; }
.cg-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--sh-lg); }
.cg-close { position: absolute; top: 16px; right: 26px; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* Contacto: reducir espacio vertical vacío arriba/abajo en PC */
.contact-page { padding-top: calc(var(--header-h) + 22px); padding-bottom: 34px; }
.contact-page .section-title { margin-bottom: 22px; }

/* "Para antojarte": alturas asíncronas (zigzag real) */
.zigzag-container { align-items: center; }
.zigzag-item { aspect-ratio: 3 / 4; }
.zigzag-item:nth-child(3n+2) { aspect-ratio: 5 / 8; }   /* más alto */
.zigzag-item:nth-child(3n) { aspect-ratio: 1 / 1; }     /* más bajo */

/* Footer: columna de marca centrada (PC y móvil) + delivery */
.footer-brand { text-align: center; }
.footer-logo { display: block; margin: 0 auto 12px; }
.footer-social { justify-content: center; }
.footer-delivery { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.footer-deliv { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.12); color: #fff; padding: 8px 14px; border-radius: 40px; font-size: 0.85rem; font-weight: 600; transition: var(--t); }
.footer-deliv:hover { background: var(--gold); color: #fff; }

/* =========================================================
   GRILLA DE PRODUCTOS COMPACTA (v23) — 4 por fila en PC
   ========================================================= */
.item-image { aspect-ratio: 4 / 3; }
.item-content { padding: 12px 12px 14px; gap: 6px; }
.item-title { font-size: 1rem; }
.item-price { font-size: 1.2rem; }
.item-description { font-size: 0.86rem; }
.item-quantity, .quantity-info { font-size: 0.78rem; }
.quantity-controls { gap: 8px; }
.quantity-selector { padding: 3px; }
.quantity-btn { width: 32px; height: 32px; font-size: 1.05rem; }
.quantity-display { min-width: 40px; font-size: 1rem; }
.add-to-cart-btn { width: auto; align-self: center; min-width: 128px; padding: 9px 18px; font-size: 0.85rem; }

/* Volver a tarjetas verticales (anula el layout horizontal) y fijar columnas */
@media (min-width: 769px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .menu-item { flex-direction: column; align-items: stretch; }
  .item-image { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .item-content { text-align: center; align-items: stretch; }
  .item-content .quantity-selector { align-self: center; }
}
@media (min-width: 1080px) {
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Móvil: tarjetas más cortas y botón a todo el ancho pero compacto */
@media (max-width: 500px) {
  .item-image { aspect-ratio: 4 / 3; }
  .item-content { padding: 10px 10px 12px; gap: 5px; }
  .add-to-cart-btn { width: 100%; min-width: 0; padding: 9px 10px; font-size: 0.8rem; }
}

/* =========================================================
   PÁGINA DE CONTACTO — rediseño profesional (v28)
   ========================================================= */
.contact-eyebrow {
  display: inline-block; text-transform: none; letter-spacing: 2.5px;
  font-size: 1.74rem; font-weight: 600; color: var(--gold-deep);
  background: var(--cream-deep); padding: 6px 16px; border-radius: 40px; margin-bottom: 12px;
}
.contact-page .section-title { margin-bottom: 34px; }

/* Tarjeta unificada (info + galería) */
.contact-card {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  background: #fff; border: 1px solid var(--line);
  border-radius: 26px; overflow: hidden;
  box-shadow: 0 26px 60px rgba(66, 34, 13, 0.16);
}

/* Panel de información */
.contact-info {
  background: linear-gradient(155deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: #fff; padding: 30px 30px;
  display: flex; flex-direction: column; position: relative;
}
.contact-info::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(199, 154, 59, 0.28), transparent 55%);
  pointer-events: none;
}
.contact-info > * { position: relative; z-index: 1; }
.ci-head { margin-bottom: 18px; }
.ci-badge {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #fff; font-size: 1.1rem; margin-bottom: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.ci-head h3 { font-size: 2.2rem; color: #fff; line-height: 1.1; }
.ci-head p { color: #e9ddcd; margin-top: 4px; font-size: 1.2rem; }

.ci-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.ci-list li { display: flex; gap: 13px; align-items: center; }
.ci-icon {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.12); color: var(--gold-bright);
  font-size: 0.95rem; border: 1px solid rgba(255, 255, 255, 0.14);
}
.ci-list h4 { color: var(--gold-bright); font-size: 1.4rem; text-transform: none; letter-spacing: 1.5px; margin-bottom: 2px; }
.ci-list p, .ci-list a { color: #f3ece0; font-size: 0.9rem; line-height: 1.4; }
.ci-list a:hover { color: var(--gold-bright); }

.ci-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.ci-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 1.1rem;
  transition: var(--t);
}
.ci-btn-wa { background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }
.ci-btn-wa:hover { background: #1fb457; transform: translateY(-2px); }
.ci-btn-map { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.ci-btn-map:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--gold-bright); }

.ci-social { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.ci-social span { font-size: 0.82rem; color: #e9ddcd; margin-right: 2px; }
.ci-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.12); color: #fff; transition: var(--t);
}
.ci-social a:hover { background: var(--gold); transform: translateY(-3px); }

/* Galería: miniaturas cuadradas pequeñas y clickeables */
.contact-card { align-items: stretch; }
.contact-gallery {
  display: grid; gap: 10px; padding: 18px;
  grid-template-columns: repeat(4, 1fr);
  align-content: start;
  background: var(--cream);
}
.contact-gallery img {
  width: 100%; aspect-ratio: 1 / 1; height: auto; min-height: 0;
  object-fit: cover; border-radius: 12px; cursor: zoom-in;
  box-shadow: 0 6px 16px rgba(66, 34, 13, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.contact-gallery img:hover { transform: scale(1.05); box-shadow: 0 12px 26px rgba(66, 34, 13, 0.22); }

@media (max-width: 900px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 520px) {
  .contact-info { padding: 26px 20px; }
  .ci-head h3 { font-size: 1.45rem; }
  .contact-gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
}

/* Zigzag en móvil: cuadraditos uniformes (como la galería de contacto), sin huecos */
@media (max-width: 600px) {
  .zigzag-container { grid-template-columns: repeat(2, 1fr); align-items: start; gap: 10px; }
  .zigzag-item,
  .zigzag-item:nth-child(3n+2),
  .zigzag-item:nth-child(3n) { aspect-ratio: 1 / 1; }
  .zigzag-item:nth-child(even) { transform: none; }
}

/* =========================================================
   PÁGINA DE EVENTOS — galería de clientes
   ========================================================= */
.eventos-page { max-width: 1200px; margin: 0 auto; padding: calc(var(--header-h) + 40px) 5vw 70px; }
.eventos-page .section-title { margin-bottom: 34px; }
.eventos-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.eventos-gallery img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 14px; cursor: zoom-in;
  box-shadow: 0 6px 16px rgba(66, 34, 13, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.eventos-gallery img:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 14px 30px rgba(66, 34, 13, 0.2); }
@media (max-width: 600px) {
  .eventos-page { padding-top: calc(var(--header-h) + 22px); }
  .eventos-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* =========================================================
   HERO: logo en vez de texto (index)
   ========================================================= */
.hero-logo-wrap { margin: 0 0 20px; }
.hero-logo-shine { position: relative; display: inline-block; line-height: 0; }
.hero-logo-v2 {
  display: block; margin: 0 auto;
  width: clamp(240px, 44vw, 460px); height: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55)) contrast(1.05);
  image-rendering: -webkit-optimize-contrast;
}
/* Brillo tipo cristal recortado a la silueta del logo */
.hero-logo-shine::after {
  content: ""; position: absolute; inset: 0;
  -webkit-mask: url('../img/logo.svg?v=42') center / contain no-repeat;
          mask: url('../img/logo.svg?v=42') center / contain no-repeat;
  background: linear-gradient(115deg,
     transparent 34%,
     rgba(255, 255, 255, 0.55) 46%,
     rgba(255, 255, 255, 0.95) 50%,
     rgba(255, 255, 255, 0.55) 54%,
     transparent 66%);
  background-size: 250% 100%;
  background-position: 210% 0;
  animation: logoShine 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes logoShine {
  0%   { background-position: 210% 0; }
  55%, 100% { background-position: -80% 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-logo-shine::after { animation: none; opacity: 0; } }

/* Etiqueta "Buscar" del toggle: oculta por defecto (visible solo en móvil) */
.search-toggle-text { display: none; }

/* Móvil: la lupa se convierte en pastilla "Buscar" centrada (todas las páginas) */
@media (max-width: 820px) {
  .cocoanav-search { flex: 1; justify-content: center; padding: 0 10px; }
  .search-toggle {
    width: auto; min-width: 104px; height: 46px;
    border-radius: 40px; padding: 0 22px; gap: 10px;
    font-size: 1rem; font-weight: 500; letter-spacing: 0.4px;
  }
  .search-toggle-text { display: inline; }
}

/* HERO: flecha animada que baja al catálogo (reemplaza el botón) */
.hero-scroll {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  color: #fff; font-size: 1.4rem;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background var(--t), border-color var(--t), transform 0.25s ease;
  animation: heroBounce 1.9s ease-in-out infinite;
}
.hero-scroll:hover {
  animation: none;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  border-color: transparent;
  transform: scale(1.08);
}
@keyframes heroBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll { animation: none; } }

/* =========================================================
   MESAS DULCES (página Eventos) — tarjetas con pedido WhatsApp
   ========================================================= */
.mesas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
  margin: 0 auto 10px;
}
.mesa-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(66, 34, 13, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mesa-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(66, 34, 13, 0.16); }
.mesa-name {
  font-family: var(--font-display, "Playfair Display", serif);
  font-size: 1.5rem; color: var(--primary); margin-bottom: 8px;
}
.mesa-price {
  display: inline-block; align-self: flex-start;
  font-size: 0.9rem; color: var(--gold-deep);
  background: var(--cream-deep); padding: 5px 14px; border-radius: 40px;
  margin-bottom: 18px;
}
.mesa-price strong { font-size: 1.05rem; color: var(--primary); }
.mesa-includes { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.mesa-includes li {
  position: relative; padding-left: 26px;
  color: #5c4a3a; font-size: 0.94rem; line-height: 1.4;
}
.mesa-includes li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 1px; color: var(--gold); font-size: 0.8rem;
}
.mesa-btn {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: #25d366; color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 13px 18px; border-radius: 12px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  transition: background var(--t), transform 0.2s ease;
}
.mesa-btn:hover { background: #1fb457; transform: translateY(-2px); }
@media (max-width: 500px) {
  .mesas-grid { grid-template-columns: 1fr; gap: 16px; }
  .mesa-card { padding: 24px 20px; }
}

/* Lightbox: navegación (flechas + contador) */
.cg-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff; font-size: 1.2rem; cursor: pointer;
  align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease; z-index: 2;
}
.cg-nav:hover { background: var(--gold); border-color: transparent; transform: translateY(-50%) scale(1.08); }
.cg-prev { left: 18px; }
.cg-next { right: 18px; }
.cg-count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.88rem; letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.45); padding: 5px 14px; border-radius: 40px;
}
@media (max-width: 600px) {
  .cg-nav { width: 44px; height: 44px; font-size: 1rem; }
  .cg-prev { left: 8px; } .cg-next { right: 8px; }
}

/* Cajas para Regalar: galería de muestras — tarjeta centrada, una fila / carrusel en móvil */
.souvenir-gallery-section {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 38px 24px;
  margin: 40px auto 54px;
  max-width: 1200px;
}
.souvenir-gallery-section .section-title { margin-bottom: 28px; }
.souvenir-gallery-section .eventos-gallery {
  grid-template-columns: repeat(5, 1fr);
  max-width: 1100px; margin: 0 auto;
}
.souvenir-gallery-section .eventos-gallery img:nth-child(odd)  { transform: translateY(-10px); }
.souvenir-gallery-section .eventos-gallery img:nth-child(even) { transform: translateY(10px); }
.souvenir-gallery-section .eventos-gallery img:hover { transform: scale(1.04); }
/* Móvil: carrusel horizontal con scroll-snap */
@media (max-width: 768px) {
  .souvenir-gallery-section { padding: 28px 14px; }
  .souvenir-gallery-section .eventos-gallery {
    display: flex; grid-template-columns: none;
    overflow-x: auto; gap: 14px; padding-bottom: 12px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .souvenir-gallery-section .eventos-gallery img,
  .souvenir-gallery-section .eventos-gallery img:nth-child(odd),
  .souvenir-gallery-section .eventos-gallery img:nth-child(even) {
    flex: 0 0 auto; width: 55vw; max-width: 210px;
    scroll-snap-align: center; transform: none;
  }
  .souvenir-gallery-section .eventos-gallery::-webkit-scrollbar { height: 6px; }
  .souvenir-gallery-section .eventos-gallery::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
}

/* =========================================================
   TEMPORADA DE FRUTILLAS (index, bajo el hero)
   ========================================================= */
.frutilla-section {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffeef0 0%, #fbeee9 55%, var(--cream-deep) 100%);
  padding: 50px 5vw 58px;
  scroll-margin-top: calc(var(--header-h) + 10px);
}
.frutilla-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.frutilla-section .section-title h2 { color: #b23a48; }
.frutilla-section .section-title h2::after { background: linear-gradient(90deg, #e8637a, #b23a48); }
.frutilla-deco {
  position: absolute; font-size: 8rem; opacity: 0.12; pointer-events: none; z-index: 0; user-select: none;
  filter: saturate(1.2);
}
.frutilla-deco--1 { top: 10px; left: -10px; transform: rotate(-18deg); }
.frutilla-deco--2 { bottom: 0; right: 6px; transform: rotate(14deg); font-size: 10rem; }

.frutilla-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.frutilla-grid .menu-item {
  background: #fff; border: 1px solid #f3d7dc; border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(178, 58, 72, 0.12);
  display: flex; flex-direction: column;
}
.frutilla-grid .menu-item:hover { box-shadow: 0 16px 36px rgba(178, 58, 72, 0.2); }
.frutilla-badge {
  align-self: center; margin-top: 10px;
  background: linear-gradient(135deg, #e8637a, #b23a48); color: #fff;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.4px;
  padding: 4px 12px; border-radius: 40px;
}
.frutilla-more {
  display: block; text-align: center; margin-top: 8px;
  font-size: 0.82rem; color: #b23a48; font-weight: 600;
}
.frutilla-more:hover { text-decoration: underline; }

@media (max-width: 900px) { .frutilla-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) {
  .frutilla-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .frutilla-deco { font-size: 6rem; }
}

/* Carrito unificado en el header (todas las páginas y viewports); se retira el flotante */
.cart-icon { display: none !important; }
