/* ─────────────────────────────────────────────
   Más Deli – Shared Styles  (Ladurée-inspired)
   ───────────────────────────────────────────── */

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

:root {
  --cream:       #faf5ef;
  --cream-2:     #f2e8dc;
  --rose:        #ff3e7e;
  --rose-light:  #ffc2d6;
  --rose-hover:  #d60047;
  --espresso:    #1e0f09;
  --mocha:       #5c3a2d;
  --gold:        #b5945f;
  --gris:        #8a7060;
  --white:       #ffffff;
  --verde-wa:    #25D366;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Jost', sans-serif;
  --font-script: 'Alex Brush', cursive;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--espresso);
  overflow-x: hidden;
  line-height: 1.65;
}

/* ── UTILITY ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 5%; }
.text-center { text-align: center; }
.text-rose { color: var(--rose); }

/* ── EYEBROW / TAG ── */
.eyebrow {
  display: inline-block;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 12px;
}
.eyebrow::before,
.eyebrow::after { content: '—'; margin: 0 8px; opacity: .5; }

/* ── SECTION HEADINGS ── */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 400; color: var(--mocha);
  line-height: 1.15; margin-bottom: 14px;
}
.section-title em { font-style: italic; color: var(--rose); }
.section-desc {
  font-size: 1rem; color: var(--gris); max-width: 560px;
  margin: 0 auto 52px; line-height: 1.8;
}

.ornament {
  display: flex; align-items: center; gap: 14px;
  justify-content: center; margin: 16px auto 0;
}
.ornament-line { flex: 1; max-width: 80px; height: 1px; background: var(--rose-light); }
.ornament-icon { color: var(--rose); font-size: .75rem; letter-spacing: .1em; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px; border-radius: 2px;
  font-family: var(--font-sans); font-size: .78rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: none;
  transition: background .25s, transform .2s, box-shadow .25s;
}
.btn-primary {
  background: var(--espresso); color: var(--white);
}
.btn-primary:hover { background: var(--mocha); transform: translateY(-2px); }

.btn-rose {
  background: var(--rose); color: var(--white);
  box-shadow: 0 4px 20px rgba(255, 62, 126,.35);
}
.btn-rose:hover { background: var(--rose-hover); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255, 62, 126,.45); }

.btn-outline {
  background: transparent; color: var(--espresso);
  border: 1.5px solid var(--espresso);
}
.btn-outline:hover { background: var(--espresso); color: var(--white); }

.btn-wa {
  background: var(--verde-wa); color: var(--white);
  border-radius: 50px; font-size: .82rem;
}
.btn-wa:hover { background: #1ca64a; transform: translateY(-2px); }

.btn-maps {
  background: var(--white); color: #1a73e8;
  border: 1.5px solid #1a73e8; border-radius: 50px;
  font-size: .82rem;
}
.btn-maps:hover { background: #1a73e8; color: var(--white); }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
  background: rgba(250, 245, 239, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 62, 126,.12);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(92,58,45,.1); }
.navbar.hero-nav {
  background: transparent;
  border-bottom-color: rgba(255,255,255,.15);
}
.navbar.hero-nav .nav-brand-text { color: var(--white); }
.navbar.hero-nav .nav-brand-sub { color: rgba(255,255,255,.7); }
.navbar.hero-nav .nav-menu a { color: rgba(255,255,255,.9); }
.navbar.hero-nav .nav-menu a:hover { color: var(--white); background: rgba(255,255,255,.12); }
.navbar.hero-nav .nav-hamburger span { background: var(--white); }

.nav-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255, 62, 126,.4); }
.nav-brand-text { font-family: var(--font-script); font-size: 1.35rem; color: var(--rose); line-height: 1; }
.nav-brand-sub { font-size: .56rem; letter-spacing: .2em; color: var(--gris); text-transform: uppercase; }

.nav-menu { display: flex; list-style: none; gap: 0; }
.nav-menu a {
  text-decoration: none; color: var(--mocha);
  font-size: .72rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; padding: 9px 13px; border-radius: 3px;
  transition: color .2s, background .2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--rose); background: var(--rose-light); }
.nav-menu .nav-cta a {
  background: var(--rose); color: var(--white);
  border-radius: 2px; margin-left: 8px;
}
.nav-menu .nav-cta a:hover { background: var(--rose-hover); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav-hamburger span { width: 22px; height: 1.5px; background: var(--mocha); display: block; transition: .3s; border-radius: 1px; }

/* ── FOOTER ── */
footer {
  background: var(--espresso);
  color: rgba(255,255,255,.6);
  padding: 64px 5% 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px; max-width: 1160px; margin: 0 auto 52px;
}
.footer-brand .logo-text { font-family: var(--font-script); font-size: 2rem; color: var(--rose-light); margin-bottom: 4px; }
.footer-brand .logo-sub { font-style: italic; color: rgba(255, 62, 126,.7); font-size: .9rem; margin-bottom: 18px; }
.footer-brand p { font-size: .85rem; line-height: 1.8; color: rgba(255,255,255,.45); max-width: 240px; }
.footer-col h4 { font-family: var(--font-serif); font-size: 1rem; color: var(--rose-light); letter-spacing: .05em; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,.45); text-decoration: none;
  font-size: .82rem; transition: color .2s;
}
.footer-col ul li a:hover { color: var(--rose-light); }
.footer-col p { font-size: .82rem; color: rgba(255,255,255,.45); line-height: 1.8; }
.footer-bottom {
  max-width: 1160px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 24px; font-size: .72rem; color: rgba(255,255,255,.25);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-instagram a { color: var(--rose-light); text-decoration: none; font-size: .82rem; }
.footer-instagram a:hover { color: var(--rose); }

/* ── FLOATING WHATSAPP ── */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--verde-wa);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45); text-decoration: none;
  animation: wa-pulse 3s infinite;
}
.wa-float svg { width: 28px; height: 28px; fill: white; }
@keyframes wa-pulse { 0%,100%{ box-shadow: 0 6px 24px rgba(37,211,102,.45) } 50%{ box-shadow: 0 6px 36px rgba(37,211,102,.7) } }

/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 2000;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--rose-light), var(--rose), var(--gold));
  transition: width .1s linear;
  pointer-events: none;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Variantes de dirección */
.reveal-left {
  opacity: 0; transform: translateX(-48px);
  transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(48px);
  transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0; transform: scale(.93);
  transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger — retardo por posición entre hermanos */
.reveal-stagger > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:.17s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:.29s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:.41s; }
.reveal-stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:.53s; }
.reveal-stagger.visible > *:nth-child(n+6) { opacity:1; transform:none; transition-delay:.65s; }

/* Línea decorativa animada */
.reveal-line {
  display: block; width: 0; height: 1px;
  background: var(--rose);
  transition: width 1s cubic-bezier(.16,1,.3,1);
}
.reveal-line.visible { width: 100%; }

/* Parallax hero — capas con JS */
.parallax-layer { will-change: transform; }

/* ── RESPONSIVE GLOBAL ── */
@media (max-width: 760px) {
  .section { padding: 64px 5% !important; }

  /* Reveals más notorios en móvil */
  .reveal {
    transform: translateY(52px);
    transition-duration: .65s;
  }
  .reveal-left {
    transform: translateX(-56px);
    transition-duration: .65s;
  }
  .reveal-right {
    transform: translateX(56px);
    transition-duration: .65s;
  }
  .reveal-scale {
    transform: scale(.88);
    transition-duration: .65s;
  }
  .reveal-stagger > * {
    transform: translateY(44px);
    transition-duration: .55s;
  }
}
@media (max-width: 520px) {
  .section { padding: 48px 5% !important; }
}

/* ── RESPONSIVE NAV ── */
@media (max-width: 820px) {
  .nav-menu {
    display: none; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(250,245,239,.98);
    backdrop-filter: blur(12px);
    padding: 18px 5% 24px;
    border-bottom: 1px solid var(--rose-light);
    box-shadow: 0 8px 24px rgba(0,0,0,.07);
    gap: 2px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 10px 14px; }
  .nav-menu .nav-cta a { margin-left: 0; margin-top: 8px; }
  .nav-hamburger { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
