@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --black: #0a0a0a;
  --surface: #141414;
  --surface-2: #1b1710;
  --line: #2a2418;
  --gold: #c9a24b;
  --gold-dark: #9c7a35;
  --cream: #f3efe6;
  --muted: #a89f8c;
  --danger: #d0604f;
  --ok: #5f9a6e;
  --radius: 14px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); margin: 0 0 .4em; line-height: 1.15; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
.eyebrow { color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; font-weight: 600; margin: 0 0 .6em; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; letter-spacing: .02em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--sans); font-size: 15px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: #d8b363; }
.btn-outline { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.muted { color: var(--muted); }

/* ---- Loader ---- */
#loader { position: fixed; inset: 0; background: var(--black); z-index: 999; display: grid; place-items: center; transition: opacity .5s ease, visibility .5s ease; }
#loader .mark { font-family: var(--serif); font-size: 28px; letter-spacing: .08em; color: var(--gold); }
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---- Nav ---- */
#topnav { position: fixed; top: 0; left: 0; right: 0; z-index: 90; padding: 18px 0; transition: background .25s ease, padding .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
#topnav.scrolled { background: rgba(10,10,10,.92); backdrop-filter: blur(8px); padding: 12px 0; border-color: var(--line); }
#topnav .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: .02em; }
.brand b { color: var(--gold); }
.links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.links a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.links a:hover, .links a.active { color: var(--cream); border-color: var(--gold); }
#navBurger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
#navBurger span { width: 24px; height: 2px; background: var(--cream); display: block; transition: transform .2s ease, opacity .2s ease; }
#mobileMenu { display: none; }

@media (max-width: 860px) {
  .links { display: none; }
  #navBurger { display: flex; }
  #mobileMenu { position: fixed; inset: 64px 0 0 0; background: var(--black); z-index: 85; padding: 24px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
  #mobileMenu.open { opacity: 1; visibility: visible; transform: translateY(0); display: block; }
  #mobileMenu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
  #mobileMenu a { text-decoration: none; font-size: 20px; font-weight: 700; font-family: var(--serif); }
}

/* ---- Hero ---- */
#inicio { position: relative; min-height: 92vh; display: flex; align-items: center; padding-top: 140px; overflow: hidden; }
#inicio::before {
  content: ''; position: absolute; inset: 0; background-image: var(--hero-image); background-size: cover; background-position: center;
  filter: brightness(.42) saturate(1.05);
}
#inicio::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.5), rgba(10,10,10,.92) 85%); }
.hero-inner { position: relative; z-index: 2; max-width: 680px; }
.hero-inner .eyebrow { color: var(--gold); }
.hero-inner h1 { font-size: clamp(38px, 6vw, 64px); }
.hero-inner .tagline { font-size: 19px; color: var(--cream); opacity: .9; margin-bottom: 10px; }
.hero-slogan { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 22px; margin: 18px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; background: rgba(20,20,20,.6); }
.pill[data-state="open"] { border-color: var(--ok); color: #bfe3c6; }
.pill[data-state="closed"] { border-color: var(--line); color: var(--muted); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pill[data-state="open"] .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* ---- Marquee ---- */
.marquee { background: var(--gold); color: var(--black); overflow: hidden; padding: 14px 0; white-space: nowrap; font-weight: 800; letter-spacing: .06em; }
.marquee-track { display: inline-flex; gap: 40px; animation: marquee 32s linear infinite; }
.marquee-track span { font-size: 15px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(var(--from, 30px)); transition: opacity .6s ease var(--d, 0s), transform .6s ease var(--d, 0s); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Cards / grid ---- */
.grid { display: grid; gap: 24px; }
.grid-services { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 440px; margin: 0 auto; }
.grid-faq { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.card .ic { color: var(--gold); display: inline-flex; width: 36px; height: 36px; margin-bottom: 14px; }
.card .ic svg { width: 100%; height: 100%; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); margin: 0 0 8px; }
.svc-meta { color: var(--gold) !important; font-weight: 700; }

/* ---- Accordion ---- */
.acc .acc-btn { width: 100%; background: none; border: 0; color: var(--cream); text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; font-family: var(--serif); font-size: 18px; font-weight: 700; }
.acc .plus { width: 20px; height: 20px; position: relative; flex-shrink: 0; }
.acc .plus::before, .acc .plus::after { content: ''; position: absolute; background: var(--gold); transition: transform .2s ease; }
.acc .plus::before { top: 9px; left: 0; width: 20px; height: 2px; }
.acc .plus::after { top: 0; left: 9px; width: 2px; height: 20px; }
.acc.open .plus::after { transform: rotate(90deg); }
.acc .acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc.open .acc-body { max-height: 240px; }
.acc .acc-body > div { padding-top: 14px; }

/* ---- Open now / origin story ---- */
#nosotros .wrap { max-width: 760px; }
#nosotros p { color: var(--muted); }

/* ---- Gallery placeholder (sin fotos reales todavía) ---- */
.gallery-placeholder { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.ph-placeholder { aspect-ratio: 4/5; border-radius: var(--radius); border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 13px; background: var(--surface); text-align: center; padding: 12px; }

/* ---- Carousel (listo para fotos reales) ---- */
.car-root { position: relative; }
.car-viewport { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px; scrollbar-width: none; }
.car-viewport::-webkit-scrollbar { display: none; }
.car-track { display: flex; gap: 16px; }
.ph { scroll-snap-align: start; width: 260px; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); flex-shrink: 0; }
.car-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.car-btn { background: var(--surface); border: 1px solid var(--line); color: var(--cream); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.car-btn:hover { border-color: var(--gold); color: var(--gold); }
.car-progress { flex: 1; max-width: 240px; height: 3px; background: var(--line); border-radius: 3px; position: relative; overflow: hidden; }
.car-progress span { position: absolute; top: 0; bottom: 0; background: var(--gold); border-radius: 3px; }

/* ---- Lightbox ---- */
#lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,5,5,.94); display: grid; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
#lightbox.open { opacity: 1; visibility: visible; }
#lightboxStage { position: relative; width: 100%; height: 100%; overflow: hidden; }
.lb-slide { position: absolute; top: 50%; left: 50%; width: min(70vw, 420px); border: 0; background: none; padding: 0; cursor: pointer; transition: transform .3s ease, opacity .3s ease; }
.lb-slide img { border-radius: 10px; width: 100%; }
#lightboxClose, #lightboxPrev, #lightboxNext { position: absolute; background: rgba(20,20,20,.7); border: 1px solid var(--line); color: var(--cream); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; z-index: 5; }
#lightboxClose { top: 20px; right: 20px; }
#lightboxPrev { left: 20px; top: 50%; transform: translateY(-50%); }
#lightboxNext { right: 20px; top: 50%; transform: translateY(-50%); }
#lightboxCount { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 13px; }

/* ---- Reels ---- */
.reels-grid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px; }
.reels-grid::-webkit-scrollbar { display: none; }
.reel { scroll-snap-align: start; flex-shrink: 0; width: 220px; aspect-ratio: 9/16; border-radius: var(--radius); border: 1px solid var(--line); position: relative; overflow: hidden; background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.reel.is-active, .reel.is-playing { border-color: var(--gold); box-shadow: 0 0 22px rgba(201,162,75,.35); }
.reel-screen { position: absolute; inset: 0; }
.reel-video { width: 100%; height: 100%; object-fit: cover; }
.reel-facade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-decoration: none; color: var(--cream); background: linear-gradient(160deg, #1b1710, #0a0a0a); text-align: center; padding: 16px; }
.reel-facade .ig-mark { color: var(--gold); width: 30px; height: 30px; }
.reel-tap { position: absolute; bottom: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(10,10,10,.6); color: var(--cream); display: grid; place-items: center; cursor: pointer; }
.reel-tap svg { width: 16px; height: 16px; }
.reels-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.reels-arrow { background: var(--surface); border: 1px solid var(--line); color: var(--cream); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.reels-dots { display: flex; gap: 8px; }
.reels-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.reels-dot[aria-current="true"] { background: var(--gold); }

/* ---- Turnos / Ubicación ---- */
.turnos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.row b { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.row .ri { width: 18px; height: 18px; color: var(--gold); display: inline-flex; }
.row .ri svg { width: 100%; height: 100%; }
.row.off span { color: var(--muted); }
.maps-frame { width: 100%; height: 280px; border: 0; border-radius: var(--radius); filter: grayscale(.2) invert(.92) contrast(.9); margin-top: 18px; }
@media (max-width: 760px) { .turnos-grid { grid-template-columns: 1fr; } }

/* ---- Formulario (agendar / reseñas) ---- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; max-width: 560px; margin: 0 auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--black); color: var(--cream); font-size: 15px; font-family: var(--sans);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.field.has-error input, .field.has-error .dd-btn { border-color: var(--danger); }
.field-err { display: block; color: var(--danger); font-size: 13px; margin-top: 6px; min-height: 1em; }
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: rgba(208,96,79,.12); border: 1px solid var(--danger); color: #f3c9c2; padding: 12px 16px; border-radius: 9px; margin-bottom: 18px; font-size: 14px; }
.alert.ok { background: rgba(95,154,110,.12); border-color: var(--ok); color: #cdeed4; }
.day-label { font-size: 13px; color: var(--gold); margin: 10px 0 4px; min-height: 1em; }
.slots-hint { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.slots-panel { height: 0; overflow: hidden; transition: height .3s ease; }
.slots-panel.open { overflow: visible; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.slots.is-leaving { opacity: 0; transition: opacity .2s ease; }
.slot { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--black); color: var(--cream); cursor: pointer; font-weight: 600; font-size: 14px; animation: slotIn .25s ease backwards; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes slotIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.slot[aria-checked="true"] { border-color: var(--gold); background: var(--gold); color: var(--black); }
#bookingDone { text-align: center; padding: 20px 0; }
#bookingDone .ok-mark { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--ok); }
.done-summary { background: var(--black); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 18px 0; text-align: left; }
.done-summary .row { border-bottom: 1px solid var(--line); }
.done-summary .row:last-child { border-bottom: 0; }

/* ---- Dropdown pickers (servicio / fecha) ---- */
.dd { position: relative; }
.dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--black); color: var(--cream); font-size: 15px; font-family: var(--sans); cursor: pointer; text-align: left; }
.dd-btn.is-placeholder { color: var(--muted); }
.dd-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.dd-chev { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); flex-shrink: 0; }
.dd-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.5); z-index: 30; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s ease, transform .15s ease, visibility .15s ease; }
.dd.open .dd-pop { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-list { list-style: none; margin: 0; padding: 6px; max-height: 240px; overflow-y: auto; }
.dd-opt { padding: 10px 12px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.dd-opt.is-active, .dd-opt:hover { background: rgba(201,162,75,.14); }
.dd-opt[aria-selected="true"] { color: var(--gold); font-weight: 700; }

.dd-pop-cal { padding: 14px; width: min(320px, 90vw); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-weight: 700; font-family: var(--serif); text-transform: capitalize; }
.cal-nav { background: none; border: 0; color: var(--cream); cursor: pointer; padding: 4px; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-nav svg { width: 18px; height: 18px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.cal-grid { display: flex; flex-direction: column; gap: 2px; }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day, .cal-empty { aspect-ratio: 1; display: grid; place-items: center; border-radius: 7px; font-size: 13px; }
.cal-day { background: none; border: 0; color: var(--cream); cursor: pointer; }
.cal-day:hover { background: rgba(201,162,75,.14); }
.cal-day[aria-disabled="true"] { color: var(--line); cursor: default; pointer-events: none; }
.cal-day.is-today { border: 1px solid var(--gold); }
.cal-day.is-selected { background: var(--gold); color: var(--black); font-weight: 700; }
.cal-swap { animation: calFade .18s ease; }
@keyframes calFade { from { opacity: 0; } to { opacity: 1; } }

/* ---- FAQ / reseñas ---- */
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.review-card blockquote { margin: 10px 0; color: var(--cream); }
.review-card figcaption { color: var(--gold); font-weight: 700; font-size: 14px; }
.stars { color: var(--line); font-size: 16px; letter-spacing: 2px; }
.stars .on, .star.on { color: var(--gold); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; margin-bottom: 48px; }
.rate-stars { display: flex; gap: 6px; font-size: 26px; }
.rate-star { background: none; border: 0; color: var(--line); cursor: pointer; padding: 0; line-height: 1; }
.rate-star.on { color: var(--gold); }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-grid a { text-decoration: none; }
.social-row { display: flex; gap: 14px; margin-top: 10px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--cream); }
.social-row a:hover { border-color: var(--gold); color: var(--gold); }
.social-row svg { width: 18px; height: 18px; }
.copy { color: var(--muted); font-size: 13px; margin-top: 28px; text-align: center; }

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .form-card { padding: 22px; }
}
