/* =========================================================
   24 D'licias · Hoja de estilos principal
   Tema: oscuro elegante + dorado, moderno y antojable
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --bg:        #0e0e10;
  --bg-2:      #141417;
  --surface:   #1a1a1f;
  --surface-2: #212128;
  --line:      rgba(255, 255, 255, .08);

  --gold:      #ffc83d;
  --gold-2:    #ff9e00;
  --gold-soft: rgba(255, 200, 61, .15);

  --text:      #f4f1ea;
  --muted:     #a8a39a;

  --wa:        #25d366;

  --grad-gold: linear-gradient(135deg, #ffd86b 0%, #ffb01f 45%, #ff8a00 100%);
  --grad-dark: linear-gradient(160deg, #1c1c22 0%, #121216 100%);

  --radius:    20px;
  --radius-sm: 14px;
  --shadow:    0 18px 50px rgba(0, 0, 0, .45);
  --shadow-gold: 0 14px 34px rgba(255, 158, 0, .28);

  --maxw:      1180px;
  --nav-h:     74px;

  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

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

.grad-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--grad-gold);
  color: #2a1900;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(255,158,0,.38); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,.22);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

.btn-dark {
  background: #161618;
  color: var(--gold);
  border: 1.5px solid rgba(0,0,0,.2);
}
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.btn-wa { background: var(--wa); color: #04230f; }
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(37,211,102,.35); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(14,14,16,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.navbar.scrolled {
  background: rgba(14,14,16,.9);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 46px; width: auto; }
.brand-text { font-family: var(--font-head); font-size: 1.25rem; color: var(--text); letter-spacing: .3px; }
.brand-text strong { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 9px 14px;
  border-radius: 100px;
  color: var(--muted);
  font-weight: 500;
  font-size: .96rem;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-cta { margin-left: 10px; padding: 10px 18px; font-size: .9rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 26px; height: 2.5px; border-radius: 4px; background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255,158,0,.16), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(255,200,61,.08), transparent 55%),
    var(--bg);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
}
.blob-1 { width: 380px; height: 380px; background: rgba(255,158,0,.35); top: -80px; right: -60px; animation: float 9s ease-in-out infinite; }
.blob-2 { width: 300px; height: 300px; background: rgba(255,200,61,.22); bottom: -90px; left: -60px; animation: float 11s ease-in-out infinite reverse; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-block: 60px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .5px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(255,200,61,.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.eyebrow.center { display: inline-block; }

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.5px;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 520px;
  margin: 22px 0 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold); }
.hero-stats span { font-size: .85rem; color: var(--muted); }

/* Hero media */
.hero-media { position: relative; }
.hero-photo {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 4.4;
  transform: rotate(2deg);
  transition: transform .5s ease;
}
.hero-photo:hover { transform: rotate(0); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(26,26,31,.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-badge .badge-emoji { font-size: 1.6rem; }
.float-badge strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.float-badge small { color: var(--muted); font-size: .8rem; }
.badge-top { top: 24px; left: -28px; }
.badge-bottom { bottom: 30px; right: -22px; animation-delay: 1.5s; }

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 20px;
  display: flex; justify-content: center;
  padding-top: 8px;
  z-index: 2;
}
.scroll-cue span {
  width: 4px; height: 8px; border-radius: 4px; background: var(--gold);
  animation: scroll 1.6s ease-in-out infinite;
}

/* ---------- Features strip ---------- */
.features { background: var(--bg-2); border-block: 1px solid var(--line); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding-block: 38px;
}
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature span { font-size: 1.8rem; line-height: 1; }
.feature strong { font-family: var(--font-head); display: block; margin-bottom: 2px; }
.feature p { color: var(--muted); font-size: .9rem; }

/* ---------- Secciones genéricas ---------- */
.section { padding-block: 90px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-top: 8px;
}
.section-title.left { text-align: left; }
.section-desc { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Categorías ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cat-card {
  background: var(--grad-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-gold);
  opacity: 0; transition: opacity .3s ease;
  z-index: 0;
}
.cat-card > * { position: relative; z-index: 1; }
.cat-card:hover { transform: translateY(-8px); border-color: transparent; box-shadow: var(--shadow-gold); }
.cat-card:hover::before { opacity: .12; }
.cat-emoji { font-size: 2.6rem; margin-bottom: 14px; }
.cat-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.cat-card p { color: var(--muted); font-size: .92rem; min-height: 42px; }
.cat-link { display: inline-block; margin-top: 14px; color: var(--gold); font-weight: 600; font-size: .92rem; }

/* ---------- Arma tu crepa ---------- */
.build { background: var(--bg-2); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-card.featured { border-color: rgba(255,200,61,.4); box-shadow: var(--shadow-gold); }
.step-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.step-num { font-family: var(--font-head); font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.step-price {
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step-card h3 { font-size: 1.5rem; margin-bottom: 18px; }
.step-list { display: flex; flex-direction: column; gap: 10px; }
.step-list li {
  color: var(--text); font-size: .98rem; padding-left: 26px; position: relative;
}
.step-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700;
}
.build-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 28px; }

/* ---------- Menú (acordeón) ---------- */
.menu-block {
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.menu-block:last-of-type { margin-bottom: 0; }
.menu-block.open { border-color: rgba(255,200,61,.32); box-shadow: var(--shadow); }

/* Cabecera clicable */
.menu-cat {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-head); color: var(--text);
  font-size: 1.3rem; text-align: left;
  padding: 22px 24px;
  transition: background .25s ease;
}
.menu-cat:hover { background: rgba(255,255,255,.04); }
.cat-name { display: flex; align-items: center; gap: 12px; }
.cat-name .ic { font-size: 1.4rem; }
.cat-meta { display: flex; align-items: center; gap: 14px; }
.count {
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  color: var(--gold); background: var(--gold-soft);
  border: 1px solid rgba(255,200,61,.25);
  padding: 3px 11px; border-radius: 100px;
}
.chev { color: var(--muted); transition: transform .35s ease, color .25s ease; flex-shrink: 0; }
.menu-block.open .chev { transform: rotate(180deg); color: var(--gold); }
.menu-cat:hover .chev { color: var(--gold); }

/* Panel desplegable (animación con grid-template-rows) */
.menu-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s ease;
}
.menu-block.open .menu-panel { grid-template-rows: 1fr; }
.menu-panel-inner { overflow: hidden; min-height: 0; }
.menu-panel .menu-grid { padding: 4px 24px 26px; }

.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.menu-grid.compact { grid-template-columns: repeat(3, 1fr); }

.item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.item:hover { transform: translateY(-4px); border-color: rgba(255,200,61,.35); background: var(--surface-2); }
.item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.item h4 { font-size: 1.08rem; font-weight: 600; }
.item p { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.item.gourmet { border-color: rgba(255,200,61,.25); }

.price {
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  color: var(--gold); white-space: nowrap;
}

.item.line { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.item.line h4 { font-size: 1rem; }

.menu-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 40px; }
.placeholder-menu { text-align: center; color: var(--muted); padding: 50px 20px; font-size: 1.05rem; }

/* ---------- Nosotros ---------- */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { position: relative; min-height: 420px; }
.about-img {
  position: absolute; border-radius: var(--radius); object-fit: cover;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.img-back { width: 70%; aspect-ratio: 1; top: 0; right: 0; }
.img-front { width: 62%; aspect-ratio: 1; bottom: 0; left: 0; border: 4px solid var(--bg); }
.about-copy p { color: var(--muted); margin-top: 16px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.about-tags span {
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 100px; font-size: .9rem; font-family: var(--font-head);
}

/* ---------- Lealtad CTA ---------- */
.loyalty {
  background: var(--grad-gold);
  color: #2a1900;
}
.loyalty-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; padding-block: 48px; flex-wrap: wrap;
}
.loyalty h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.loyalty p { max-width: 600px; margin-top: 8px; font-weight: 500; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.contact-card {
  background: var(--grad-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.contact-card:hover { transform: translateY(-6px); border-color: rgba(255,200,61,.35); box-shadow: var(--shadow); }
.c-icon { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.contact-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: .9rem; }
.contact-card small { display: block; margin-top: 10px; color: var(--gold); font-weight: 600; font-family: var(--font-head); }
.social-row { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.social-row a {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  color: var(--gold); padding: 7px 12px; border-radius: 100px;
  border: 1px solid rgba(255,200,61,.25); background: var(--gold-soft);
  transition: background .2s ease, transform .2s ease;
}
.social-row a:hover { background: rgba(255,200,61,.22); transform: translateY(-2px); }

.map-wrap {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  line-height: 0;
}
.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
  filter: grayscale(.2) contrast(1.05);
}

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 50px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap; padding-bottom: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; max-width: 420px; }
.footer-brand img { height: 56px; }
.footer-brand p { color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 500; transition: color .2s ease; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 20px; text-align: center; }
.footer-bottom p { color: var(--muted); font-size: .85rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(37,211,102,.45);
  transition: transform .3s ease;
  animation: pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.1); }

/* ---------- Animaciones ---------- */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes scroll { 0% { opacity: 0; transform: translateY(-4px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 440px; margin-inline: auto; width: 100%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 70px; }
  .about-media { max-width: 460px; margin-inline: auto; width: 100%; }
  .section-title.left { text-align: center; }
  .about-tags { justify-content: center; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(14,14,16,.97);
    backdrop-filter: blur(16px);
    padding: 18px 22px 26px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 14px 12px; border-radius: 12px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
  .hamburger { display: flex; }

  .steps-grid { grid-template-columns: 1fr; }
  .menu-grid, .menu-grid.compact { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .badge-top { left: 0; }
  .badge-bottom { right: 0; }
}

@media (max-width: 520px) {
  .section { padding-block: 64px; }
  .features-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .loyalty-inner { flex-direction: column; text-align: center; align-items: center; }
}

/* Accesibilidad: respeta reduce-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
