:root {
  /* Paleta de colores Manzarita */
  --primary: #FF5E78; /* Rosa frambuesa brillante */
  --primary-dark: #D43F57;
  --primary-light: #FF8FA3;

  --secondary: #A0D666; /* Verde manzana */
  --secondary-dark: #7CB342;

  --accent: #FFD54F; /* Amarillo suave para detalles */

  --bg-color: #FEF9E7; /* Crema vainilla */
  --bg-soft: #FFFDF5;
  --bg-card: rgba(255, 255, 255, 0.7);

  --text-main: #5D4037; /* Marrón suave */
  --text-light: #8D6E63;
  --text-white: #FFFFFF;

  --border-radius: 20px;
  --border-radius-sm: 12px;
  --shadow: 0 10px 30px -10px rgba(93, 64, 55, 0.15);
  --shadow-hover: 0 20px 40px -10px rgba(255, 94, 120, 0.25);

  --nav-height: 70px;
  --transition: all 0.3s ease;

  --font-heading: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Modo Noche (Tema Chocolate Oscuro) */
body.dark-mode {
  --bg-color: #2D1E1B; /* Chocolate oscuro */
  --bg-soft: #3E2723;
  --bg-card: rgba(62, 39, 35, 0.85);
  --text-main: #FEF9E7; /* Crema */
  --text-light: #D7CCC8;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --primary: #FF7089;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

/* FIX: evita scroll horizontal (sin romper layout) */
html, body { max-width: 100%; }
html { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, button, input, textarea {
  font-family: var(--font-heading);
}

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

ul { list-style: none; }

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

/* Canvas Background */
#candy-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
body:not(.dark-mode) .section-padding {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.bg-soft { background-color: var(--bg-soft); }

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(255, 94, 120, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 94, 120, 0.4);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

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

.full-width { width: 100%; }

.section-tag {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--secondary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: var(--nav-height);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s;
}

body.dark-mode header {
  background: rgba(45, 30, 27, 0.85);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-placeholder {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img{
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-weight: 600;
  position: relative;
  font-size: 0.95rem;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary);
  transition: width 0.3s;
}

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

.btn-highlight { color: var(--primary) !important; }

.icon-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.3s;
  color: var(--text-main);
}

.icon-btn:hover { transform: rotate(15deg); }

.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: none;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  transition: 0.3s;
}

/* Overlay para menú móvil */
.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 998; /* debajo del menú */
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 48px 0 60px;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.badge-pill {
  background-color: rgba(160, 214, 102, 0.2);
  color: var(--secondary-dark);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 15px;
  background: linear-gradient(45deg, var(--text-main), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.cta-group { display: flex; gap: 15px; }

.img-frame {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: transform 0.5s;
}
.img-frame:hover { transform: rotate(0deg) scale(1.02); }

/* Stats */
.stats-bar {
  background: var(--bg-soft);
  padding: 30px 0;
  margin-top: -2px;
}
.stats-grid {
  display: flex;
  justify-content: space-around;
  text-align: center;
}
.stat-number {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 800;
}
.stat-label {
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.cat-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.5);
}

.cat-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.cat-icon { font-size: 3rem; margin-bottom: 10px; display: block; }
.cat-name { font-weight: 700; color: var(--text-main); }

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

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

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.p-img-box {
  height: 200px;
  background: #eee;
  overflow: hidden;
  position: relative;
}

.p-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .p-img-box img { transform: scale(1.1); }

.availability-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--secondary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
  z-index: 2;
}

.p-details {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.p-title { font-size: 1.2rem; margin: 5px 0 10px; font-weight: 700; }
.p-desc { font-size: 0.9rem; color: var(--text-light); margin-bottom: 15px; flex-grow: 1; }

.btn-wa-product {
  background: #25D366;
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-wa-product:hover { background: #1ebe57; }

/* Promos */
.promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.promo-card {
  background: linear-gradient(135deg, var(--primary), #FF8A65);
  color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
}

.promo-card h3 { font-size: 1.8rem; margin-bottom: 10px; z-index: 2; position: relative; font-weight: 700; }
.promo-card p { z-index: 2; position: relative; margin-bottom: 15px; font-weight: 500; }
.promo-decoration {
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 8rem;
  opacity: 0.2;
  transform: rotate(-20deg);
}

/* GALERIA: una al lado de otra, con separación y sin recortar */
.gallery-masonry{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 16px;
}

.gallery-item{
  margin: 0;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: var(--shadow);
}

.gallery-item img{
  display: block;
  width: auto;
  height: auto;
  max-width: 450px;
  max-height: 450px;
  object-fit: contain;
  transition: transform 0.3s;
}
@media (max-width: 768px){
  .gallery-item img{
    max-width: 260px;
    max-height: 260px;
  }
}
@media (max-width: 480px){
  .gallery-masonry{
    gap: 18px;
  }
  .gallery-item img{
    max-width: 92vw;
    max-height: none;
  }
}
.gallery-item:hover img { transform: scale(1.05); }

/* Testimonials */
.testimonials-slider-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 40px;
}

.testi-card {
  text-align: center;
  animation: fadeEffect 1s;
}

@keyframes fadeEffect {
  from { opacity: 0; }
  to { opacity: 1; }
}

.testi-text {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 20px;
}

.testi-author {
  font-weight: 700;
  color: var(--primary);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.prev { left: 0; }
.next { right: 0; }

/* Location & Contact */
.location-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);

  /* ✅ evita que el contenido (mapa) se “pegue”/se salga en grid */
  overflow: hidden;
}

/* ✅ Ajuste fino en móvil: menos padding y mejor respiración */
@media (max-width: 768px) {
  .location-wrapper{
    grid-template-columns: 1fr;
    padding: 18px;  /* antes 40px: en móvil se ve muy a la orilla */
    gap: 18px;
  }
}

/* ✅ Extra para pantallas muy chicas (320px) */
@media (max-width: 420px) {
  .location-wrapper{
    padding: 14px;
  }
}

.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: #e0e0e0;
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #888;
}

/* FIX: Google Maps responsive (sin overflow) */
.map-embed{
  width: 100%;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  background: #e0e0e0;
}

.map-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.schedule-box {
  margin: 20px 0;
  padding: 15px;
  background: rgba(160, 214, 102, 0.1);
  border-radius: var(--border-radius-sm);
}

.store-features {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  margin-top: 15px;
}

.store-features span {
  background: rgba(255, 255, 255, 0.5);
  padding: 5px 10px;
  border-radius: 10px;
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-main); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.8);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}

/* Footer */
.footer {
  background: var(--primary);
  color: white;
  padding: 60px 0 20px;
  margin-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
.footer-logo{
  width: 140px;
  height: auto;
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
}
.footer-brand h3 { font-size: 2rem; margin-bottom: 10px; font-weight: 800; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-legal {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  grid-column: 1 / -1;
}
.disclaimer { opacity: 0.8; font-size: 0.8rem; margin-top: 5px; }

/* Floating Buttons */
.float-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s;
}
.float-wa:hover { transform: scale(1.1); }

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: grid;
  place-items: center;
}
.lightbox-backdrop { position: absolute; inset: 0; }
.lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: 92%;
  max-height: 82vh;
}
.lightbox-content {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 10px;
  display: block;
}
.close-lightbox {
  position: absolute;
  top: 16px;
  right: 22px;
  z-index: 2;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ✅ Scroll lock sin “brinco” */
body.no-scroll {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
  overflow: hidden; /* ok dejarlo */
}

/* Animations Reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  /* FIX: Menú off-canvas estable (sin right negativo) */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(80vw, 320px);
    height: 100vh;
    background: var(--bg-soft);
    flex-direction: column;
    justify-content: center;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: transform 0.35s ease;
    z-index: 999;

    transform: translateX(110%);
    will-change: transform;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu.active { transform: translateX(0); }

  .close-menu-btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-main);
  }

  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-title { font-size: 2.5rem; }
  .cta-group { justify-content: center; flex-wrap: wrap; }
  .location-wrapper, .footer-grid { grid-template-columns: 1fr; }
  .img-frame { max-width: 80%; margin: 0 auto; }
}

@media (min-width: 769px) {
  .close-menu-btn { display: none; }
}

/* Respeta el atributo hidden del lightbox */
.lightbox-overlay[hidden] { display: none !important; }

/* ===== Footer estilo “referencia” (adaptado a Manzarita) ===== */
.footer.footer-pro{
  background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.12)), var(--primary);
  color: #fff;
  padding: 56px 0 22px;
  margin-top: 50px;
}

.footer-pro-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
  align-items: start;
}

.footer-pro-logo{
  width: 150px;
  height: auto;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.25));
}

.footer-pro-desc{
  opacity: 0.95;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-pro-contact{
  display: grid;
  gap: 10px;
}

.footer-pro-line{
  line-height: 1.35;
  opacity: 0.95;
  font-size: 0.98rem;
}

.footer-pro-line strong{
  display: inline-block;
  margin-right: 6px;
}

.footer-pro-link{
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

.footer-pro-title{
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

.footer-pro-list{
  display: grid;
  gap: 10px;
  opacity: 0.95;
}

.footer-pro-muted{
  opacity: 0.92;
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-pro-social{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-pro-socialBtn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  font-weight: 800;
}

.footer-pro-socialBtn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.18);
}

.footer-pro-bottom{
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.22);
  text-align: center;
  display: grid;
  gap: 6px;
}

.footer-pro-disclaimer{
  opacity: 0.85;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px){
  .footer-pro-grid{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .footer-pro-logo{
    width: 140px;
  }
}

