/* ===== Royal Dynasty — estilos base y sitio público ===== */
:root {
  --gold: #c9a227;
  --gold-2: #e6c65c;
  --bg: #0d0d0f;
  --bg-2: #151518;
  --bg-3: #1d1d22;
  --line: #2a2a31;
  --text: #f2efe8;
  --muted: #a39f97;
  --danger: #e5484d;
  --ok: #3dbb7a;
  --info: #4c8dff;
  --warn: #e0a028;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Cinzel', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; }
h1, h2 { font-family: var(--display); letter-spacing: .04em; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; color: var(--gold); margin: 0 0 .6rem; font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent; font-weight: 600; cursor: pointer; transition: transform .15s, background .2s, border-color .2s, opacity .2s; background: var(--bg-3); }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #15120a; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .25); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* Barra superior */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: .8rem clamp(1rem, 4vw, 3rem); transition: background .25s, box-shadow .25s; }
.topbar.scrolled { background: rgba(13, 13, 15, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo { height: 40px; width: auto; }
.brand-name { font-family: var(--display); font-weight: 700; letter-spacing: .08em; }
.nav { display: flex; align-items: center; gap: 1.6rem; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--gold-2); }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 7rem 1.25rem 4rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 20%, #2a2412 0%, var(--bg) 70%); background-size: cover; background-position: center; }
.hero-bg.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(13, 13, 15, .85) 80%, var(--bg)); }
.hero-content { position: relative; max-width: 760px; }
.hero-logo { max-height: 140px; width: auto; margin: 0 auto 1.4rem; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .6)); }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.2rem); background: linear-gradient(180deg, #fff6d6, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #d9d4c7; margin: 0 0 2rem; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.socials { display: flex; gap: .6rem; justify-content: center; margin-top: 2rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); transition: .2s; }
.socials a:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }

/* Secciones */
.section { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 3rem); max-width: 1180px; margin: 0 auto; }
.section-alt { max-width: none; background: var(--bg-2); border-block: 1px solid var(--line); }
.section-alt > * { max-width: 1180px; margin-inline: auto; }
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(2rem, 5vw, 2.8rem); }

/* Servicios */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.service-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; transition: border-color .2s, transform .2s; }
.service-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.service-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.service-card h3 { font-size: 1.1rem; margin: 0; }
.price { color: var(--gold-2); font-weight: 700; white-space: nowrap; }
.meta { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .88rem; }
.meta svg { width: 16px; height: 16px; }
.service-card p { margin: 0; color: var(--muted); font-size: .94rem; flex: 1; }

/* Equipo */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; }
.team-card { text-align: center; }
.avatar { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 1rem; object-fit: cover; border: 2px solid var(--gold); background: var(--bg-3); display: grid; place-items: center; color: var(--gold); overflow: hidden; }
.avatar svg { width: 56px; height: 56px; }
.team-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.team-card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Reserva */
.booking { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.6rem; align-items: start; }
.booking > *, .steps > .step { min-width: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.step h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; margin-bottom: 1rem; }
.num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--gold); color: var(--gold-2); font-size: .85rem; }
.step.done .num { background: var(--gold); color: #15120a; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.choice { text-align: left; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; cursor: pointer; display: flex; flex-direction: column; gap: .2rem; transition: .15s; }
.choice:hover { border-color: #5a5030; }
.choice[aria-checked="true"] { border-color: var(--gold); background: #231f12; box-shadow: inset 0 0 0 1px var(--gold); }
.choice strong { font-weight: 600; }
.choice small { color: var(--muted); }
.choice.with-avatar { flex-direction: row; align-items: center; gap: .75rem; }
.choice .mini-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg); display: grid; place-items: center; color: var(--gold); flex: none; }
.choice .mini-avatar svg { width: 20px; height: 20px; }
.date-strip { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x mandatory; }
.date-chip { flex: none; scroll-snap-align: start; width: 68px; padding: .6rem 0; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); cursor: pointer; text-align: center; display: grid; gap: .1rem; }
.date-chip .dow { font-size: .7rem; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
.date-chip .day { font-size: 1.3rem; font-weight: 700; }
.date-chip .mon { font-size: .72rem; color: var(--muted); }
.date-chip[aria-checked="true"] { border-color: var(--gold); background: #231f12; box-shadow: inset 0 0 0 1px var(--gold); }
.date-chip:disabled { opacity: .3; cursor: not-allowed; text-decoration: line-through; }
.slots { display: flex; flex-wrap: wrap; gap: .5rem; }
.slot { padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-3); cursor: pointer; font-variant-numeric: tabular-nums; }
.slot[aria-checked="true"] { background: var(--gold); color: #15120a; border-color: var(--gold); font-weight: 700; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.fields label, .field { display: grid; gap: .35rem; font-size: .9rem; color: var(--muted); }
.fields .full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem; color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.summary { position: sticky; top: 88px; background: var(--bg-2); border: 1px solid var(--gold); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.summary dl, .done-details { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0 0 1.2rem; }
.summary dt, .done-details dt { color: var(--muted); font-size: .9rem; }
.summary dd, .done-details dd { margin: 0; text-align: right; font-weight: 500; }
.fine { font-size: .8rem; color: var(--muted); margin: .8rem 0 0; text-align: center; }
.form-error { background: rgba(229, 72, 77, .12); border: 1px solid rgba(229, 72, 77, .5); color: #ffb4b6; border-radius: 10px; padding: .7rem .9rem; font-size: .9rem; }
.confirmation { max-width: 560px; margin: 0 auto; text-align: center; background: var(--bg-2); border: 1px solid var(--gold); border-radius: var(--radius); padding: 2.2rem 1.6rem; box-shadow: var(--shadow); }
.confirmation .check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 2rem; background: var(--gold); color: #15120a; }
.done-details { text-align: left; margin: 1.4rem 0; padding: 1rem; background: var(--bg-3); border-radius: 12px; }
.code { font-family: ui-monospace, monospace; letter-spacing: .15em; color: var(--gold-2); }
.done-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* Tienda */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.product { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product-img { aspect-ratio: 1; background: var(--bg-3); display: grid; place-items: center; color: var(--muted); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img svg { width: 48px; height: 48px; }
.product-body { padding: 1rem; display: grid; gap: .35rem; flex: 1; }
.product-body h3 { font-size: 1rem; margin: 0; }
.product-body p { margin: 0; font-size: .88rem; color: var(--muted); }
.product-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .5rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; border: 1px solid; }
.badge.ok { color: var(--ok); border-color: rgba(61, 187, 122, .45); }
.badge.warn { color: var(--warn); border-color: rgba(224, 160, 40, .45); }
.badge.off { color: var(--danger); border-color: rgba(229, 72, 77, .45); }
.product.soldout { opacity: .6; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto .8rem; color: var(--gold); }

/* Footer */
.footer { background: #08080a; border-top: 1px solid var(--line); padding: 3.5rem clamp(1rem, 5vw, 3rem) 1.5rem; }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer h3 { font-family: var(--display); }
.footer h4 { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; }
.footer .socials { justify-content: flex-start; margin-top: 1rem; }
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .92rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.hours li.today { color: var(--text); font-weight: 600; }
.link { color: var(--gold-2); }
.copy { text-align: center; color: var(--muted); font-size: .85rem; margin: 2.5rem 0 0; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: var(--shadow); }
.wa-float svg { width: 30px; height: 30px; }

@media (max-width: 900px) {
  .booking { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 64px 0 auto; flex-direction: column; gap: 0; background: rgba(13, 13, 15, .97); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; transform: translateY(-120%); transition: transform .25s; }
  .nav.open { transform: none; }
  .nav a { padding: .8rem; width: 100%; text-align: center; }
  .topbar { background: rgba(13, 13, 15, .92); }
  .fields { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .product-body { padding: .75rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===== Intro: logotipo con humo ===== */
.brand-logo { height: 42px; width: 42px; border-radius: 50%; object-fit: cover; }
.brand-name { font-family: 'Rye', var(--display); font-weight: 400; letter-spacing: .04em; }
.smoke { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.hero-content { z-index: 2; display: flex; flex-direction: column; align-items: center; }
.emblem { position: relative; width: min(96vw, 620px, 70svh); aspect-ratio: 1; margin: -1rem 0 .4rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 92%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 92%, transparent);
  mask-composite: intersect; }
.emblem img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten; }
.emblem-top { clip-path: inset(0 0 70.5% 0); }
.emblem-bottom { clip-path: inset(54% 0 0 0); }
.emblem-text { clip-path: inset(29.5% 0 46% 0); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.brand-title {
  font-family: 'Rye', var(--display); font-weight: 400; letter-spacing: .03em; line-height: 1.05;
  font-size: clamp(2.3rem, 8.5vw, 4.6rem); margin: 0 0 1.8rem; color: #f6efdc;
  background: linear-gradient(180deg, #fffaf0 0%, #efe3c4 55%, #cdb88a 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; -webkit-text-stroke: 1px rgba(201, 162, 39, .85);
  filter: drop-shadow(0 2px 0 #0b0b0c) drop-shadow(0 0 18px rgba(201, 162, 39, .35));
}
.brand-title .ch { display: inline-block; white-space: pre; }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; transition: opacity .6s .4s; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Estado inicial de la intro (solo mientras body.intro) */
body.intro .topbar, body.intro .wa-float { opacity: 0; pointer-events: none; }
.topbar, .wa-float { transition: opacity .8s ease; }
body.intro .emblem-frame { opacity: 0; filter: blur(16px) brightness(1.6); transform: scale(1.08); }
body.intro .emblem-text { clip-path: inset(29.5% 50% 46% 50%); filter: brightness(1.8) sepia(.3); }
body.intro .brand-title .ch { opacity: 0; transform: translateY(.45em) rotateX(75deg); filter: blur(8px); }
body.intro .hero-cta, body.intro .hero .socials, body.intro .scroll-cue { opacity: 0; transform: translateY(18px); pointer-events: none; }
.emblem-frame { transition: opacity 1.5s ease .2s, filter 1.7s ease .2s, transform 1.9s cubic-bezier(.2, .7, .2, 1) .2s; }
.emblem-text { transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1) 1.1s, filter 1.4s ease 1.8s; }
.brand-title .ch { transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1), filter .6s ease; transition-delay: calc(1.75s + var(--i) * 55ms); }
.hero-cta, .hero .socials { transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
body:not(.intro) .hero-cta, body:not(.intro) .hero .socials { transition-delay: 0s; }
body.intro.play .emblem-frame { opacity: 1; filter: none; transform: none; }
body.intro.play .emblem-text { clip-path: inset(29.5% 0 46% 0); filter: none; }
body.intro.play .brand-title .ch { opacity: 1; transform: none; filter: none; }

/* ===== Transiciones de secciones al hacer scroll ===== */
.fx > * { transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.fx:not(.in) > * { opacity: 0; transform: translateY(46px); }
.fx.in > *:nth-child(2) { transition-delay: .08s; }
.fx.in > *:nth-child(3) { transition-delay: .16s; }
.fx-leave { will-change: opacity, transform; opacity: var(--leave, 1);
  transform: translateY(calc((1 - var(--leave, 1)) * -48px)) scale(calc(.95 + var(--leave, 1) * .05)); transform-origin: 50% 0; }

@media (prefers-reduced-motion: reduce) {
  .fx:not(.in) > * { opacity: 1; transform: none; }
  .fx-leave { opacity: 1; transform: none; }
  .scroll-cue span { animation: none; }
}
.footer h3 { font-family: 'Rye', var(--display); font-weight: 400; }

/* Botón para instalar el sitio como app */
.install { margin-top: 1.2rem; display: grid; gap: .5rem; justify-items: start; }
.install .small { font-size: .85rem; max-width: 34ch; margin: 0; }
.install-link { color: var(--gold-2); }
.install-done { margin: .8rem 0 0; color: var(--muted); }
.install-done .link { background: none; border: 0; padding: 0; color: var(--gold-2); font: inherit; text-decoration: underline; cursor: pointer; }
.ig-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .72); display: grid; place-items: end center; padding: 1rem; animation: igfade .2s ease; }
@media (min-width: 640px) { .ig-overlay { place-items: center; } }
.ig-card { width: min(100%, 420px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; text-align: center; display: grid; gap: .8rem; }
.ig-card h3 { margin: 0; font-family: 'Rye', var(--display); font-weight: 400; font-size: 1.4rem; }
.ig-card p { margin: 0; }
.ig-logo { width: 72px; height: 72px; border-radius: 16px; margin: 0 auto; }
.ig-steps { list-style: none; padding: 0; margin: .4rem 0; display: grid; gap: .7rem; text-align: left; }
.ig-steps li { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.5; }
.ig-steps .num { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #15120a; font-weight: 700; font-size: .85rem; }
.ig-ico { display: inline-flex; vertical-align: -4px; color: var(--gold-2); }
@keyframes igfade { from { opacity: 0; } }
