/* ==========================================================================
   CARTA MAGNA — Scene prototype ("head centred")
   ==========================================================================
   New art direction: one character (transparent head video) owns the top of
   the stage and the claim runs behind it as a giant poster that hangs half
   way out from under the video. Everything else orbits that pair:

   · the head's silhouette eats the top half of the type; the bottom half of
     the claim reads below the video,
   · the body copy arrives as frosted glass notes on the shoulders of the
     frame and is revealed by a clip/defocus wipe,
   · the whole composition answers to the pointer with a small parallax,
     so the layers feel genuinely stacked instead of printed on top.

   The scene reuses the marketing site tokens (styles.css) and only adds the
   layer it needs. Everything enters when `.es-scene.is-ready` lands (set by
   escena.js once the video is decoding).
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   Light nav (the page is a light field, so the shared nav is re-skinned;
   same rules as home-chrome.css)
   -------------------------------------------------------------------------- */
.nav--light .brand {
  color: var(--text-strong);
}
.nav--light .brand__word span {
  color: var(--terracota);
}
.nav--light .brand__crest {
  filter: drop-shadow(0 4px 12px rgba(78, 51, 34, 0.28));
}
.nav--light .nav__link,
.nav--light .nav__link:link,
.nav--light .nav__link:visited {
  color: var(--text-muted);
}
.nav--light .nav__link:hover,
.nav--light .nav__link:focus-visible {
  color: var(--text-strong);
}
.nav--light .nav__link::after {
  background: var(--magna-600);
}
.nav--light.is-stuck {
  background: color-mix(in srgb, var(--es-field) 82%, transparent);
  border-bottom-color: rgba(78, 51, 34, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}
.nav--light .nav__burger {
  border-color: var(--border-light);
  background: color-mix(in srgb, var(--es-field) 72%, transparent);
  color: var(--text-strong);
}

/* --------------------------------------------------------------------------
   Page + scene
   -------------------------------------------------------------------------- */
.es-page {
  --es-field: #ede2d2;
  --es-ink: #24160f;
  --es-shell: 1280px;
  /* keep the composition (and the nav) inside one shell */
  background: var(--es-field);
  color: var(--text);
  min-height: 100svh;
  overflow-x: clip;
}
.es-page .btn {
  border-radius: var(--r-pill);
}

.es-page .nav__inner {
  max-width: var(--es-shell);
}
.es-scene {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--es-shell);
  margin-inline: auto;
  padding: calc(var(--nav-h) + 10px) var(--gutter) clamp(48px, 9vh, 110px);
}
/* Stacked scenes: a hairline marks where one benefit ends and the next
   begins. No per-section background colour: both scenes sit on the same
   page field. Only the opening scene keeps a full viewport height; the rest
   hug their content so the seam stays controlled.
   Big screens get a 40px gap and 50px of top padding; both ramp down with
   the viewport (≈1280px hits the max, phones settle at 18px / 22px) so the
   rhythm stays proportional on every device. */
.es-scene + .es-scene {
  border-top: 1px solid rgba(78, 51, 34, 0.1);
  min-height: 0;
  margin-top: clamp(18px, 3.2vw, 40px);
  padding-top: clamp(22px, 4vw, 50px);
  padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   Giant background claim
   -------------------------------------------------------------------------- */
/* A poster block behind the head: one modern condensed grotesk (Anton), set
   in uppercase and lightly tracked — the contemporary poster voice. Both
   lines share one size rule: escena.js sizes them so the longest word spans
   the frame. Same colour pair on every scene, so all the titles read as one
   recurring motif.
   The whole block sinks by half the stage height, so the video sits above the
   type and its bottom half covers the top half of the title.
   Flat theme colours, no effects: the head in front is what makes it
   interesting, the type is the wall behind it. */
.es-title {
  --es-title-font: "Anton", var(--font-ui);
  --es-title-a: var(--title-a);
  --es-title-b: var(--title-b);
  /* how far the poster drops inside the stage, as a share of the stage
     height. 50% puts the block's centre on the video's bottom edge: exactly
     the top half of the title hides behind the video. */
  --es-title-drop: 50%;
  position: absolute;
  inset: 0;
  /* span the viewport edge to edge, past the scene gutter */
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: var(--fit, 17vw); /* fallback until escena.js measures */
  pointer-events: none;
  user-select: none;
  transform: translate3d(
    var(--es-title-x, 0px),
    calc(var(--es-title-y, 0px) + var(--es-title-drop, 50%)),
    0
  );
}
.es-title__line {
  display: block;
  overflow: hidden; /* entrance mask */
  /* room for ascenders/descenders inside the mask, cancelled by margins
     so the two lines still sit tight */
  padding: 0.04em 0.04em 0.26em;
  margin-bottom: -0.36em;
  font-family: var(--es-title-font);
  font-weight: 400;
  font-size: 1em;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.86;
  white-space: nowrap;
}
.es-title__line:last-child {
  margin-bottom: -0.22em;
}
.es-title__line > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform 1250ms var(--ease-imperio);
}
.es-title__line--a {
  color: var(--es-title-a);
  /* "menos" is the constant word: one shared size across every scene, set
     by the title fitter. The variable line below is the one that fills the
     frame, so a longer word never shrinks the constant one. */
  font-size: var(--fit-menos, 1em);
}
.es-title__line--b {
  color: var(--es-title-b);
}
/* The variable line of the hero claim cycles the poster tones, letter by
   letter — the same multicolour the Carta digital reels use. */
.es-title .tw--magna {
  color: var(--title-a);
}
.es-title .tw--mar {
  color: var(--title-b);
}
.es-title .tw--terracota {
  color: var(--title-c);
}
.is-ready .es-title__line > span {
  transform: none;
}
.is-ready .es-title__line--b > span {
  transition-delay: 140ms;
}

/* --------------------------------------------------------------------------
   Protagonist — the video owns the top of the stage, the claim hangs out of
   it (see --es-title-drop on .es-title)
   -------------------------------------------------------------------------- */
.es-head {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  place-items: center;
  pointer-events: none;
  /* Half the poster hangs below the video, so the stage leaves room for that
     overhang and the claim never runs under the body copy. The block height
     is measured by escena.js; the fallback covers the first paint. */
  margin-bottom: calc(var(--es-title-block, 18svh) / 2);
}
.es-head__float {
  position: relative;
  z-index: 1;
  /* pointer parallax; `translate` composes with the float animation */
  translate: var(--es-head-x, 0px) var(--es-head-y, 0px);
  animation: es-float 9s ease-in-out infinite alternate;
}
.es-head__video {
  display: block;
  height: min(76svh, 820px);
  width: auto;
  max-width: 92vw;
  object-fit: contain;
  filter: drop-shadow(0 40px 46px rgba(64, 38, 22, 0.3)) drop-shadow(0 8px 12px rgba(64, 38, 22, 0.18));
  /* Softer landing all round: the character's own shadows draw a faint edge
     where the frame ends. These gradients dissolve every side of the video
     (shadow included) into the page field, with a longer fade at the bottom,
     so the clip blends with the background instead of closing on hard cuts. */
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(to bottom, transparent, #000 3%, #000 82%, rgba(0, 0, 0, 0.7) 91%, transparent);
  mask-image:
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(to bottom, transparent, #000 3%, #000 82%, rgba(0, 0, 0, 0.7) 91%, transparent);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  /* intersect the horizontal and vertical fades */
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  opacity: 0;
  transform: scale(0.94);
  /* the character arrives as soon as the scene is seen */
  transition: opacity 500ms var(--ease-imperio), transform 650ms var(--ease-imperio);
}
.is-video-in .es-head__video {
  opacity: 1;
  transform: none;
}
/* scrolling down sends the head away (revealing the full claim);
   scrolling up brings it back */
.es-scene.is-head-away .es-head__video {
  opacity: 0;
  transform: translate3d(0, -34px, 0) scale(0.92);
}
@keyframes es-float {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -16px, 0);
  }
}

/* --------------------------------------------------------------------------
   Split hero — the shared opening of the two solution pages
   --------------------------------------------------------------------------
   Same composition as the Carta digital opening: the clip sits on top at the
   Carta stage proportions (max 1120px wide, up to 620px tall, contained) and
   the claim reads below it at the Carta scale, with the constant word as
   selected text. Applied to Reserva de mesa and Pedidos, replacing the
   type-wall / parallax composition with a single, consistent hero.
   -------------------------------------------------------------------------- */
:is(.rz-page, .pd-page, .wa-page) .es-scene--hero .es-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* The clip and its claim own the whole first screen, like the Carta digital
     carousel; the copy below starts past the fold. The 10px matches the
     scene's own top padding (see .es-scene), so the head lands on 100svh. */
  min-height: calc(100svh - var(--nav-h) - 10px);
  gap: clamp(16px, 2.6vh, 34px);
  margin-bottom: 0;
}
:is(.rz-page, .pd-page, .wa-page) .es-scene--hero .es-head__float {
  order: -1;
  width: 100%;
  display: grid;
  place-items: center;
  translate: none;
  animation: none;
}
:is(.rz-page, .pd-page, .wa-page) .es-scene--hero .es-head__video {
  width: 100%;
  height: clamp(300px, 60svh, 780px);
  max-width: min(1320px, 96vw);
}
/* On narrow screens the column width — not the height — is what limits the
   clip, so let it keep its own aspect ratio and fill the column. A fixed tall
   height here would only reserve empty space and push the claim far below the
   art. The Agente de WhatsApp card keeps its own square rule further down. */
@media (max-width: 900px) {
  :is(.rz-page, .pd-page, .wa-page) .es-scene--hero .es-head__video {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}
/* The claim now sits below the clip, at the Carta digital scale. */
:is(.rz-page, .pd-page, .wa-page) .es-scene--hero .es-title {
  position: static;
  inset: auto;
  left: auto;
  right: auto;
  transform: none;
  gap: 0.02em;
  font-size: clamp(2.2rem, 0.5rem + 7vw, 102px);
  letter-spacing: -0.01em;
  line-height: 1;
}
:is(.rz-page, .pd-page, .wa-page) .es-scene--hero .es-title__line {
  overflow: visible;
  padding: 0;
  margin: 0;
  line-height: 1;
}
:is(.rz-page, .pd-page, .wa-page) .es-scene--hero .es-title__line--a {
  font-size: 1em;
}
:is(.rz-page, .pd-page, .wa-page) .es-scene--hero .es-title__line > span {
  transform: none;
  transition: none;
}
/* The constant word reads as selected text, exactly like the Carta claim. */
:is(.rz-page, .pd-page, .wa-page) .es-scene--hero .es-title__line--a > span {
  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);
}
/* The clip stays put as the page scrolls, like the Carta digital stage. */
:is(.rz-page, .pd-page, .wa-page) .es-scene--hero.is-head-away .es-head__video {
  opacity: 1;
  transform: none;
}
@media (max-width: 560px) {
  :is(.rz-page, .pd-page, .wa-page) .es-scene--hero .es-title {
    font-size: clamp(2.4rem, 0.5rem + 11vw, 3.8rem);
  }
}

/* --------------------------------------------------------------------------
   Copy — flows below the hero stage on every size (the type wall owns the
   first screen; the reading happens underneath it).
   -------------------------------------------------------------------------- */
.es-notes {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: min(1080px, 90vw);
  display: grid;
  /* the argument on one side, the payoff on the other */
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-areas:
    "lead feats"
    "foot feats";
  align-items: start;
  column-gap: clamp(40px, 6vw, 100px);
  row-gap: clamp(18px, 2.4vw, 30px);
  margin-inline: auto;
  padding-top: clamp(30px, 6vh, 72px);
  pointer-events: auto;
}
.es-note--lead {
  grid-area: lead;
}
.es-note--foot {
  grid-area: foot;
}
.es-note--feats {
  grid-area: feats;
}

.es-eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--magna-600);
}
/* a short rule that draws in before the copy */
.es-eyebrow::before {
  content: "";
  width: 34px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 800ms var(--ease-imperio) 1650ms;
}
.is-ready .es-eyebrow::before {
  transform: scaleX(1);
}

/* The body copy "develops": a left-to-right clip wipe + a soft focus pull,
   as if it were being written onto the page. */
.es-body__p {
  margin: 0;
  clip-path: inset(0 100% 0 0);
  filter: blur(7px);
  transition: clip-path 1000ms var(--ease-imperio), filter 1000ms var(--ease-imperio);
  /* one single text style for the whole paragraph */
  font-family: var(--font-ui);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text);
  text-wrap: pretty;
}
.es-body__lead {
  margin-top: 14px;
}
.es-body__solution {
  margin-top: 28px;
}
.es-body__foot {
}
.is-ready .es-body__p {
  clip-path: inset(0 0 0 0);
  filter: blur(0);
}
.is-ready .es-body__lead {
  transition-delay: 1850ms;
}
.is-ready .es-body__foot {
  transition-delay: 2010ms;
}
.is-ready .es-body__solution {
  transition-delay: 2170ms;
}

/* Features — a two-by-two block beside the copy */
.es-feats {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 32px) clamp(16px, 2vw, 30px);
}
.es-feat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 700ms var(--ease-imperio), transform 700ms var(--ease-imperio);
}
.is-ready .es-feat {
  opacity: 1;
  transform: none;
}
.is-ready .es-feat:nth-child(1) {
  transition-delay: 2310ms;
}
.is-ready .es-feat:nth-child(2) {
  transition-delay: 2390ms;
}
.is-ready .es-feat:nth-child(3) {
  transition-delay: 2470ms;
}
.is-ready .es-feat:nth-child(4) {
  transition-delay: 2550ms;
}
.es-feat__icon {
  display: block;
  width: 22px;
  height: 22px;
  color: var(--magna-600);
}
.es-feat__text {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  line-height: 1.3;
}
.es-feat__text b {
  display: block;
  font-weight: 600;
  color: var(--text-strong);
}
.es-feat__text span {
  display: block;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Actions — closing the right column, under the benefits
   -------------------------------------------------------------------------- */
.es-actions {
  position: relative;
  z-index: 4;
  margin-top: clamp(28px, 4vh, 46px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 28px);
}
.es-actions > * {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 800ms var(--ease-imperio), transform 800ms var(--ease-imperio);
}
.is-ready .es-actions > * {
  opacity: 1;
  transform: none;
}
.is-ready .es-actions > *:nth-child(1) {
  transition-delay: 2630ms;
}
.es-cta {
  min-height: 56px;
  padding-inline: 30px;
}

/* --------------------------------------------------------------------------
   Comparative price table — features × plans
   --------------------------------------------------------------------------
   The "menos gasto" scene closes with one matrix: every feature runs down
   the left column and the three plans (name and price) sit across the top,
   so the whole offer fits in a single glance. Below the table, a key
   explains the (*) fair-use conditions. */
.es-pricing {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: min(1080px, 90vw);
  margin: clamp(32px, 5.5vh, 64px) auto 0;
}
.es-pricing__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--es-field) 52%, #fff);
  box-shadow: var(--sh-1);
}
.es-pricing__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  /* Fixed layout keeps the 40 / 20 / 20 / 20 columns exact, so every
     feature row lines up with its plan header. */
  table-layout: fixed;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: var(--text);
}
.es-pricing__table th,
.es-pricing__table td {
  padding: 14px 16px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid rgba(78, 51, 34, 0.1);
}
/* First column = the feature names, always left aligned and a touch darker.
   The corner header needs `th.es-pricing__corner` so it out-specifies the
   generic `th` centring rule. */
.es-pricing__table th[scope="row"],
.es-pricing__table th.es-pricing__corner {
  text-align: left;
  font-weight: 500;
  color: var(--text-strong);
}
.es-pricing__table thead th {
  /* Top alignment + the (invisible) flag placeholders below keep the corner
     label and the three plan names on the same line. */
  vertical-align: top;
  padding-top: 22px;
  border-bottom: 1px solid rgba(78, 51, 34, 0.24);
}
/* Keep the four columns balanced: wide feature column, even plan columns. */
.es-pricing__table thead th:first-child {
  width: 40%;
}
.es-pricing__table thead th:not(:first-child) {
  width: 20%;
}
.es-pricing__plan {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--font-inscription);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magna-600);
}
.es-pricing__price {
  display: block;
  margin-top: 6px;
  font-family: "Anton", var(--font-ui);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 400;
  line-height: 1;
  color: var(--magna-600);
}
.es-pricing__price small {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}
.es-pricing__table td svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  color: var(--olivo-900);
  vertical-align: middle;
}
/* The dash and the tick must sit on exactly the same optical centre. */
.es-pricing__no {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  color: var(--border-light-strong);
  font-weight: 600;
}
/* Preferred plan: the Esencial column is tinted top to bottom. */
.es-pricing__table th:nth-child(3),
.es-pricing__table td:nth-child(3) {
  background: rgba(158, 31, 34, 0.06);
}
.es-pricing__table thead th:nth-child(3) {
  box-shadow: inset 0 3px 0 var(--magna-600);
}
.es-pricing__flag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--magna-600);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Invisible twin of the flag, used on the other headers so all four
   columns reserve the same space and their labels stay aligned. */
.es-pricing__flag--ghost {
  visibility: hidden;
}
.es-pricing__corner-label {
  display: block;
}
/* Soft zebra so the eye follows one feature across the four columns. */
.es-pricing__table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.4);
}
.es-pricing__table tbody tr:last-child th,
.es-pricing__table tbody tr:last-child td {
  border-bottom: 1px solid rgba(78, 51, 34, 0.24);
}
.es-pricing__table tfoot td {
  border-bottom: 0;
  padding: 18px 16px 22px;
}
.es-pricing__table tfoot .btn {
  width: 100%;
}
/* --------------------------------------------------------------------------
   Small screens — one table per plan
   --------------------------------------------------------------------------
   The matrix is hard to read on a phone, so below 720px it is replaced by
   one compact table per plan: name, price and the features it includes. */
.es-pricing__plans {
  display: none;
}
.es-plan-table {
  position: relative;
  padding: clamp(20px, 5vw, 26px);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--es-field) 52%, #fff);
  box-shadow: var(--sh-1);
}
.es-plan-table--featured {
  border-color: var(--magna-600);
  background: rgba(158, 31, 34, 0.06);
  box-shadow: var(--sh-3);
}
/* The recommended flag hugs its own text and rides the top-right corner of
   the card instead of stretching across the whole row. */
.es-plan-table .es-pricing__flag {
  position: absolute;
  top: -10px;
  right: 18px;
  margin: 0;
}
.es-plan-table__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.es-plan-table__name {
  font-family: var(--font-inscription);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--magna-600);
}
.es-plan-table__price {
  margin: 0;
  font-family: "Anton", var(--font-ui);
  font-size: clamp(1.9rem, 8vw, 2.4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--magna-600);
}
.es-plan-table__price small {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.es-plan-table__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: var(--text);
}
.es-plan-table__table tr + tr {
  border-top: 1px solid rgba(78, 51, 34, 0.12);
}
.es-plan-table__table th,
.es-plan-table__table td {
  padding: 10px 0;
  text-align: left;
  vertical-align: middle;
  font-weight: 400;
}
.es-plan-table__table th {
  color: var(--text-strong);
}
.es-plan-table__table td {
  width: 30px;
  text-align: right;
}
.es-plan-table__table td svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  color: var(--olivo-900);
  vertical-align: middle;
}
.es-plan-table .btn {
  width: 100%;
  margin-top: 16px;
}

@media (max-width: 720px) {
  .es-pricing--matrix {
    display: none;
  }
  .es-pricing__plans {
    display: grid;
    gap: clamp(16px, 4vw, 22px);
    margin-top: clamp(28px, 5vh, 48px);
  }
}

.es-pricing__note {
  position: relative;
  z-index: 3;
  margin: 22px auto clamp(40px, 7vh, 96px);
  max-width: min(1080px, 90vw);
  display: grid;
  gap: 6px;
  text-align: left;
  font-family: var(--font-ui);
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--text-muted);
}
.es-pricing__note p {
  margin: 0;
}
.es-pricing__note b {
  color: var(--text-strong);
}

/* --------------------------------------------------------------------------
   Lower scenes — no timed entrance
   --------------------------------------------------------------------------
   Only the opening scene plays the choreographed entrance. Any scene after
   it simply has its content present (no masks, no delays), so arriving never
   waits on an animation; only the head is shown/hidden by scroll. */
.es-scene:not(.es-scene--hero) .es-title__line > span {
  transform: none;
  transition: none;
}
.es-scene:not(.es-scene--hero) .es-eyebrow::before {
  transform: scaleX(1);
  transition: none;
}
.es-scene:not(.es-scene--hero) .es-body__p {
  clip-path: inset(0 0 0 0);
  filter: blur(0);
  transition: none;
}
.es-scene:not(.es-scene--hero) .es-feat {
  opacity: 1;
  transform: none;
  transition: none;
}
.es-scene:not(.es-scene--hero) .es-actions > * {
  opacity: 1;
  transform: none;
  transition: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .es-head__video {
    height: auto;
    width: min(92vw, 520px);
    max-width: none;
  }
  .es-notes {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "lead"
      "foot"
      "feats";
    row-gap: 20px;
    max-width: min(560px, 92vw);
    padding-top: 28px;
  }
  .es-feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }
  .es-actions {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .es-cta {
    width: 100%;
  }
  .nav--light .nav__cta {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .es-title__line > span,
  .es-head__video,
  .es-eyebrow::before,
  .es-body__p,
  .es-feat,
  .es-actions > * {
    transition: none;
  }
  .es-title__line > span {
    transform: none;
  }
  .es-head__float {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Agente de WhatsApp hero — a framed composition, not a cut-out
   --------------------------------------------------------------------------
   Same split composition as the Reserva de mesa and Pedidos heroes, but the
   clip is a square tile with a flat colour field: it needs a frame instead of
   the edge dissolve the cut-out clips use. So it travels as a rounded card —
   kept square, warm shadow and all. */
:is(.wa-page, .ap-page) .es-scene--hero .es-head__video {
  width: auto;
  height: clamp(300px, 56svh, 700px);
  aspect-ratio: 1;
  max-width: min(700px, 92vw);
  border-radius: var(--r-lg);
  object-fit: cover;
  -webkit-mask-image: none;
  mask-image: none;
  transform: none;
}
@media (max-width: 560px) {
  :is(.wa-page, .ap-page) .es-scene--hero .es-head__video {
    height: auto;
    width: min(520px, 94vw);
  }
}
/* Recepcionista IA — the clip is cut to the character's alpha box, so the
   robot fills the frame instead of floating in transparent padding. The
   window hugs that cut-out (no square letterboxing), and the title sits right
   under the art. The large-screen query below gives it an extra 10%. */
.ap-page .es-scene--hero .es-head__video {
  width: min(989px, 79svh, 92vw);
  height: auto;
  max-width: none;
  aspect-ratio: 906 / 560;
  object-fit: contain;
}
/* On the larger desktop canvases, the bigger tier is 10% smaller again. */
@media (min-width: 1280px) {
  .ap-page .es-scene--hero .es-head__video {
    width: min(884px, 70.7svh, 92vw);
  }
}
