/* =============================================================================
   MESTRAL — hoja de estilos única.
   Arquetipo: Editorial Dark Warm. Acento latón sobre negro cálido.
   Orden: 1 tokens · 2 reset · 3 utilidades · 4 tipografía · 5 componentes
          6 secciones · 7 efectos · 8 responsive · 9 reduced-motion
   ========================================================================== */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0E0B09;
  --bg-2:      #14100C;
  --bg-3:      #1C1712;
  --bg-4:      #241D16;

  --cream:     #F2EBDA;
  --cream-2:   #D8CDB6;
  --cream-3:   #8B7E68;

  --accent:    #C68B3C;
  --accent-2:  #9A6A2A;
  --gold:      #E3C48A;

  --line:      rgba(242, 235, 218, .12);
  --line-2:    rgba(242, 235, 218, .06);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1200px;
  --gutter: 20px;
  --r: 4px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

/* El atributo `hidden` tiene que ganar siempre: varias clases de esta hoja
   declaran `display`, y sin esto un panel marcado como oculto se vería igual. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  /* Los halos y la malla del hero se salen del ancho a propósito, para que el
     degradado no se corte en seco. Se recorta aquí, en el elemento que manda
     sobre el scroll de la página. `clip` y no `hidden`: hidden rompe sticky. */
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--cream-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;          /* clip, no hidden: hidden rompe position:sticky */
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #0E0B09; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* =============================================================
   3. Utilidades
   ============================================================= */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--cream); color: var(--bg);
  border-radius: var(--r); font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Tipografía
   ============================================================= */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--cream);
  text-wrap: balance;
}

/* Cormorant usa cifras de estilo antiguo por defecto: «18» parece «ı8» y el
   «00» de la anchoa parece «oo». Donde el número es un dato (precios, años,
   totales) forzamos cifras de caja alta para que se lean como números. */
.plato-precio, .opcion-precio, .rango-valor, .calc-total,
.calc-senal strong, .hito-anyo, .plato h3, .horarios td, .horarios th {
  font-variant-numeric: lining-nums tabular-nums;
}

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-3);
}

.kicker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(198, 139, 60, .18);
  animation: latido 3.2s ease-in-out infinite;
}
@keyframes latido {
  0%, 100% { box-shadow: 0 0 0 4px rgba(198, 139, 60, .18); }
  50%      { box-shadow: 0 0 0 9px rgba(198, 139, 60, .04); }
}

.seccion-titulo {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  max-width: 20ch;
  margin-bottom: .6rem;
}

.seccion-lead {
  max-width: 58ch;
  color: var(--cream-3);
  font-size: 1.02rem;
}

/* =============================================================
   5. Componentes
   ============================================================= */

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.8rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-align: center;
  transition: transform .35s var(--ease-out), background-color .35s var(--ease-out),
              color .35s var(--ease-out), border-color .35s var(--ease-out);
}

.btn-solid {
  background: var(--accent);
  color: #150F08;
  border: 1px solid var(--accent);
}
.btn-solid:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: .62rem 1.25rem; font-size: .8rem; }
.btn-block { width: 100%; }

/* ---- Barra de demo ---- */
.demobar {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem var(--gutter);
  background: #1A130A;
  border-bottom: 1px solid rgba(198, 139, 60, .28);
  font-size: .72rem;
  line-height: 1.4;
  color: var(--cream-3);
}
@media (min-width: 720px) { .demobar { font-size: .78rem; gap: .85rem; padding-block: .7rem; } }
.demobar p { margin: 0; max-width: 92ch; }
.demobar strong { color: var(--cream-2); font-weight: 500; }
.demobar-chip {
  flex: none;
  padding: .2rem .6rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---- Splash ---- */
.splash {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .9s var(--ease-out), clip-path 1s var(--ease-out);
  /* Red de seguridad: se va sola a los 4,5 s aunque el JS falle */
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out {
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
}
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
}
.splash-mark {
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3.4rem);
  letter-spacing: .12em;
  color: var(--cream);
  opacity: .9;
  animation: splashPulso 2.4s ease-in-out infinite;
}
@keyframes splashPulso { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(14, 11, 9, .72);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out);
}
@supports (backdrop-filter: blur(14px)) {
  .site-header { background: rgba(14, 11, 9, .55); backdrop-filter: blur(14px) saturate(1.1); }
}
.site-header.is-stuck {
  background: rgba(14, 11, 9, .92);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 70px;
}

.brand { display: inline-flex; align-items: baseline; gap: .55rem; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: .1em;
  color: var(--cream);
}
.brand-chip {
  padding: .1rem .42rem;
  border: 1px solid rgba(198, 139, 60, .5);
  border-radius: 3px;
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-links { display: none; gap: 2rem; font-size: .84rem; letter-spacing: .04em; }
.nav-links a { color: var(--cream-3); transition: color .3s var(--ease-out); position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: none; }

.nav-toggle {
  display: grid; gap: 5px; padding: .6rem .3rem;
}
.nav-toggle-bar { display: block; width: 22px; height: 1px; background: var(--cream); transition: transform .35s var(--ease-out), opacity .3s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child  { transform: translateY(-3px) rotate(-45deg); }

.nav-movil {
  display: grid;
  gap: .2rem;
  padding: .5rem var(--gutter) 1.4rem;
  border-top: 1px solid var(--line-2);
  background: rgba(14, 11, 9, .97);
}
.nav-movil a {
  padding: .8rem 0;
  border-bottom: 1px solid var(--line-2);
  font-size: .95rem;
  color: var(--cream-2);
}
.nav-movil-cta { color: var(--accent) !important; border-bottom: 0 !important; font-weight: 500; }

/* ---- Campos de formulario ---- */
.campo { display: grid; gap: .45rem; }
.campo > label, .campo legend {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-3);
  padding: 0;
}
.campo-opt { text-transform: none; letter-spacing: 0; opacity: .7; }
fieldset.campo { border: 0; padding: 0; margin: 0; }

.campo input[type="text"],
.campo input[type="email"],
.campo input[type="tel"],
.campo input[type="date"],
.campo input[type="number"],
.campo select,
.campo textarea,
.rr-campo input,
.rr-campo select {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--cream);
  font-size: .95rem;
  font-weight: 300;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.campo textarea { resize: vertical; min-height: 90px; }

.campo input:focus, .campo select:focus, .campo textarea:focus,
.rr-campo input:focus, .rr-campo select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 139, 60, .16);
}
.campo input::placeholder, .campo textarea::placeholder { color: rgba(139, 126, 104, .75); }

/* El selector de fecha nativo es blanco en dark: lo invertimos */
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.75) sepia(.4); cursor: pointer; }

.campo-ayuda { font-size: .8rem; color: var(--cream-3); margin: 0; }
.campo-error { min-height: 1.1em; font-size: .78rem; color: #E0806A; }
.campo--mal input, .campo--mal select, .campo--mal textarea { border-color: #E0806A; }

.campo-fila { display: grid; gap: 1rem; }

.check-legal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: start;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--cream-3);
}
.check-legal input { margin-top: .28rem; accent-color: var(--accent); width: 16px; height: 16px; }
.check-legal strong { color: var(--cream-2); font-weight: 500; }

.form-estado {
  margin: 0;
  font-size: .9rem;
  color: var(--accent);
  min-height: 1.2em;
}
.form-estado.es-error { color: #E0806A; }

/* =============================================================
   6. Secciones
   ============================================================= */
.seccion {
  position: relative;
  padding-block: 88px;
}
.seccion-cab { margin-bottom: 2.6rem; }

.seccion-halo {
  position: absolute;
  inset: -40% -10% -30% -10%;
  background: radial-gradient(40% 32% at 50% 40%, rgba(198, 139, 60, .16), transparent 72%);
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}
.seccion > .shell { position: relative; z-index: 1; }

/* ---------------------------------------------------------- HERO ---- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  padding-block: 120px 56px;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.06);
}
.hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,11,9,.86) 0%, rgba(14,11,9,.5) 34%, rgba(14,11,9,.93) 88%),
    linear-gradient(95deg, rgba(14,11,9,.8) 0%, rgba(14,11,9,.25) 60%);
}

/* Firma visual: malla de brasa que respira */
.hero-mesh {
  position: absolute;
  inset: -20%;
  z-index: 1;
  background:
    radial-gradient(28% 34% at 18% 78%, rgba(198, 139, 60, .34), transparent 62%),
    radial-gradient(24% 30% at 74% 26%, rgba(154, 106, 42, .26), transparent 66%),
    radial-gradient(30% 26% at 52% 96%, rgba(227, 196, 138, .14), transparent 70%);
  filter: blur(74px);
  opacity: .9;
  animation: brasa 17s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes brasa {
  0%   { transform: translate3d(-2%, 1%, 0) scale(1);    opacity: .78; }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.07); opacity: 1; }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.02); opacity: .84; }
}

.hero-grain {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  opacity: .32;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.hero-inner { position: relative; z-index: 3; width: 100%; }

.hero-title {
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: .98;
  max-width: 15ch;
  margin: 1.1rem 0 1.2rem;
}

.hero-sub {
  max-width: 48ch;
  font-size: 1.04rem;
  color: var(--cream-2);
  margin-bottom: 2.2rem;
}

.hero-meta {
  margin-top: 1.4rem;
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--cream-3);
}

/* Reserva destacada del hero */
.reserva-rapida {
  background: rgba(28, 23, 18, .86);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.4rem;
  max-width: 880px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
@supports (backdrop-filter: blur(12px)) {
  .reserva-rapida { background: rgba(28, 23, 18, .66); backdrop-filter: blur(16px); }
}
.reserva-rapida-t {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.reserva-rapida-form { display: grid; gap: .85rem; }
.rr-campo { display: grid; gap: .4rem; }
.rr-campo > span {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-3);
}
.rr-submit { width: 100%; }
.reserva-rapida-pie {
  margin-top: .95rem;
  font-size: .78rem;
  color: var(--cream-3);
}

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  z-index: 4;
  width: 26px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid; place-items: start center;
  padding-top: 8px;
}
.hero-scroll span {
  width: 3px; height: 7px; border-radius: 999px; background: var(--accent);
  animation: baja 2.1s var(--ease-soft) infinite;
}
@keyframes baja {
  0%   { transform: translateY(0);    opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ---------------------------------------------------------- CASA ---- */
.casa-figura { margin-bottom: 3rem; }
.casa-figura img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
  filter: saturate(.96) contrast(1.04);
}
.casa-figura figcaption {
  margin-top: .8rem;
  font-size: .82rem;
  font-style: italic;
  color: var(--cream-3);
}

.casa-intro {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.38;
  color: var(--cream);
  max-width: 44ch;
  margin-bottom: 3.2rem;
}

.pilares { display: grid; gap: 2rem; margin-bottom: 3.6rem; }
.pilar { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.pilar-num {
  display: block;
  font-family: var(--serif);
  font-size: .9rem;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: .7rem;
}
.pilar h3 { font-size: 1.35rem; margin-bottom: .55rem; }
.pilar p { font-size: .93rem; color: var(--cream-3); }

.hitos { display: grid; gap: 0; border-top: 1px solid var(--line); }
.hito {
  display: grid;
  gap: .4rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-2);
}
.hito-anyo {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}
.hito h4 { font-size: 1.12rem; margin-bottom: .3rem; }
.hito p { font-size: .9rem; color: var(--cream-3); margin: 0; }

/* --------------------------------------------------------- CARTA ---- */
.carta { background: var(--bg-2); border-block: 1px solid var(--line-2); }

.carta-tabs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  overflow-y: hidden;             /* evita heredar el clip vertical */
  padding-bottom: .6rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.carta-tabs::-webkit-scrollbar { display: none; }

.carta-tab {
  flex: none;
  padding: .6rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--cream-3);
  white-space: nowrap;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.carta-tab:hover { color: var(--cream); }
.carta-tab[aria-selected="true"] {
  color: var(--accent);
  border-color: rgba(198, 139, 60, .4);
  background: rgba(198, 139, 60, .08);
}

.carta-panel + .carta-panel { margin-top: 3rem; }   /* sin JS: se apilan */
.js-tabs .carta-panel + .carta-panel { margin-top: 0; }

.carta-nota {
  font-style: italic;
  font-size: .9rem;
  color: var(--cream-3);
  margin-bottom: 1.6rem;
  max-width: 60ch;
}

.platos { display: grid; gap: 0; }
.plato {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-2);
}
.plato h3 { font-size: 1.18rem; margin-bottom: .22rem; }
.plato p { font-size: .88rem; color: var(--cream-3); margin: 0; max-width: 62ch; }
.plato-precio {
  font-family: var(--serif);
  font-size: 1.16rem;
  color: var(--accent);
  white-space: nowrap;
}

.carta-pie {
  margin-top: 2rem;
  font-size: .84rem;
  color: var(--cream-3);
}
.carta-pie strong { color: var(--cream-2); font-weight: 500; }

/* ------------------------------------------------------- GALERÍA ---- */
/* Mosaico. En móvil, seis cuadrados en dos columnas: simple y sin huecos.
   Los tamaños especiales (.g-feature, .g-tall, .g-wide) solo entran en
   pantalla grande, donde las seis piezas tesalan el rectángulo completo. */
.mosaico {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem;
  margin-bottom: 3.6rem;
}
.g-item { overflow: hidden; border-radius: 3px; }
.g-item img {
  width: 100%; height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .9s var(--ease-out), filter .9s var(--ease-out);
}
.g-item:hover img { transform: scale(1.06); filter: saturate(1.16); }

.resenas { display: grid; gap: 1.6rem; }
.resena {
  border-left: 1px solid var(--line);
  padding-left: 1.4rem;
}
.resena p {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.42;
  color: var(--cream);
  margin-bottom: .7rem;
}
.resena footer { font-size: .74rem; letter-spacing: .06em; color: var(--cream-3); }
.resena-demo {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  font-weight: 500;
}

/* ------------------------------------------------------- EVENTOS ---- */
.eventos-figura { margin-bottom: 2.6rem; }
.eventos-figura img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 3px;
}

.espacios { display: grid; gap: 1rem; margin-bottom: 4rem; }
.espacio {
  padding: 1.7rem 1.5rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color .45s var(--ease-out), transform .45s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}
.espacio:hover { border-color: rgba(198, 139, 60, .42); }
.espacio h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.espacio-cap {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}
.espacio > p:last-child { font-size: .92rem; color: var(--cream-3); margin: 0; }

/* --------------------------------------------------- CALCULADORA ---- */
.calc {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.calc-cab {
  padding: 1.8rem 1.5rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.calc-titulo { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: .5rem; }
.calc-sub { font-size: .9rem; color: var(--cream-3); max-width: 62ch; margin: 0; }
.calc-sub strong { color: var(--cream-2); font-weight: 500; }

.calc-grid { display: grid; }
.calc-controles { padding: 1.6rem 1.5rem; display: grid; gap: 1.9rem; }

.rango-fila { display: flex; align-items: center; gap: 1rem; }
.rango-fila input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
  height: 4px;
  cursor: pointer;
}
.rango-valor {
  flex: none;
  min-width: 3.4ch;
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--accent);
  text-align: right;
  line-height: 1;
}

.opciones { display: grid; gap: .55rem; }

.opcion {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .8rem;
  align-items: start;
  padding: .85rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.opcion:hover { border-color: rgba(198, 139, 60, .35); }
.opcion input { margin-top: .3rem; accent-color: var(--accent); width: 15px; height: 15px; }
.opcion.es-activa { border-color: var(--accent); background: rgba(198, 139, 60, .07); }
.opcion.es-bloqueada { opacity: .42; cursor: not-allowed; }

.opcion-nom { display: block; font-size: .95rem; color: var(--cream); }
.opcion-desc { display: block; font-size: .8rem; color: var(--cream-3); margin-top: .15rem; }
.opcion-precio {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent);
  white-space: nowrap;
}
.opcion-aviso { display: block; font-size: .74rem; color: #E0806A; margin-top: .2rem; }

/* Resultado */
.calc-resultado {
  padding: 1.8rem 1.5rem;
  background: var(--bg-4);
  border-top: 1px solid var(--line);
}
.calc-res-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-3);
  margin-bottom: .4rem;
}
.calc-total {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 9vw, 4rem);
  line-height: 1;
  color: var(--cream);
  margin-bottom: .3rem;
}
.calc-moneda { font-size: .45em; color: var(--accent); vertical-align: .55em; }
.calc-pp { font-size: .86rem; color: var(--cream-3); margin-bottom: 1.5rem; }

.calc-desglose {
  display: grid;
  gap: .05rem;
  margin-bottom: 1.3rem;
  border-top: 1px solid var(--line);
}
.calc-linea {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line-2);
  font-size: .87rem;
}
.calc-linea span:first-child { color: var(--cream-3); }
.calc-linea span:last-child { color: var(--cream-2); white-space: nowrap; }
.calc-linea.es-descuento span { color: var(--accent); }

.calc-senal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .9rem 1rem;
  margin-bottom: 1.2rem;
  background: rgba(198, 139, 60, .08);
  border: 1px solid rgba(198, 139, 60, .24);
  border-radius: 4px;
  font-size: .84rem;
  color: var(--cream-3);
}
.calc-senal strong { font-family: var(--serif); font-size: 1.3rem; color: var(--accent); }

.calc-aviso {
  margin-top: .9rem;
  font-size: .76rem;
  line-height: 1.5;
  color: var(--cream-3);
}

/* ---------------------------------------------------------- DÓNDE ---- */
.donde { background: var(--bg-2); border-block: 1px solid var(--line-2); }
.donde-grid { display: grid; gap: 2.6rem; }

.donde-dir {
  font-style: normal;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--cream-2);
  margin-block: 1.4rem 2rem;
}
.donde-dir a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color .3s; }
.donde-dir a:hover { border-bottom-color: var(--accent); }

.horarios { width: 100%; border-collapse: collapse; font-size: .9rem; }
.horarios th, .horarios td { text-align: left; padding: .75rem 0; border-bottom: 1px solid var(--line-2); }
.horarios thead th {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom-color: var(--line);
}
.horarios tbody th { font-weight: 400; color: var(--cream-2); }
.horarios td { color: var(--cream-3); }
.horarios .cerrado { color: rgba(139, 126, 104, .55); font-style: italic; }

.donde-nota { margin-top: 1.4rem; font-size: .85rem; color: var(--cream-3); }

.donde-mapa { position: relative; }
.donde-mapa iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 4px;
  filter: grayscale(.55) invert(.9) hue-rotate(180deg) brightness(.92) contrast(.95);
}
.donde-mapa-link {
  display: inline-block;
  margin-top: .8rem;
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}
.donde-mapa-link:hover { border-bottom-color: var(--accent); }

/* -------------------------------------------------------- RESERVAR ---- */
.reservar-grid { display: grid; gap: 2.8rem; }

.reservar-puntos { display: grid; gap: .7rem; margin-top: 1.7rem; }
.reservar-puntos li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .9rem;
  color: var(--cream-3);
}
.reservar-puntos li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 6px; height: 1px; background: var(--accent);
}

.form-reserva {
  display: grid;
  gap: 1.15rem;
  padding: 1.8rem 1.5rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.calc-adjunto {
  padding: .95rem 1.1rem;
  background: rgba(198, 139, 60, .08);
  border: 1px solid rgba(198, 139, 60, .26);
  border-radius: 4px;
}
.calc-adjunto-t {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .35rem;
}
.calc-adjunto-detalle { font-size: .86rem; color: var(--cream-2); margin: 0; }

/* Estado de éxito de la reserva */
.reserva-ok { display: grid; gap: 1rem; padding: 2.4rem 1.5rem; text-align: center; }
.reserva-ok-marca { width: 54px; height: 54px; margin: 0 auto; color: var(--accent); }
.reserva-ok-marca circle, .reserva-ok-marca path {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: dibuja 1.1s var(--ease-out) forwards;
}
.reserva-ok-marca path { animation-delay: .45s; }
@keyframes dibuja { to { stroke-dashoffset: 0; } }
.reserva-ok h3 { font-size: 1.7rem; }
.reserva-ok p { font-size: .92rem; color: var(--cream-3); max-width: 48ch; margin-inline: auto; }

/* ---------------------------------------------------------- FOOTER ---- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 2rem; }
.footer-grid { display: grid; gap: 1.8rem; }
.footer-marca { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .1em; color: var(--cream); }
.footer-claim { font-size: .84rem; color: var(--cream-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .84rem; }
.footer-links a { color: var(--cream-3); transition: color .3s; }
.footer-links a:hover { color: var(--accent); }

.footer-legal {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-2);
}
.footer-legal p { font-size: .76rem; line-height: 1.6; color: var(--cream-3); max-width: 90ch; }
.footer-legal strong { color: var(--cream-2); font-weight: 500; }
.footer-legal a { color: var(--accent); }

/* ---------------------------------------------------------- CHAT ---- */
.chat-burbuja {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 850;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.25rem;
  background: var(--accent);
  color: #150F08;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 500;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .85);
  transition: transform .4s var(--ease-out), background-color .4s var(--ease-out);
}
.chat-burbuja:hover { transform: translateY(-3px); background: var(--gold); }
/* En móvil se queda en círculo: con texto tapaba el formulario del hero. */
@media (max-width: 539px) {
  .chat-burbuja { padding: .85rem; border-radius: 50%; }
  .chat-burbuja-texto { display: none; }
}
.chat-burbuja.is-oculta { opacity: 0; pointer-events: none; transform: translateY(12px); }
.chat-burbuja-icono { width: 20px; height: 20px; }
.chat-burbuja-icono svg { width: 100%; height: 100%; }

.chat-panel {
  position: fixed;
  right: 0; bottom: 0; left: 0;
  z-index: 860;
  display: flex;
  flex-direction: column;
  max-height: 86svh;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }

.chat-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.chat-nom { font-family: var(--serif); font-size: 1.15rem; color: var(--cream); }
/* Indicador de modo del asistente. Tiene que leerse de un vistazo mientras
   se presenta: verde = IA de verdad, ámbar = respuestas preparadas. */
.chat-est {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .74rem;
  color: var(--accent);
}
.chat-est::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.chat-est.es-ia { color: #8FCf9A; }
.chat-est.es-demo { color: var(--accent); }
.chat-est.es-mal { color: #E0806A; }

/* Nota dentro del hilo la primera vez que responde el guion. */
.chat-nota-demo {
  margin: .2rem 0;
  padding: .6rem .8rem;
  border: 1px dashed rgba(198, 139, 60, .4);
  border-radius: 4px;
  background: rgba(198, 139, 60, .06);
  font-size: .76rem;
  line-height: 1.45;
  color: var(--cream-3);
}
.chat-cerrar { width: 32px; height: 32px; display: grid; place-items: center; color: var(--cream-3); border-radius: 50%; }
.chat-cerrar:hover { color: var(--cream); background: rgba(242, 235, 218, .06); }
.chat-cerrar svg { width: 17px; height: 17px; }

.chat-hilo {
  flex: 1;
  min-height: 180px;
  overflow-y: auto;
  padding: 1.1rem;
  display: grid;
  gap: .8rem;
  align-content: start;
}
.chat-msg { max-width: 88%; font-size: .91rem; line-height: 1.55; }
.chat-msg p { margin: 0; }
.chat-msg p + p { margin-top: .5rem; }
.chat-msg-bot {
  justify-self: start;
  padding: .8rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 4px 12px 12px 12px;
  color: var(--cream-2);
}
.chat-msg-yo {
  justify-self: end;
  padding: .8rem 1rem;
  background: rgba(198, 139, 60, .16);
  border: 1px solid rgba(198, 139, 60, .3);
  border-radius: 12px 4px 12px 12px;
  color: var(--cream);
}
.chat-msg-error { border-color: rgba(224, 128, 106, .4); color: #E9B3A4; }

.chat-puntos { display: inline-flex; gap: 4px; }
.chat-puntos i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--cream-3);
  animation: puntitos 1.3s ease-in-out infinite;
}
.chat-puntos i:nth-child(2) { animation-delay: .18s; }
.chat-puntos i:nth-child(3) { animation-delay: .36s; }
@keyframes puntitos { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.chat-sugerencias {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0 1.1rem .8rem;
}
.chat-sug {
  padding: .45rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .78rem;
  color: var(--cream-3);
  transition: border-color .3s, color .3s;
}
.chat-sug:hover { border-color: var(--accent); color: var(--accent); }

.chat-form {
  display: flex;
  gap: .5rem;
  padding: .8rem 1.1rem;
  border-top: 1px solid var(--line);
}
.chat-form input {
  flex: 1;
  padding: .75rem .95rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
}
.chat-form input:focus { outline: none; border-color: var(--accent); }
.chat-form button {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #150F08;
  border-radius: 50%;
  transition: background-color .3s;
}
.chat-form button:hover { background: var(--gold); }
.chat-form button svg { width: 18px; height: 18px; }
.chat-form button:disabled { opacity: .5; cursor: not-allowed; }

.chat-pie {
  padding: 0 1.1rem 1rem;
  font-size: .72rem;
  line-height: 1.45;
  color: var(--cream-3);
}

/* =============================================================
   7. Efectos
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .95s var(--ease-out), transform .95s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Defensa: sin JS nada puede quedarse invisible */
.no-js .reveal { opacity: 1; transform: none; }

/* Escalonado suave dentro de un mismo grupo */
.pilares .reveal:nth-child(2), .espacios .reveal:nth-child(2) { transition-delay: .09s; }
.pilares .reveal:nth-child(3), .espacios .reveal:nth-child(3) { transition-delay: .18s; }
.mosaico .reveal:nth-child(2) { transition-delay: .06s; }
.mosaico .reveal:nth-child(3) { transition-delay: .12s; }
.mosaico .reveal:nth-child(4) { transition-delay: .18s; }
.mosaico .reveal:nth-child(5) { transition-delay: .24s; }
.mosaico .reveal:nth-child(6) { transition-delay: .3s; }
.hero .reveal:nth-child(2) { transition-delay: .08s; }
.hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; }
.hero .reveal:nth-child(5) { transition-delay: .32s; }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .reserva-rapida-form { grid-template-columns: repeat(2, 1fr); }
  .rr-submit { grid-column: 1 / -1; }
  .campo-fila { grid-template-columns: repeat(2, 1fr); }
  .mosaico { gap: .9rem; }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .seccion { padding-block: 112px; }
  .pilares { grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
  .espacios { grid-template-columns: repeat(3, 1fr); }
  .hito { grid-template-columns: 7rem 1fr; gap: 1.6rem; align-items: start; }
  .campo-fila-3 { grid-template-columns: repeat(3, 1fr); }
  .resenas { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .calc-cab, .calc-controles, .calc-resultado { padding-inline: 2rem; }
  .form-reserva { padding: 2.2rem 2rem; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: end; }

  .chat-panel {
    right: 20px; bottom: 20px; left: auto;
    width: 400px;
    max-height: 640px;
    border-radius: 12px;
  }
  .chat-burbuja { right: 24px; bottom: 24px; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-movil { display: none !important; }

  .hero { padding-block: 150px 70px; }
  .reserva-rapida-form { grid-template-columns: 1.2fr 1fr 1fr auto; align-items: end; }
  .rr-submit { grid-column: auto; width: auto; }

  .donde-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
  .reservar-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; }

  .calc-grid { grid-template-columns: 1.25fr 1fr; align-items: start; }
  .calc-resultado {
    border-top: 0;
    border-left: 1px solid var(--line);
    /* El total acompaña mientras se cambian las opciones de abajo, y de paso
       evita el hueco que dejaría una columna mucho más corta que la otra. */
    position: sticky;
    top: 88px;
  }

  /* Cuatro columnas y tres filas de alto fijo. Las seis piezas encajan así,
     sin una sola celda vacía:
         ┌───────────┬─────┬─────┐
         │  feature  │ tall│ gal4│   filas 1–2
         │   (2×2)   │(1×2)├─────┤
         │           │     │ gal3│
         ├───────────┴─────┴─────┤
         │   wide    │    wide   │   fila 3
         └───────────┴───────────┘                                        */
  .mosaico {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(130px, 13vw, 190px);
  }
  .g-item img { height: 100%; aspect-ratio: auto; }
  .g-feature { grid-column: span 2; grid-row: span 2; }
  .g-tall    { grid-row: span 2; }
  .g-wide    { grid-column: span 2; }
}

@media (min-width: 1280px) {
  .seccion { padding-block: 132px; }
  .casa-texto { display: grid; grid-template-columns: 1fr; }
}

/* =============================================================
   9. Reduced-motion — solo lo intrusivo
   Windows trae esta preferencia activada por defecto en muchas
   instalaciones: si aquí apagamos todo, la web se ve muerta.
   Se desactivan los bucles largos y el desplazamiento suave.
   Las micro-interacciones (hover, fade, tilt) se mantienen.
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation: none; }
  .kicker-dot { animation: none; }
  .hero-scroll span { animation: none; opacity: .8; }
  .splash-mark { animation: none; }
  .reserva-ok-marca circle, .reserva-ok-marca path { animation: none; stroke-dashoffset: 0; }
}
