/* Layout: vitrina de pastelería. Bandas de jengibre oscuro alternadas con bandas de nieve; portada con dos capas de parallax (fondo difuso + escena nítida). */
:root {
  --cocoa: #1c110c;
  --cocoa-2: #2b1a12;
  --ginger: #c9843f;
  --glow: #f5b556;
  --cranberry: #b52a39;
  --candy: #ec9aa5;
  --snow: #fbf5ee;
  --snow-2: #f1e6d9;
  --ink: #3a2218;
  --pine: #2e5a44;
  --muted-dark: #d9c3b0;
  --muted-light: #7a5a49;
  --font-display: "Playball", "Brush Script MT", cursive;
  --font-numbers: "Playfair Display", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --img: url("img/portada.jpg");
}
* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
html { scroll-behavior: smooth; }
body {
  background: var(--cocoa);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.3rem, 7vw, 3.6rem); line-height: 1.1; text-wrap: balance; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }
.wrap {
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(56px, 9vw, 104px); }
.band.dark { background: var(--cocoa); }
.band.dark-2 { background: var(--cocoa-2); }
.band.light { background: var(--snow); color: var(--ink); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--glow); }
.light .eyebrow { color: var(--cranberry); }
.lead { color: var(--muted-dark); max-width: 56ch; }
.light .lead { color: var(--muted-light); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; border-radius: 999px; padding: 16px 30px; min-height: 56px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  background: var(--cranberry); color: var(--snow);
  box-shadow: 0 10px 28px rgba(181,42,57,.35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(181,42,57,.5); background: #c43041; }
.btn:active { transform: translateY(0); }
.btn.glow { background: var(--glow); color: var(--cocoa); box-shadow: 0 10px 30px rgba(245,181,86,.3); }
.btn.glow:hover { background: #ffc46d; box-shadow: 0 14px 38px rgba(245,181,86,.5); }
.btn.outline { background: transparent; color: var(--snow); border: 2px solid var(--glow); box-shadow: none; }
.btn.outline:hover { background: rgba(245,181,86,.12); }
.light .btn.outline { color: var(--ink); border-color: var(--ink); }
.light .btn.outline:hover { background: rgba(58,34,24,.06); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* 1. Portada */
.hero { position: relative; height: clamp(480px, 90svh, 900px); overflow: hidden; background: var(--cocoa); isolation: isolate; }
.hero-bg, .hero-fg { position: absolute; will-change: transform; background-image: var(--img); background-repeat: no-repeat; }
.hero-bg { inset: -12% 0; background-size: cover; background-position: center; filter: blur(18px) saturate(1.1); opacity: .55; z-index: 0; }
.hero-fg {
  top: -40px; bottom: -40px; left: 50%; aspect-ratio: 896 / 1200; margin-left: calc(var(--fgw, 460px) / -2);
  background-size: 100% 100%; z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.hero-fg { height: auto; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10%; background: linear-gradient(to bottom, transparent, var(--cocoa)); z-index: 3; pointer-events: none; }
#snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero-badge {
  position: absolute; z-index: 4; top: max(18px, env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  background: rgba(28,17,12,.72); border: 1px solid rgba(245,181,86,.45); color: var(--glow);
  padding: 8px 18px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}

/* 2. Fechas */
.dates-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(14px, 4vw, 40px); margin-top: 36px; }
.date-card { background: var(--cocoa-2); border: 1px solid rgba(201,132,63,.35); border-radius: 22px; padding: 26px 22px; text-align: center; }
.date-card .tag { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--candy); }
.date-card .day { font-family: var(--font-numbers); font-weight: 600; font-size: clamp(4rem, 14vw, 6.5rem); line-height: 1; color: var(--glow); margin-top: 6px; }
.date-card .month { font-size: 1.15rem; font-weight: 600; }
.date-card .dow { font-size: .92rem; color: var(--muted-dark); }
.dates-link { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ginger); }
.dates-link .line { width: 2px; height: 46px; background: linear-gradient(var(--ginger), transparent); }
.dates-link .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 14px var(--glow); }
.dates-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: rgba(245,181,86,.12); color: var(--glow); font-weight: 600; font-size: .95rem; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); animation: pulse 1.8s ease-in-out infinite; }

/* 3. Botón de fechas */
.cta-cal { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.cta-cal .btn { padding: 18px 34px; font-size: 1.15rem; }
.cta-cal small { color: var(--muted-dark); }
.cal-ico { width: 34px; height: 34px; flex: none; }
.cal-ico .ring { transform-origin: center; animation: ringbob 2.4s ease-in-out infinite; }
.cal-ico .ring.b { animation-delay: .25s; }
.cal-ico .hl { transform-box: fill-box; transform-origin: center; animation: pulse 1.6s ease-in-out infinite; }
.cal-ico .page { transform-box: fill-box; transform-origin: top center; animation: flip 3.2s ease-in-out infinite; }

/* 4. Regalo */
.gift { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 5vw, 56px); align-items: center; }
.gift-ico { width: clamp(110px, 24vw, 200px); height: auto; }
.gift-ico .lid { transform-box: fill-box; transform-origin: 50% 100%; animation: lid 2.8s ease-in-out infinite; }
.gift-ico .bow { transform-box: fill-box; transform-origin: 50% 100%; animation: wiggle 2.8s ease-in-out infinite; }
.gift-ico .spark { transform-box: fill-box; transform-origin: center; animation: twinkle 2s ease-in-out infinite; }
.gift-ico .spark.s2 { animation-delay: .6s; }
.gift-ico .spark.s3 { animation-delay: 1.2s; }
.gift-text { font-size: clamp(1.5rem, 4.4vw, 2.4rem); line-height: 1.3; font-weight: 600; text-wrap: balance; }
.gift-text em { font-style: normal; font-family: var(--font-display); font-weight: 400; color: var(--cranberry); font-size: 1.15em; }

/* 5. Preguntas frecuentes */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 6vw, 72px); align-items: start; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--cocoa-2); border: 1px solid rgba(201,132,63,.3); border-radius: 16px; padding: 0 20px; transition: border-color .2s ease, background .2s ease; }
.faq details[open] { border-color: var(--glow); background: #33201a; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(245,181,86,.15); color: var(--glow); display: grid; place-items: center; font-size: 1.3rem; line-height: 1; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 18px; color: var(--muted-dark); animation: fadein .3s ease; }

/* 6. Ubicación */
.loc { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 5vw, 48px); align-items: center; }
.pin-ico { width: clamp(84px, 18vw, 140px); height: auto; overflow: visible; }
.pin-ico .pin { animation: bounce 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.pin-ico .shadow { transform-box: fill-box; transform-origin: center; animation: shadow 1.8s ease-in-out infinite; }
.pin-ico .ripple { transform-box: fill-box; transform-origin: center; animation: ripple 2.4s ease-out infinite; }
.pin-ico .ripple.r2 { animation-delay: 1.2s; }
.loc h2 { color: var(--ink); }
.loc .addr { font-size: 1.2rem; font-weight: 600; margin-top: 14px; }
.loc .hours { color: var(--muted-light); margin-top: 4px; margin-bottom: 24px; }

/* 7. Referencias */
.refs-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 30px; }
.refs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 18px); }
.ref { aspect-ratio: 1 / 1; max-width: 100%; border-radius: 18px; background-image: var(--img); background-repeat: no-repeat; border: 1px solid rgba(201,132,63,.4); overflow: hidden; position: relative; transition: transform .3s ease, box-shadow .3s ease; }
.ref:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 18px 36px rgba(0,0,0,.45); }
/* Para usar tus fotos: reemplaza el background-image de cada .ref por tu imagen (background-size: cover; background-position: center). */
.ref.r1 { background-size: 230% auto; background-position: 50% 26%; }
.ref.r2 { background-size: 340% auto; background-position: 2% 66%; }
.ref.r3 { background-size: 340% auto; background-position: 98% 66%; }
.ref.r4 { background-size: 420% auto; background-position: 66% 44%; }

/* 8. Precio */
.price-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.includes { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 14px; }
.includes li { display: flex; gap: 14px; align-items: center; font-size: 1.15rem; font-weight: 600; }
.includes svg { flex: none; width: 28px; height: 28px; }
.price-card { background: var(--cocoa); color: var(--snow); border-radius: 28px; padding: clamp(28px, 5vw, 44px); text-align: center; box-shadow: 0 24px 60px rgba(58,34,24,.28); position: relative; }
.price-card .tag { display: inline-block; background: var(--cranberry); color: var(--snow); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.price-card .amount { font-family: var(--font-numbers); font-weight: 600; color: var(--glow); line-height: 1; margin: 18px 0 4px; display: flex; justify-content: center; align-items: baseline; gap: 8px; }
.price-card .amount .cur { font-size: 1.8rem; }
.price-card .amount .num { font-size: clamp(5rem, 18vw, 7.5rem); }
.price-card .per { color: var(--muted-dark); margin-bottom: 26px; }
.price-card .btn { width: 100%; }

/* 9. Pie */
.footer { text-align: center; }
.footer .btn { margin-top: 6px; }
.logo-link { display: inline-block; margin-top: 22px; text-decoration: none; }
.logo-box { width: min(300px, 80vw); aspect-ratio: 3 / 1; border: 2px dashed rgba(245,181,86,.6); border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.7rem; color: var(--glow); transition: background .2s ease, transform .2s ease; }
.logo-link:hover .logo-box { background: rgba(245,181,86,.1); transform: scale(1.03); }
.footer small { display: block; margin-top: 34px; color: var(--muted-dark); }
.footer { padding-bottom: calc(clamp(56px, 9vw, 104px) + 76px); }

/* Barra fija de reserva */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(28,17,12,.94); border-top: 1px solid rgba(245,181,86,.35);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transform: translateY(110%); transition: transform .35s ease;
}
.sticky.show { transform: translateY(0); }
.sticky .info { min-width: 0; font-size: .85rem; line-height: 1.3; color: var(--muted-dark); }
.sticky .info b { display: block; color: var(--glow); font-size: 1rem; }
.sticky .btn { padding: 12px 22px; min-height: 48px; flex: none; }

/* Control flotante de música */
.music-toggle {
  position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: 24px; z-index: 50;
  width: 54px; height: 54px; display: grid; place-items: center;
  border: 1px solid rgba(245,181,86,.65); border-radius: 50%;
  background: var(--cocoa); color: var(--glow); box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.music-toggle:hover { transform: translateY(-3px); background: var(--cocoa-2); box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.music-toggle svg { width: 24px; height: 24px; }
.music-toggle .icon-pause { display: none; }
.music-toggle[aria-pressed="true"] .icon-play { display: none; }
.music-toggle[aria-pressed="true"] .icon-pause { display: block; }

/* Modal de reserva */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20,10,6,.78); animation: fadein .2s ease; }
.modal[hidden] { display: none; }
.sheet { background: var(--snow); color: var(--ink); width: 100%; max-width: 580px; max-height: 92svh; overflow: auto; border-radius: 26px; padding: 26px clamp(18px, 4vw, 30px) 28px; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: rise .3s ease; }
.sheet-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.sheet h2 { font-size: 2.2rem; color: var(--cranberry); }
.sheet .sub { color: var(--muted-light); font-size: .95rem; }
.x { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; background: var(--snow-2); color: var(--ink); font-size: 1.4rem; line-height: 1; }
.x:hover { background: #e6d6c5; }
.tabs { display: flex; gap: 8px; margin: 20px 0 14px; }
.tab { flex: 1; padding: 10px; border-radius: 12px; border: 2px solid var(--snow-2); background: transparent; color: var(--ink); font-weight: 700; }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--snow); }
.dow-row, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dow-row span { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted-light); letter-spacing: .06em; }
.days { margin-top: 8px; }
.d { aspect-ratio: 1 / 1; border-radius: 12px; border: 2px solid transparent; background: var(--snow-2); color: var(--ink); font-weight: 700; display: grid; place-items: center; padding: 0; position: relative; transition: transform .15s ease, background .15s ease; }
.d:hover:not(:disabled) { transform: scale(1.08); border-color: var(--ginger); }
.d.sel { background: var(--cranberry); color: var(--snow); border-color: var(--cranberry); }
.d.few::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--ginger); }
.d.sel.few::after { background: var(--snow); }
.d:disabled { background: transparent; color: #b9a595; cursor: not-allowed; }
.d.full:disabled { text-decoration: line-through; }
.d.blank { visibility: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: .8rem; color: var(--muted-light); }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--ginger); }
.legend span.f::before { background: #b9a595; }
.slots-block { margin-top: 22px; }
.slots-block h3 { font-size: 1rem; margin-bottom: 10px; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slot { padding: 11px 4px; border-radius: 12px; border: 2px solid var(--snow-2); background: transparent; color: var(--ink); font-weight: 700; }
.slot:hover:not(:disabled) { border-color: var(--ginger); }
.slot.sel { background: var(--cranberry); border-color: var(--cranberry); color: var(--snow); }
.slot:disabled { color: #b9a595; text-decoration: line-through; cursor: not-allowed; }
.fields { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--muted-light); }
.fields input { font: inherit; font-weight: 500; color: var(--ink); background: #fff; border: 2px solid var(--snow-2); border-radius: 12px; padding: 12px; min-height: 48px; min-width: 0; }
.fields input:focus { border-color: var(--ginger); outline: none; }
.summary { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--snow-2); font-weight: 600; min-height: 52px; display: flex; align-items: center; }
.sheet .btn { width: 100%; margin-top: 14px; }
.sheet .note { margin-top: 10px; font-size: .82rem; color: var(--muted-light); text-align: center; }
.payment-qr { margin-top: 22px; padding: 18px; border: 1px solid #e6d6c5; border-radius: 18px; background: #fff; text-align: center; }
.payment-qr h3 { font-size: 1.1rem; }
.payment-qr p { margin-top: 4px; color: var(--muted-light); font-size: .9rem; }
.payment-qr img { display: block; width: min(100%, 240px); height: auto; margin: 14px auto 0; border-radius: 8px; }
body.lock { overflow: hidden; }

@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .7; } }
@keyframes ringbob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes flip { 0%,70%,100% { transform: scaleY(1); } 80% { transform: scaleY(.15); } 90% { transform: scaleY(1); } }
@keyframes lid { 0%,55%,100% { transform: translateY(0) rotate(0); } 65% { transform: translateY(-14px) rotate(-6deg); } 75% { transform: translateY(0) rotate(0); } 82% { transform: translateY(-5px) rotate(2deg); } 90% { transform: translateY(0); } }
@keyframes wiggle { 0%,55%,100% { transform: rotate(0); } 65% { transform: rotate(-8deg); } 75% { transform: rotate(6deg); } 85% { transform: rotate(-3deg); } }
@keyframes twinkle { 0%,100% { transform: scale(.4); opacity: .2; } 50% { transform: scale(1); opacity: 1; } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes shadow { 0%,100% { transform: scale(1); opacity: .35; } 50% { transform: scale(.6); opacity: .15; } }
@keyframes ripple { 0% { transform: scale(.3); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .dates-grid { grid-template-columns: 1fr; }
  .dates-link { flex-direction: row; justify-content: center; }
  .dates-link .line { width: 46px; height: 2px; background: linear-gradient(90deg, transparent, var(--ginger), transparent); transform: rotate(90deg); }
  .faq-wrap, .price-wrap { grid-template-columns: 1fr; }
  .gift { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .loc { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal { align-items: flex-end; padding: 0; }
  .sheet { border-radius: 26px 26px 0 0; max-height: 94svh; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-badge { font-size: .7rem; padding: 7px 14px; }
  .music-toggle { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 761px) { .sticky { display: none; } .footer { padding-bottom: clamp(56px, 9vw, 104px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
