/* Platodo landing — marca pública (web/) */

:root {
  --azul: #012c5f;
  --azul-profundo: #021938;
  --azul-medio: #052f60;
  --azul-claro: #e8f2ff;
  --rojo: #ed171e;
  --acento: #c0392b;
  --papel: #fbfaf8;
  --papel-suave: #f5f4f0;
  --niebla: #dbeaff;
  --texto: #1b2733;
  --texto-suave: #5c6672;
  --borde: rgba(5, 47, 96, 0.12);
  --crema-marca: #fcf2e4;
  --carta-ocre: #c4783a;
  --sombra: 0 24px 60px rgba(2, 25, 56, 0.18);
  --fuente-display: "Fraunces", "Georgia", serif;
  --fuente-cuerpo: "Outfit", "Segoe UI", sans-serif;
  --ancho: 1120px;
  --radio: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--texto);
  font-family: var(--fuente-cuerpo);
  font-size: 17px;
  line-height: 1.55;
  background: var(--papel);
  position: relative;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--azul-medio);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--azul);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Acceso superior del hero —— */
.hero__top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: min(100% - 2.5rem, 1320px);
  margin: 0 auto;
  padding: 1.35rem 0;
}

/* —— Hero (B — tipografía cinética) —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: visible;
  color: var(--crema-marca);
  /* A — Actual: gradiente diagonal + glow rojo + rayas crema */
  background:
    radial-gradient(ellipse 55% 50% at 62% 38%, rgba(4, 58, 120, 0.95), transparent 70%),
    radial-gradient(ellipse 40% 35% at 78% 28%, rgba(237, 23, 30, 0.16), transparent 60%),
    linear-gradient(160deg, #010e1c 0%, #012c5f 48%, #021938 100%);
}

.hero__atmosphere {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 11px,
      rgba(252, 242, 228, 0.025) 11px,
      rgba(252, 242, 228, 0.025) 12px
    );
  opacity: 0.85;
  animation: drift 28s linear infinite;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(40px, -24px, 0);
  }
}

.hero__orbit {
  pointer-events: none;
  position: absolute;
  /* Mascota grande a la derecha, con espacio para el titular y la carta. */
  right: clamp(1.25rem, 3vw, 4rem);
  top: 14%;
  width: min(34vw, 32rem);
  aspect-ratio: 1;
  overflow: visible;
  /* Debajo del copy cinético: el cromo no tapa claim/CTAs al desbordar */
  z-index: 1;
}

.hero__orbit-ring {
  position: absolute;
  border-radius: 50%;
  /* Anillo decorativo original de la insignia. */
  inset: 6%;
  border: 2px dashed rgba(237, 23, 30, 0.42);
  animation: orbit-spin 28s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.hero__orbit-ring::before {
  content: "";
  position: absolute;
  top: -0.4rem;
  left: 50%;
  width: 0.85rem;
  height: 0.85rem;
  margin-left: -0.425rem;
  border-radius: 50%;
  background: var(--rojo);
  box-shadow: 0 0 18px rgba(237, 23, 30, 0.55);
}

/* El canvas encuadra únicamente la mascota. */
.hero__orbit-chrome {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  max-width: none;
  max-height: none;
  pointer-events: none;
  cursor: grab;
  z-index: 1;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.hero__orbit-chrome.is-spinning {
  cursor: grabbing;
}

.hero__orbit-chrome-canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 18px 34px rgba(2, 25, 56, 0.45));
  pointer-events: none;
}

/* display:block de arriba pisa el [hidden] del UA; forzar ocultar */
.hero__orbit-chrome-canvas[hidden] {
  display: none !important;
}

.hero__orbit-chrome.is-live .hero__orbit-chrome-canvas,
.hero__orbit-chrome.is-spinning .hero__orbit-chrome-canvas {
  filter:
    drop-shadow(0 22px 38px rgba(2, 25, 56, 0.52))
    drop-shadow(0 0 20px rgba(252, 242, 228, 0.2));
}

.hero__orbit-chrome-fallback {
  width: 84%;
  height: 84%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 14px 32px rgba(2, 25, 56, 0.4));
}

.hero__orbit-chrome-fallback[hidden] {
  display: none !important;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero__kinetic {
  position: relative;
  /* Por encima de la órbita: titular, claim y CTAs siempre legibles */
  z-index: 4;
  width: min(100% - 2.5rem, 1320px);
  margin: 0 auto;
  padding: 4.25rem 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.1rem;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  /* Deja pasar el mouse al cromo de la órbita (derecha) */
  pointer-events: none;
}

.hero__kinetic a,
.hero__kinetic .btn,
.hero__kinetic .hero__scroll-cue {
  pointer-events: auto;
}

.hero__brand {
  display: block;
  width: fit-content;
  max-width: min(100%, 34rem);
  margin: 0;
  line-height: 0;
  text-decoration: none;
  animation: rise 0.7s ease-out both;
}

.hero__brand img {
  width: min(100%, 34rem);
  height: auto;
}

.hero__title {
  margin: 0;
  font-family: var(--fuente-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__line {
  display: block;
  font-size: clamp(2.4rem, 7vw, 5.25rem);
  line-height: 0.96;
  opacity: 0;
  transform: translateY(0.35em);
  animation: line-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.12s + var(--i, 0) * 0.11s);
}

.hero__line--accent {
  color: var(--rojo);
  animation-name: line-rise, accent-pulse;
  animation-duration: 0.75s, 2.8s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1), ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-delay: calc(0.12s + var(--i, 0) * 0.11s), 1.4s;
  animation-fill-mode: forwards, none;
}

.hero__line--tight {
  font-size: clamp(1.45rem, 3.8vw, 2.65rem);
  letter-spacing: -0.025em;
  margin-top: 0.15em;
}

/* Tapa encuadernada: papel crema, lomo azul y filetes de una carta de bodegón. */
.hero__scroll-cue {
  position: absolute; left: 50%; top: 50%; z-index: 6;
  display: block; width: clamp(190px, 17vw, 230px);
  text-decoration: none; color: var(--azul-profundo); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: translate(-50%, -50%); pointer-events: auto;
  animation: cue-rise 0.8s ease-out 0.55s both;
}
.hero__scroll-cue-stage { display: block; position: relative; width: 100%; aspect-ratio: .73; transform: rotate(-4deg); transition: transform 300ms ease; }
.hero__scroll-cue-stage::before { content: ""; position: absolute; inset: 3px -3px -3px 5px; border: 1px solid var(--carta-ocre); border-radius: 3px 7px 7px 3px; background: var(--papel); box-shadow: 0 16px 36px rgba(2,25,56,.3); }
.hero__menu-cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  padding: 1.5rem 1rem 1.5rem 1.4rem; border-radius: 3px 7px 7px 3px;
  background: linear-gradient(90deg,var(--azul) 0 8px,var(--crema-marca) 8px 100%);
  border: 1px solid var(--carta-ocre); box-shadow: inset 12px 0 10px rgba(2,25,56,.08);
}
.hero__menu-cover::before { content: ""; position: absolute; inset: .6rem .6rem .6rem 1rem; border: 1px solid var(--carta-ocre); border-radius: 1px 3px 3px 1px; pointer-events: none; opacity: .5; }
.hero__menu-kicker { font-size: .58rem; letter-spacing: .17em; text-transform: uppercase; text-align: center; }
.hero__menu-cutlery { width: 62px; height: 62px; color: var(--carta-ocre); }
.hero__scroll-cue-label { font-family: var(--fuente-display); font-size: clamp(1.6rem,2.1vw,2rem); font-weight: 650; line-height: 1.05; text-align: center; letter-spacing: -.03em; }
.hero__scroll-cue-label span { display: block; }
.hero__menu-subtitle { font-size: .73rem; line-height: 1.45; text-align: center; }
.hero__menu-arrow { font-size: .7rem; padding-top: .65rem; border-top: 1px solid var(--carta-ocre); }
.hero__menu-arrow span { margin-left: .4rem; }
.hero__scroll-cue:hover .hero__scroll-cue-stage, .hero__scroll-cue:focus-visible .hero__scroll-cue-stage { transform: translateY(-5px) rotate(-2deg); }
.hero__scroll-cue:focus-visible { outline: 2px solid var(--crema-marca); outline-offset: 8px; border-radius: 5px; }
@keyframes cue-rise { from { opacity: 0; transform: translate(-50%,calc(-50% + 18px)); } to { opacity: 1; transform: translate(-50%,-50%); } }

/* La tapa conserva su geometría como origen de animateOpen; sólo se pinta al entrar. */
.hero__scroll-cue > .hero__scroll-cue-stage { visibility: hidden; }
.hero__scroll-cue.is-presenting-cover > .hero__scroll-cue-stage { visibility: visible; transform: rotate(-4deg); transition: none; }
.hero__bell {
  --bell-base: #e8bd59; --bell-base-light: #ffe6a0; --bell-base-shade: #a36d20;
  --bell-dome: #e8bd59; --bell-dome-light: #ffe6a0; --bell-dome-shade: #b48635;
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff;
}
.hero__bell::before { content: ""; position: absolute; width: 112%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(232,242,255,.22), rgba(232,242,255,.07) 45%, transparent 70%); opacity: .65; transition: opacity 300ms ease; pointer-events: none; }
.hero__scroll-cue:hover .hero__bell::before, .hero__scroll-cue:focus-visible .hero__bell::before { opacity: 1; }
.hero__bell-model { display: block; position: relative; z-index: 1; flex-shrink: 0; width: 88%; aspect-ratio: 1.2; transition: transform 300ms ease; }
.hero__bell-model::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 9%; height: 8%; border-radius: 50%; background: var(--azul-profundo); opacity: .42; filter: blur(5px); pointer-events: none; }
.hero__bell-model canvas, .hero__bell-model svg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; filter: url(#bell-sticker); z-index: 1; }
.hero__bell-model [hidden] { display: none; }
.hero__bell-waves { position: absolute; inset: 0; pointer-events: none; }
.hero__bell-wave { position: absolute; left: 50%; top: 55%; width: 88%; height: 50%; border: 1px solid #e8bd59; border-radius: 50%; pointer-events: none; }
.hero__bell-waves--attention { z-index: 2; }
.hero__bell-waves--attention .hero__bell-wave { border-width: 2px; }
/* Compensar el desplazamiento de la perspectiva: la base centra la elipse visible. */
.hero__bell-orbit { position: absolute; left: 50%; top: 56%; width: 118%; aspect-ratio: 1; pointer-events: none; transform: translate(-50%, -50%) perspective(600px) rotateX(65deg); }
/* Dos mitades de la misma órbita: el texto pasa detrás y delante de la base. */
.hero__bell-orbit--back { z-index: 0; clip-path: inset(0 0 50%); }
.hero__bell-orbit--front { z-index: 2; clip-path: inset(50% 0 0); }
.hero__bell-label { display: block; width: 100%; height: 100%; overflow: visible; fill: #fff; font-family: var(--fuente-display); font-size: 22px; font-weight: 650; pointer-events: none; animation: orbit-spin 28s linear infinite reverse; filter: drop-shadow(0 2px 0 rgba(2,25,56,.55)); }
.hero__bell-label defs { display: block; }
.hero__bell-label text { letter-spacing: .04em; }
[data-bell-fallback-dome] { transform-box: fill-box; transform-origin: 50% 100%; }
.hero__scroll-cue:hover .hero__bell-model, .hero__scroll-cue:focus-visible .hero__bell-model { transform: translateY(-3px) rotate(-2deg); }
.hero__scroll-cue[aria-busy] { cursor: progress; }
.hero__scroll-cue[aria-busy] .hero__bell-model { transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__bell-model, .hero__bell::before { transition: none; }
  .hero__bell-label { animation: none; }
  .hero__bell-waves { display: none; }
  .hero__scroll-cue:hover .hero__bell-model, .hero__scroll-cue:focus-visible .hero__bell-model { transform: none; }
}

@keyframes line-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes accent-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__bar {
  margin-top: 1.25rem;
  padding-top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  animation: rise 0.8s 0.55s ease-out both;
}

.hero__meta {
  max-width: 32rem;
}

.hero__claim {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(252, 242, 228, 0.92);
}

.hero__notice {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(252, 242, 228, 0.64);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--fuente-cuerpo);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--rojo);
  color: #fff;
}

.btn--primary:hover {
  background: #d4141a;
}

.btn--secondary {
  background: transparent;
  color: var(--crema-marca);
  border-color: rgba(252, 242, 228, 0.45);
}

.btn--secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--small {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

.btn--ghost {
  background: transparent;
  color: var(--azul-medio);
  border-color: var(--borde);
}

.btn--ghost:hover {
  border-color: var(--azul-medio);
  background: var(--azul-claro);
}

.btn--azul {
  background: var(--azul-medio);
  color: #fff;
}

.btn--azul:hover {
  background: #042854;
}

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
}

.section__inner {
  width: min(100% - 2.5rem, var(--ancho));
  margin: 0 auto;
}

@media (max-width: 1100px) {
  /* Aire a la izquierda para riel + etiquetas del recorrido */
  .section__inner {
    padding-left: 0;
  }

}

.section__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acento);
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--fuente-display);
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--azul-profundo);
}

.section__lead {
  margin: 0 0 2.5rem;
  max-width: 38rem;
  font-size: 1.08rem;
  color: var(--texto-suave);
}

.section--papel {
  background: var(--papel);
}

.section--niebla {
  background:
    linear-gradient(180deg, #f4f9ff 0%, var(--papel) 100%);
}

.section--azul {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(237, 23, 30, 0.12), transparent 50%),
    linear-gradient(160deg, #021938, #012c5f 55%, #043a78);
  color: var(--crema-marca);
}

.section--azul .section__eyebrow {
  color: rgba(252, 242, 228, 0.7);
}

.section--azul .section__title {
  color: #fff;
}

.section--azul .section__lead {
  color: rgba(252, 242, 228, 0.82);
}

.ideas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ideas li {
  margin: 0;
  padding: 0;
  border-top: 3px solid var(--rojo);
  padding-top: 1.15rem;
}

.ideas h3 {
  margin: 0 0 0.45rem;
  font-family: var(--fuente-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--azul-medio);
}

.ideas p {
  margin: 0;
  color: var(--texto-suave);
  font-size: 1rem;
}

.pasos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  counter-reset: paso;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pasos li {
  counter-increment: paso;
  position: relative;
  padding-left: 3.25rem;
}

.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--azul-medio);
  color: #fff;
}

.pasos h3 {
  margin: 0.15rem 0 0.45rem;
  font-size: 1.12rem;
  font-weight: 650;
  color: var(--azul-profundo);
}

.pasos p {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.98rem;
}

.comercios__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.contacto__box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
}

.contacto__mail {
  font-family: var(--fuente-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 650;
  color: var(--azul-medio);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.contacto__mail:hover {
  color: var(--rojo);
}

/* —— Footer —— */
.site-footer {
  padding: 3rem 0 2.5rem;
  background: var(--azul-profundo);
  color: rgba(252, 242, 228, 0.72);
  text-align: center;
}

.site-footer__inner {
  width: min(100% - 2.5rem, var(--ancho));
  margin: 0 auto;
}

.site-footer__motto {
  margin: 0 0 0.65rem;
  font-family: var(--fuente-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* —— Reveal motion —— */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero__orbit {
    right: 1.5rem;
    top: 10%;
    width: min(38vw, 21rem);
    opacity: 1;
  }

  .hero__scroll-cue {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: min(40vw, 14rem);
    height: auto;
    margin: 1.5rem auto 2rem;
    transform: none;
    animation: none;
  }

  .hero__scroll-cue-label {
    font-size: 1.65rem;
  }


  .hero__kinetic {
    padding-top: 4rem;
    gap: 0.9rem;
    min-height: auto;
  }

  .hero__brand img {
    width: min(100%, 20rem);
  }

  .hero__bar {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0.75rem;
  }

  .ideas,
  .pasos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero__kinetic {
    padding-top: 4.25rem;
    padding-bottom: 0;
    min-height: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero__brand img {
    width: min(100%, 15rem);
  }

  .hero__line {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .hero__line--tight {
    font-size: clamp(1.25rem, 5.8vw, 1.7rem);
  }

  .hero__orbit {
    display: block;
    position: absolute;
    right: 1.25rem;
    top: 7.6rem;
    width: 38vw;
    margin: 0;
    opacity: 1;
    z-index: 1;
  }

  .hero__scroll-cue {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: min(55vw, 13rem);
    height: auto;
    margin: -1.25rem auto 0;
    transform: none;
    animation: none;
  }

  .hero__menu-cover {
    padding: 1rem;
    gap: 0.65rem;
  }

  .hero__scroll-cue-label {
    font-size: 1.5rem;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__atmosphere,
  .hero__brand,
  .hero__bar,
  .hero__line,
  .hero__orbit-ring,
  .hero__orbit-chrome-canvas,
  .hero__orbit-chrome-fallback,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero__scroll-cue-stage,
  .hero__menu-cover,
  .hero__menu-flap {
    transition: none !important;
  }

  .hero:not([data-carta-transition]) .hero__scroll-cue:hover .hero__scroll-cue-stage,
  .hero:not([data-carta-transition]) .hero__scroll-cue:focus-visible .hero__scroll-cue-stage,
  .hero:not([data-carta-transition]) .hero__scroll-cue:active .hero__scroll-cue-stage {
    transform: rotate(-4deg) !important;
  }


  .hero__scroll-cue:hover .hero__menu-flap,
  .hero__scroll-cue:focus-visible .hero__menu-flap {
    transform: rotateY(28deg) !important;
  }

  .hero__scroll-cue {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  @media (min-width: 901px) {
    .hero__scroll-cue {
      transform: translate(-50%, -50%) !important;
    }
  }

}

/* Sin JavaScript la misma carta se lee completa con sus enlaces nativos. */
.carta { width: min(100% - 2rem,1180px); margin: 2rem auto; padding: 1.5rem; background: var(--crema-marca); color: var(--azul-profundo); border: 1px solid var(--carta-ocre); }
.carta__topbar { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.carta__close { display: flex; align-items: center; gap: .65rem; padding: .6rem .5rem; text-decoration: none; font-size: .85rem; }
.carta__close span { font-size: 1.6rem; line-height: 1; }
.carta__frontispiece { display: none; }
.carta__contents { display: grid; gap: 1.25rem; padding: 2.5rem 0; }
.carta__contents a { color: var(--azul); text-decoration: none; text-underline-offset: 5px; }
.carta__contents a:hover { text-decoration: underline; }
.carta__book { display: flex; flex-direction: column; }
.carta__index { order: -1; }
.carta__index { display: flex; flex-wrap: wrap; gap: .5rem; }
.carta__index a { display: flex; gap: .5rem; padding: .8rem; color: var(--azul); text-decoration: none; }
.carta__index strong { font-weight: 500; }
.carta__section { padding: 2.5rem 0; scroll-margin-top: 20px; }
.carta__section + .carta__section { border-top: 1px solid var(--borde); }
.carta__eyebrow { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 1.3rem; color: var(--azul-medio); }
.carta__section h2 { margin: 0 0 1.5rem; font-family: var(--fuente-display); font-weight: 650; font-size: clamp(2.1rem,3.9vw,3.6rem); line-height: 1.06; letter-spacing: -.035em; color: var(--azul-profundo); }
.carta__section p { max-width: 38rem; color: var(--texto-suave); }
.carta__section .carta__eyebrow { color: var(--azul-medio); }
.carta__lead { font-size: 1.15rem; line-height: 1.6; }
.carta__notice { margin-top: 1.75rem; font-size: .85rem; }
.carta__text-link { display: inline-block; padding: .75rem 0; text-underline-offset: 5px; }
.carta__steps, .carta__list { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1.25rem; }
.carta__steps li { display: flex; align-items: flex-start; gap: 1rem; }
.carta__steps li > span { flex: 0 0 2rem; font-family: var(--fuente-display); color: var(--carta-ocre); font-size: 1.75rem; line-height: 1.3; }
.carta__section h3 { font-family: var(--fuente-display); font-size: 1.3rem; font-weight: 650; margin: 0 0 .35rem; }
.carta__steps p, .carta__list p { margin: 0; }
.carta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.8rem; }
.contacto { display: grid; gap: 1rem; max-width: 34rem; margin: 1.75rem 0 0; }
.contacto[hidden] { display: none; }
.contacto__campo { display: grid; gap: .35rem; margin: 0; }
.contacto__campo label { font-size: .85rem; font-weight: 600; color: var(--azul-profundo); }
.contacto input, .contacto select, .contacto textarea { width: 100%; min-height: 2.9rem; padding: .65rem .8rem; font: inherit; font-size: 1rem; color: var(--azul-profundo); background: var(--papel); border: 1px solid var(--carta-ocre); border-radius: 4px; }
.contacto textarea { min-height: 7.5rem; resize: vertical; }
.contacto .carta__actions { margin-top: .5rem; }
.contacto button { cursor: pointer; }
.contacto button:disabled { opacity: .6; cursor: progress; }
.carta__section .contacto__estado { max-width: 34rem; margin: 1.5rem 0 0; font-family: var(--fuente-display); font-size: 1.3rem; color: var(--azul-profundo); }
.carta__section .contacto__estado[data-estado="error"] { font-family: var(--fuente-cuerpo); font-size: 1rem; color: var(--acento); }
.carta__section .contacto__alternativa { margin: 1.5rem 0 0; font-size: .9rem; }
.carta :focus-visible { outline: 2px solid var(--carta-ocre); outline-offset: 4px; }
.carta__section h2:focus { outline-offset: 6px; }
.book-reader { border: 0; margin: 0; padding: 0; max-width: none; max-height: none; width: 100%; height: 100%; height: 100dvh; background: var(--azul-profundo); color: var(--crema-marca); overflow: hidden; }
.book-reader::backdrop { background: var(--azul-profundo); }
.book-open { overflow: hidden; }
.book-reader .carta { position: relative; width: 100%; height: 100%; margin: 0; padding: 1rem clamp(.75rem,2vw,2rem); border: 0; background: transparent; display: flex; flex-direction: column; gap: .75rem; }
.book-reader .carta__topbar { flex-shrink: 0; color: var(--crema-marca); }
.book-reader .carta__close { color: var(--crema-marca); }
.book-reader .carta__book { --reader-rail: 9.2rem; display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; position: relative; padding-right: var(--reader-rail); }
.book-reader .carta__spread { flex: none; width: calc(var(--page-width) * 2); height: var(--page-height); position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); background: var(--crema-marca); border-radius: 3px 7px 7px 3px; outline: 1px solid var(--carta-ocre); box-shadow: 3px 3px 0 var(--papel-suave),6px 6px 0 var(--carta-ocre),0 18px 60px rgba(0,0,0,.25); }
.book-reader .carta__frontispiece { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; min-width: 0; min-height: 0; overflow: auto; scrollbar-width: thin; color: var(--azul); background: linear-gradient(90deg,transparent 94%,rgba(2,25,56,.09)); }
.carta__wordmark { margin: 0; font-family: var(--fuente-display); font-size: clamp(2.5rem,4.5vw,4.5rem); line-height: 1; letter-spacing: -.04em; }
.carta__table { width: min(62%,230px); max-height: 18vh; margin: 1rem 0; color: var(--carta-ocre); flex-shrink: 0; }
.carta__frontispiece h2 { margin: 0; font-family: var(--fuente-display); font-size: clamp(1.6rem,2.6vw,2.6rem); line-height: 1.12; font-weight: 500; }
.carta__dedication { font-size: .85rem; line-height: 1.6; margin: 1rem 0; }
.carta__imprint { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; border-top: 1px solid var(--carta-ocre); padding-top: .9rem; }
.book-reader .carta__content { position: relative; min-width: 0; min-height: 0; perspective: 1800px; overflow: hidden; color: var(--azul-profundo); border-left: 1px solid var(--borde); border-radius: 0 6px 6px 0; background: linear-gradient(90deg,rgba(2,25,56,.07),transparent 7%); }
.book-reader .carta__section { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: clamp(1.5rem,4vw,4rem); border: 0; background: transparent; }
.book-reader .carta__section[hidden] { display: none; }
.book-reader .carta__section h2 { font-size: clamp(2rem,3.8vw,3.8rem); }
.book-reader .carta__frontispiece[hidden], .book-reader .carta__initial[hidden], .book-reader .carta__intro[hidden], .book-reader .carta__left-pages[hidden] { display: none; }
.book-reader .carta__frontispiece, .book-reader .carta__left-pages { grid-column: 1; grid-row: 1; }
.book-reader .carta__content { grid-column: 2; grid-row: 1; }
.book-reader .carta__left-pages { padding: 0; overflow: hidden; background: linear-gradient(90deg,transparent 94%,rgba(2,25,56,.09)); }
.book-reader .carta__left-pages > .carta__intro { height: 100%; padding: clamp(1.5rem,4vw,4rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.book-reader .carta__initial { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: clamp(1.5rem,4vw,4rem); }
.book-reader .carta__contents { padding: 0; }
.book-reader .carta__development > :first-child { margin-top: 0; }
.book-reader .carta__index { position: absolute; right: calc((100% - var(--page-width) * 2 - var(--reader-rail)) / 2 + var(--reader-rail) - 9.2rem); top: calc((100% - var(--page-height)) / 2 + 1.5rem); width: 9.2rem; max-height: calc(var(--page-height) - 80px); overflow-y: auto; display: grid; gap: .65rem; }
.book-reader .carta__index a { min-height: 54px; padding: .7rem .8rem; align-items: center; gap: .7rem; background: var(--crema-marca); border: 1px solid var(--carta-ocre); border-left: 0; border-radius: 0 5px 5px 0; box-shadow: 0 4px 8px rgba(0,0,0,.12); font-size: .88rem; transition: background 180ms; }
.book-reader .carta__index a span { font-size: .65rem; opacity: .75; }
.book-reader .carta__index a[aria-current] { background: var(--azul); color: var(--crema-marca); border-color: var(--crema-marca); }
.book-reader .carta__index a:hover:not([aria-current]) { background: var(--papel); color: var(--azul); }
.book-reader .carta__pagination { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: .5rem; color: var(--crema-marca); padding-top: .5rem; }
.carta__pagination button { min-height: 44px; border: 1px solid var(--crema-marca); background: transparent; color: var(--crema-marca); font: inherit; font-size: .85rem; padding: .55rem 1rem; border-radius: 999px; cursor: pointer; }
.carta__pagination [data-book-next] { background: var(--papel); color: var(--azul); border-color: var(--papel); }
.carta__pagination [data-book-prev]:enabled:hover { background: color-mix(in srgb, var(--crema-marca) 8%, transparent); }
.carta__pagination [data-book-next]:enabled:hover { background: var(--papel-suave); border-color: var(--papel-suave); }
.carta__pagination button:disabled { background: transparent; color: var(--crema-marca); border: 1px dashed var(--crema-marca); opacity: .65; cursor: default; }
.carta__pagination button:focus-visible { outline: 3px solid var(--crema-marca); outline-offset: 4px; }
.carta__page-number { font-size: .75rem; letter-spacing: .1em; }
.book-reader .carta__index, .book-reader .carta__pagination { transition: opacity 180ms; }
.book-reader.is-opening .carta__book, .book-reader.is-opening .carta__pagination { visibility: hidden; }
.book-reader.is-opening .carta__index, .book-reader.is-opening .carta__pagination { opacity: 0; visibility: hidden; }
.book-reader.is-unfolding .carta__book { visibility: visible; }
.book-reader.is-unfolding .carta__frontispiece { visibility: hidden; }
.book-reader.is-unfolding .carta__spread { clip-path: inset(-80px -80px -80px 50%); }
.book-opening { position: absolute; pointer-events: none; z-index: 10; perspective: 2200px; color: var(--azul-profundo); }
.book-opening__hinge { width: 100%; height: 100%; transform-style: preserve-3d; transform-origin: left center; }
.book-opening__silhouette { position: absolute; inset: 0; clip-path: inset(-80px); }
.book-opening__paper { position: absolute; top: 0; }
.book-opening .hero__menu-cover, .book-opening__back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.book-opening .hero__menu-cover { color: var(--azul-profundo); }
.book-opening .hero__menu-cover::before { top: var(--opening-filet-top); right: var(--opening-filet-right); bottom: var(--opening-filet-bottom); left: var(--opening-filet-left); border-width: var(--opening-filet-border-width); border-radius: var(--opening-filet-border-radius); }
.book-reader .book-opening .book-opening__back { position: absolute; inset: 0; transform: rotateY(180deg); transform-style: preserve-3d; display: flex; visibility: visible; opacity: 0; overflow: visible; background-color: var(--crema-marca); }
.book-turn { position: fixed; inset: 0; margin: 0; z-index: 3; pointer-events: none; }
@media (max-width: 900px) { .hero { min-height: auto; } }
@media (max-width: 1000px) {
  .book-reader.is-unfolding .carta__spread { clip-path: var(--opening-reveal); }
  .book-reader .carta__book { flex: none; height: var(--page-height); margin-block: auto; }
  .book-reader .carta__spread { width: var(--page-width); height: var(--page-height); grid-template-columns: minmax(0,1fr); }
  .book-reader .carta__index { right: 0; top: 1.5rem; }
  .book-reader .carta__index { max-height: calc(100% - 2rem); }
  .book-reader .carta__frontispiece { display: none; }
  .book-reader .carta__content { grid-column: 1; }
  .book-reader .carta__initial { padding: 0; }
  .book-reader .carta__initial > .carta__frontispiece { display: flex; overflow: visible; background: transparent; }
  .book-reader .carta__initial > .carta__contents { padding: clamp(1.5rem,4vw,4rem); }
  .book-reader .carta__section > .carta__intro { margin-bottom: 1.75rem; }
}
@media (max-width: 760px) {
  .book-reader .carta { padding: .5rem .65rem .6rem; gap: .4rem; }
  .book-reader .carta__book { padding-right: 38px; }
  .book-reader .carta__spread { grid-template-columns: minmax(0,1fr); }
  .book-reader .carta__frontispiece { display: none; }
  .book-reader .carta__content { border-left: 0; }
  .book-reader .carta__section { padding: 1.6rem 1.2rem 2rem; }
  .book-reader .carta__initial > .carta__contents { padding: 1.6rem 1.2rem 2rem; }
  .book-reader .carta__section h2 { font-size: clamp(1.9rem,7.5vw,3rem); }
  .book-reader .carta__index { top: .8rem; width: 38px; gap: .3rem; }
  .book-reader .carta__index a { writing-mode: vertical-rl; padding: .6rem .45rem; gap: .35rem; min-height: 74px; font-size: .72rem; }
  .book-reader .carta__index a span { display: none; }
  .carta__lead { font-size: 1.03rem; }
  .carta__steps, .carta__list { gap: 1rem; }
  .carta__pagination button { padding: .5rem .7rem; font-size: .78rem; }
  .carta__page-number { font-size: .65rem; letter-spacing: 0; }
}
@media (max-height: 540px) {
  .book-reader .carta__index { top: .4rem; gap: .2rem; max-height: calc(100% - .8rem); overflow-y: auto; scrollbar-width: thin; }
  .book-reader .carta__index a { min-height: 44px; }
  .carta__frontispiece .carta__table { max-height: 16vh; margin: .5rem 0; }
  .carta__frontispiece .carta__dedication { margin: .5rem 0; }
  .carta__frontispiece .carta__eyebrow, .carta__imprint { display: none; }
}
@media (max-width: 760px) and (max-height: 540px) {
  .book-reader .carta__index a { writing-mode: horizontal-tb; justify-content: center; padding: .5rem; min-height: 44px; }
  .book-reader .carta__index a span { display: block; font-size: .8rem; }
  .book-reader .carta__index a strong { display: none; }
}
html[data-carta-mode="paso"] .book-reader * { animation: none !important; transition: none !important; }

/* Un solo modo de lectura, con acceso en la portada y dentro del diálogo. */
.reading-mode { display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 8; pointer-events: auto; }
.reading-mode__switch { display: flex; align-items: center; gap: 9px; padding: 7px 12px; min-height: 48px; border: 1px solid var(--carta-ocre); border-radius: 999px; background: var(--crema-marca); color: var(--azul-profundo); font: 500 15px/1.2 var(--fuente-cuerpo); cursor: pointer; }
.reading-mode__switch[hidden], .reading-mode__help[hidden] { display: none; }
.reading-mode__switch:focus-visible { outline: 3px solid var(--carta-ocre); outline-offset: 4px; }
.reading-mode__switch svg { width: 23px; height: 23px; flex: none; transform-box: fill-box; transform-origin: center; }
.reading-mode__track { width: 48px; height: 28px; border-radius: 20px; background: var(--azul); padding: 3px; flex: none; }
.reading-mode__thumb { display: block; height: 22px; width: 22px; border-radius: 50%; background: var(--crema-marca); }
.reading-mode__switch[aria-checked="true"] .reading-mode__thumb { transform: translateX(20px); }
.reading-mode__label { min-width: 68px; text-align: left; }
.reading-mode__help { width: max-content; max-width: min(270px, calc(100vw - 24px)); padding: 12px 15px; background: var(--crema-marca); color: var(--azul-profundo); border: 1px solid var(--carta-ocre); border-radius: 10px; font: 400 15px/1.35 var(--fuente-cuerpo); position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); z-index: 1; visibility: hidden; pointer-events: none; }
.reading-mode__help::after { content: ''; position: absolute; right: calc(50% - 6px); bottom: -7px; width: 12px; height: 12px; background: var(--crema-marca); border-right: 1px solid var(--carta-ocre); border-bottom: 1px solid var(--carta-ocre); transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) {
  .reading-mode:has(> .reading-mode__switch:hover) > .reading-mode__help:not([hidden]),
  .reading-mode:has(> .reading-mode__switch:focus-visible) > .reading-mode__help:not([hidden]) { visibility: visible; }
}
.hero__mode { position: absolute; left: 50%; top: calc(50% + 125px); transform: translateX(-50%); }
.book-open .hero__mode { opacity: 0; }
.book-reader .carta__mode { position: absolute; width: 9.2rem; }
@media (min-width: 1001px) {
  .book-reader .carta__mode .reading-mode__switch { display: grid; grid-template-columns: 23px 48px 23px; justify-content: center; width: 100%; padding: .7rem .8rem; gap: .25rem 9px; border-left: 0; border-radius: 0 5px 5px 0; box-shadow: 0 4px 8px rgba(0,0,0,.12); }
  .carta__mode .reading-mode__label { grid-column: 1 / -1; text-align: center; }
  .carta__mode .reading-mode__help { left: auto; right: 0; transform: none; }
}
.book-reader .carta[data-state="closed"] .carta__mode,
.book-reader .carta[data-state="opening"] .carta__mode,
.book-reader .carta[data-state="closing"] .carta__mode { opacity: 0; }
@media (max-width: 1000px) { .book-reader .carta__mode { position: relative; width: auto; align-self: center; margin-right: var(--reader-rail, 9.2rem); flex-shrink: 0; } }
@media (max-width: 760px) { .book-reader .carta__mode { margin-right: 38px; } }
@media (min-width: 1001px) and (max-height: 540px) { .book-reader .carta__index { max-height: calc(var(--page-height) - 80px); } }
@media (max-width: 900px) { .hero__mode { position: relative; top: auto; left: auto; transform: none; width: calc(100% - 40px); margin: 0 auto 24px; } }

/* Hero en pantallas grandes: columna más ancha, claim abajo y tamaños atados a vw/vh con techo.
   Por debajo de 1400×800 (375, 1280) rige el hero de arriba sin cambios. */
@media (min-width: 1400px) and (min-height: 800px) {
  .hero {
    --hero-col: min(100% - 8vw, 2200px);
    --hero-cue: clamp(230px, min(15vw, 24vh), 360px);
    --hero-orbit: clamp(32rem, min(40vw, 62vh), 56rem);
  }
  .hero__top,
  .hero__kinetic { width: var(--hero-col); }
  .hero__kinetic { padding-bottom: 8vh; }
  .hero__brand { max-width: clamp(34rem, min(32vw, 52vh), 48rem); }
  .hero__brand img { width: clamp(34rem, min(32vw, 52vh), 48rem); }
  .hero__line { font-size: clamp(5.25rem, min(7vw, 11vh), 10rem); }
  .hero__line--tight { font-size: clamp(2.65rem, min(3.5vw, 5.5vh), 5rem); }
  .hero__bar { margin-top: auto; }
  .hero__meta { max-width: 40rem; }
  .hero__claim { font-size: clamp(1.05rem, 1.6vh, 1.4rem); }
  .hero__notice { font-size: clamp(0.9rem, 1.3vh, 1.15rem); }
  .hero__orbit {
    width: var(--hero-orbit);
    right: calc((100% - var(--hero-col)) / 2);
    top: calc(50% - var(--hero-orbit) / 2);
  }
  .hero__scroll-cue { width: var(--hero-cue); }
  .hero__mode { top: calc(50% + var(--hero-cue) * 0.54); }
}
