/* ===== Royal Dinasty — 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; } }
