/* ==========================================================================
   CARTA MAGNA — Reserva de mesa
   ==========================================================================
   The inner sections that live under the opening scene. One section, five
   capability cards — floor plan, reservation board, online form, opening
   hours and guest panel — each drawn as its own miniature UI in pure
   HTML/CSS, so the page needs no screenshots and stays sharp on every
   screen.

   It reuses the marketing tokens (styles.css) and the scene field
   (escena.css) and only adds the layer it needs.
   ========================================================================== */

/* The shared shell matches the scene width, so the cards line up with the
   poster above them. */
.rz-page .shell {
  max-width: var(--es-shell);
}

/* --------------------------------------------------------------------------
   Features — one heading, five cards
   -------------------------------------------------------------------------- */
.rz-features {
  position: relative;
  z-index: 3;
  padding-block: clamp(48px, 8vw, 104px) clamp(56px, 9vw, 120px);
}

.rz-features__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  text-align: center;
}
.rz-features__head .eyebrow {
  color: var(--magna-600);
}
.rz-features__title {
  margin: 0;
  font-family: "Anton", var(--font-ui);
  font-weight: 400;
  /* Same poster size as the home page <h3> rows (.home-row__title). */
  font-size: clamp(2.2rem, 1.2rem + 4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--title-b);
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Section titles — the home page poster treatment
   --------------------------------------------------------------------------
   The two display headings borrow the home page's voice: Anton, set in caps,
   with every word cycling the Carta digital tones (Rojo Magna → Mar de Tarde
   → Terracota). paintTitles() in reservas.js wraps each word in a .tw-- span;
   a <mark> keeps its red band through the rebuild (same idea as
   .home-row__title-mark). With JS off the title keeps the single tone above
   and the mark still reads as a highlight. */
.rz-title .tw--magna {
  color: var(--title-a);
}
.rz-title .tw--mar {
  color: var(--title-b);
}
.rz-title .tw--terracota {
  color: var(--title-c);
}
/* A marked phrase reads as selected text: the page red under cream type. The
   band is painted short and centred on the line, not as the whole inline box
   (Anton's box is taller than the tight 0.98 line-height). */
.rz-title-mark {
  background-color: transparent;
  background-image: linear-gradient(var(--magna-600), var(--magna-600));
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 100% 1.15em;
  color: var(--surface-light);
}
.rz-title-mark .tw {
  color: inherit;
}
.rz-features__lede {
  margin: 0;
  max-width: 62ch;
  font-size: var(--fs-body-l);
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.rz-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* One capability. The first two run wide (a 6/6 top row) and the last three
   share the bottom row (4/4/4), so the five points read as a bento rather
   than a plain list. */
.rz-feature {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 26px);
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface-light) 88%, transparent);
  box-shadow: var(--sh-1);
  /* Revealed from reservas.js; the delay is authored per card in the markup. */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms var(--ease-imperio) var(--rz-delay, 0ms),
    transform 720ms var(--ease-imperio) var(--rz-delay, 0ms), box-shadow 360ms var(--ease-ola),
    border-color 360ms var(--ease-ola);
}
.rz-feature:nth-child(1),
.rz-feature:nth-child(2) {
  grid-column: span 6;
}
.rz-feature.is-in {
  opacity: 1;
  transform: none;
}
.rz-feature:hover {
  border-color: var(--border-light-strong);
  box-shadow: var(--sh-3);
}

.rz-feature__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rz-feature__num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-inscription);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--magna-600);
}
.rz-feature__num::after {
  content: "";
  width: 26px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.5;
}
.rz-feature__title {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(1.12rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--text-strong);
}
.rz-feature__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   The miniature UI — one shared stage per card
   -------------------------------------------------------------------------- */
.rz-mock {
  position: relative;
  display: block;
  height: clamp(180px, 20vw, 232px);
  padding: 16px;
  border: 1px solid rgba(78, 51, 34, 0.12);
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 196, 107, 0.18), transparent 68%),
    linear-gradient(180deg, #fffaf2, #f5e8d6);
  overflow: hidden;
}
/* The two wide cards get a taller stage so the top row keeps its weight. */
.rz-feature:nth-child(1) .rz-mock,
.rz-feature:nth-child(2) .rz-mock {
  height: clamp(200px, 22vw, 264px);
}

/* --- 01 · Floor plan ----------------------------------------------------- */
.rz-mock--plan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rz-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 12px 12px;
  border: 1.5px dashed rgba(158, 31, 34, 0.28);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.42);
}
.rz-zone__name {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magna-600);
}
.rz-tables {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 7px;
}
.rz-table {
  display: block;
  border-radius: 7px;
  background: color-mix(in srgb, var(--mar) 26%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mar) 50%, transparent);
}
.rz-table--2 {
  width: 22px;
  height: 22px;
}
.rz-table--4 {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.rz-table--6 {
  width: 40px;
  height: 26px;
  border-radius: 9px;
}
.rz-table--free {
  background: color-mix(in srgb, var(--olivo) 26%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--olivo) 50%, transparent);
}

/* --- 02 · Reservation board (Kanban) ------------------------------------ */
.rz-mock--kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rz-kan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: var(--r-sm);
  background: rgba(78, 51, 34, 0.045);
}
.rz-kan__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.rz-kan__title::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mar);
}
.rz-kan--confirm .rz-kan__title::before {
  background: var(--olivo);
}
.rz-kan--seated .rz-kan__title::before {
  background: var(--magna-600);
}
.rz-kan__card {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 8px;
  border-radius: 8px;
  border-left: 3px solid var(--mar);
  background: #fff;
  box-shadow: var(--sh-1);
}
.rz-kan--confirm .rz-kan__card {
  border-left-color: var(--olivo);
}
.rz-kan--seated .rz-kan__card {
  border-left-color: var(--magna-600);
}
.rz-kan__card b {
  font-size: 0.72rem;
  color: var(--text-strong);
}
.rz-kan__card span {
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* --- 03 · Online booking form ------------------------------------------- */
.rz-mock--form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.rz-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(78, 51, 34, 0.12);
  border-radius: var(--r-sm);
  background: #fff;
  box-shadow: var(--sh-1);
}
.rz-field__label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.rz-field__value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-strong);
}
.rz-form__cta {
  display: block;
  margin-top: 2px;
  padding: 10px;
  border-radius: var(--r-pill);
  background: var(--magna-600);
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
}
.rz-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.rz-steps i {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: rgba(78, 51, 34, 0.16);
}
.rz-steps i.is-on {
  background: var(--magna-600);
}

/* --- 04 · Opening hours -------------------------------------------------- */
.rz-mock--hours {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.rz-hours__legend {
  display: flex;
  gap: 16px;
  font-size: 0.62rem;
  color: var(--text-muted);
}
.rz-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 2px;
}
.rz-dot--food {
  background: color-mix(in srgb, var(--miel) 78%, #fff);
}
.rz-dot--dinner {
  background: color-mix(in srgb, var(--mar) 60%, #fff);
}
.rz-hours__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.rz-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.rz-day > span {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
}
.rz-slot {
  display: block;
  width: 100%;
  height: 14px;
  border-radius: 4px;
}
.rz-slot--food {
  background: color-mix(in srgb, var(--miel) 72%, #fff);
}
.rz-slot--dinner {
  background: color-mix(in srgb, var(--mar) 58%, #fff);
}
.rz-day.is-closed .rz-slot {
  background: rgba(78, 51, 34, 0.08);
}

/* --- 05 · Guest panel ---------------------------------------------------- */
.rz-mock--client {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.rz-client__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rz-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--magna-600) 14%, #fff);
  color: var(--magna-700);
  font-size: 0.8rem;
  font-weight: 700;
}
.rz-client__id {
  display: flex;
  flex-direction: column;
  margin-right: auto;
}
.rz-client__id b {
  font-size: 0.9rem;
  color: var(--text-strong);
}
.rz-client__id span {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.rz-tag {
  padding: 4px 8px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--olivo) 20%, #fff);
  color: var(--olivo-900);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rz-client__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rz-client__meta span {
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: rgba(78, 51, 34, 0.07);
  font-size: 0.64rem;
  color: var(--text);
}
.rz-client__note {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--miel);
  border-radius: var(--r-sm);
  background: rgba(255, 196, 107, 0.16);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Pricing — one plan, one price
   --------------------------------------------------------------------------
   A single card: the price (and CTA) on one side, the full feature checklist
   as a table on the other. The whole offer depends on an active Carta digital
   subscription, so that condition is called out above the card and repeated
   next to the price. */
.rz-pricing {
  position: relative;
  z-index: 3;
  padding-block: clamp(48px, 8vw, 104px);
  border-top: 1px solid rgba(78, 51, 34, 0.1);
}
.rz-pricing__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto clamp(26px, 3.6vw, 42px);
  text-align: center;
}
.rz-pricing__head .eyebrow {
  color: var(--magna-600);
}
.rz-pricing__title {
  margin: 0;
  font-family: "Anton", var(--font-ui);
  font-weight: 400;
  /* Same poster size as the home page <h3> rows (.home-row__title). */
  font-size: clamp(2.2rem, 1.2rem + 4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--title-b);
  text-wrap: balance;
}
.rz-pricing__lede {
  margin: 0;
  max-width: 60ch;
  font-size: var(--fs-body-l);
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* The subscription requirement — a warm callout, impossible to miss. */
.rz-pricing__requires {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto clamp(26px, 3.6vw, 42px);
  padding: 13px 20px;
  border: 1px solid color-mix(in srgb, var(--miel) 62%, var(--border-light));
  border-radius: var(--r-lg);
  background: rgba(255, 196, 107, 0.18);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-strong);
  text-align: left;
}
.rz-pricing__requires-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--magna-600);
}
.rz-pricing__requires a {
  font-weight: 600;
  color: var(--magna-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rz-plan {
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(24px, 3.2vw, 44px);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface-light) 90%, transparent);
  box-shadow: var(--sh-3);
}
/* The price is a full-width band on top of the card, not a narrow column:
   the checklist below is long, so a side-by-side split left a tall empty gap
   under the price. */
.rz-plan__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 40px);
  padding-bottom: clamp(20px, 2.6vw, 30px);
  border-bottom: 1px solid rgba(78, 51, 34, 0.16);
}
.rz-plan__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.rz-plan__flag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--magna-600);
  color: #fff;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rz-plan__name {
  margin: 12px 0 0;
  font-family: var(--font-inscription);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magna-600);
}
.rz-plan__note {
  margin: 8px 0 0;
  font-size: var(--fs-caption);
  color: var(--text-muted);
}
.rz-plan__buy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 34px);
}
.rz-plan__price {
  margin: 0;
  font-family: "Anton", var(--font-ui);
  font-size: clamp(2.8rem, 4.4vw, 4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--magna-600);
}
.rz-plan__price small {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.rz-plan__cta {
  justify-content: center;
}
.rz-plan__features {
  padding-top: clamp(20px, 2.6vw, 30px);
}
.rz-plan__subtitle {
  margin: 0 0 14px;
  font-family: var(--font-inscription);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magna-600);
}
.rz-plan__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: var(--text);
}
/* The checklist runs in two columns (five items each), filling the width of
   the card instead of leaving a long single file. `grid-auto-flow: column`
   keeps the reading order top-to-bottom down each column. */
.rz-plan__table tbody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  column-gap: clamp(28px, 4vw, 56px);
}
.rz-plan__table tr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(78, 51, 34, 0.12);
}
.rz-plan__table tr:nth-child(1),
.rz-plan__table tr:nth-child(6) {
  border-top: 0;
}
.rz-plan__table th,
.rz-plan__table td {
  padding: 0;
  text-align: left;
  font-weight: 400;
}
.rz-plan__table th {
  color: var(--text-strong);
}
.rz-plan__table td {
  flex: 0 0 auto;
  text-align: right;
}
.rz-plan__table td svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  color: var(--olivo-900);
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */
.rz-final {
  position: relative;
  z-index: 3;
  padding-block: clamp(56px, 8vw, 112px);
  border-top: 1px solid rgba(78, 51, 34, 0.1);
}
.rz-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(820px, 90vw);
  margin-inline: auto;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms var(--ease-imperio), transform 760ms var(--ease-imperio);
}
.rz-final__inner.is-in {
  opacity: 1;
  transform: none;
}
.rz-final .eyebrow {
  color: var(--magna-600);
}
.rz-final__title {
  margin: 0;
  font-family: "Anton", var(--font-ui);
  font-weight: 400;
  /* Same poster size as the home page <h3> rows (.home-row__title). */
  font-size: clamp(2.2rem, 1.2rem + 4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--title-b);
  text-wrap: balance;
}
.rz-final__lede {
  margin: 0;
  max-width: 56ch;
  font-size: var(--fs-body-l);
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}
.rz-final__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
  margin-top: 6px;
}
.rz-final__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--magna-700);
}
.rz-final__link:hover,
.rz-final__link:focus-visible {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive — the bento folds in steps
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .rz-feature,
  .rz-feature:nth-child(1),
  .rz-feature:nth-child(2) {
    grid-column: span 6;
  }
  .rz-feature:nth-child(5) {
    grid-column: span 12;
  }
}
/* Below the tablet the checklist folds to one column and the price band
   stacks; on the narrowest phones the CTA goes full width. */
@media (max-width: 720px) {
  .rz-plan__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .rz-plan__table tbody {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
  }
  .rz-plan__table tr:nth-child(6) {
    border-top: 1px solid rgba(78, 51, 34, 0.12);
  }
}
@media (max-width: 460px) {
  .rz-plan__buy {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 16px;
  }
  .rz-plan__cta {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .rz-feature,
  .rz-feature:nth-child(1),
  .rz-feature:nth-child(2),
  .rz-feature:nth-child(5) {
    grid-column: span 12;
  }
  .rz-mock,
  .rz-feature:nth-child(1) .rz-mock,
  .rz-feature:nth-child(2) .rz-mock {
    height: auto;
    min-height: 200px;
  }
}
/* The mockups are intentionally dense; on the narrowest phones every inner
   box loses a little padding so the three Kanban columns stay on one line
   and the labels never wrap. */
@media (max-width: 480px) {
  .rz-mock {
    padding: 12px;
  }
  .rz-mock--kanban,
  .rz-kan {
    gap: 6px;
  }
  .rz-kan {
    padding: 6px;
  }
  .rz-kan__card {
    padding: 6px;
  }
  .rz-kan__card b {
    font-size: 0.68rem;
  }
  .rz-kan__card span {
    font-size: 0.56rem;
  }
  .rz-field {
    padding: 9px 11px;
  }
  .rz-field__label {
    font-size: 0.6rem;
  }
  .rz-field__value {
    font-size: 0.78rem;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion — no reveal, everything present
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .rz-feature,
  .rz-final__inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
