/* Código Historia · Viaje a casa
   Paleta de la marca. Sin negro ni dorado.
   El único color cálido de cada pantalla es el botón. */

@font-face {
  font-family: "Lora";
  src: url("../fuentes/lora-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fuentes/lora-latin-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fuentes/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fuentes/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --cal: #f7f5f0;
  --papel: #fdfcf9;
  --mar: #1f4a5e;
  --mar-hondo: #15303b;
  --salvia: #8faf9e;
  --bruma: #c9d3d6;
  --agua: #e3ecee;
  --niebla: #51646c;
  --luz: #f2a658;
  --arcilla: #ae4a2b;
  --titular: "Lora", Georgia, "Times New Roman", serif;
  --texto: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 34rem;
  --suave: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--texto);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--mar-hondo);
  background: var(--cal);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

body.noche {
  color: var(--cal);
  background: var(--mar-hondo);
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

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

[hidden] {
  display: none !important;
}

.solo-lectores {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--salvia);
  outline-offset: 3px;
}

/* ---------- Botón: el único punto cálido ---------- */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.9rem 1.6rem;
  border: 0;
  border-radius: 0.5rem;
  font-family: var(--texto);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: var(--arcilla);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(21, 48, 59, 0.7);
  transition: transform 0.25s var(--suave), box-shadow 0.25s var(--suave);
}

.noche .boton {
  background: var(--luz);
  color: var(--mar-hondo);
  box-shadow: 0 0 44px -10px rgba(242, 166, 88, 0.55);
}

.boton:hover {
  transform: translateY(-2px);
}

.boton:active {
  transform: translateY(0);
}

.boton-ancho {
  width: 100%;
}

/* ---------- Home ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 30rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-fondo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 66%;
  object-fit: cover;
  object-position: 72% 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(21, 48, 59, 0.55) 0%,
    rgba(21, 48, 59, 0.12) 30%,
    rgba(21, 48, 59, 0.1) 46%,
    rgba(21, 48, 59, 0.85) 60%,
    rgb(21, 48, 59) 66%,
    rgb(21, 48, 59) 100%
  );
}

.hero-contenido {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 44rem;
  padding: 1.5rem 1.5rem 2rem;
}

.hero-marca {
  position: absolute;
  z-index: 1;
  top: 1.25rem;
  left: 1.5rem;
  font-family: var(--titular);
  font-weight: 500;
  font-size: 1rem;
  color: var(--bruma);
}

.hero h1 {
  font-family: var(--titular);
  font-weight: 500;
  font-size: clamp(1.6rem, 6.4vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  color: #fff;
}

.hero-sub {
  margin-top: 1rem;
  color: var(--bruma);
  font-size: 1.0625rem;
}

.hero .boton {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 22rem;
}

.atajo {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--bruma);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Etapas ---------- */

.etapa {
  min-height: 100vh;
  min-height: 100dvh;
}

.etapa-foto {
  position: relative;
  height: 30vh;
  min-height: 11rem;
  max-height: 22rem;
  overflow: hidden;
}

.etapa-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.etapa-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 245, 240, 0) 45%, var(--cal) 100%);
}

.noche .etapa-foto::after {
  background: linear-gradient(180deg, rgba(21, 48, 59, 0.25) 0%, var(--mar-hondo) 100%);
}

.foto-puerta img {
  object-position: 70% 55%;
}

.foto-caja img {
  object-position: 35% 60%;
}

.etapa-cuerpo {
  position: relative;
  max-width: var(--ancho);
  margin: -2.5rem auto 0;
  padding: 0 1.25rem 4rem;
}

.quien {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quien img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bruma);
}

.quien-nombre {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
}

.quien-rol {
  font-size: 0.875rem;
  color: var(--niebla);
}

.noche .quien-rol {
  color: var(--bruma);
}

.dicho {
  margin-bottom: 0.75rem;
  font-family: var(--titular);
  font-weight: 500;
  font-size: clamp(1.3rem, 5.2vw, 1.75rem);
  line-height: 1.3;
  text-wrap: balance;
}

.dicho strong {
  font-weight: 500;
  font-style: italic;
  color: var(--mar);
}

.noche .dicho strong {
  color: #fff;
}

.dicho-suave {
  font-family: var(--texto);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--niebla);
}

.noche .dicho-suave {
  color: var(--bruma);
}

.entra {
  animation: entrar 0.7s var(--suave) both;
}

@keyframes entrar {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* El hilo: 1 de 3 */

.hilo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2rem 0 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--niebla);
}

.noche .hilo {
  color: var(--salvia);
}

.hilo-puntos {
  display: flex;
  align-items: center;
}

.hilo-puntos span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}

.hilo-puntos span + span {
  margin-left: 1.4rem;
  position: relative;
}

.hilo-puntos span + span::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 1.4rem;
  border-top: 1.5px solid currentColor;
  margin-right: 1.5px;
}

.hilo-puntos .hecho {
  background: currentColor;
}

.pregunta {
  font-family: var(--titular);
  font-weight: 500;
  font-size: clamp(1.4rem, 5.6vw, 1.9rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.pregunta-dos {
  margin-top: 2rem;
}

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

.opciones-dos {
  grid-template-columns: 1fr 1fr;
}

.opcion {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--bruma);
  border-radius: 0.5rem;
  background: var(--papel);
  color: var(--mar-hondo);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s var(--suave);
}

.opcion:hover {
  border-color: var(--mar);
}

.opcion:active {
  transform: scale(0.985);
}

.noche .opcion {
  background: rgba(247, 245, 240, 0.07);
  border-color: rgba(201, 211, 214, 0.45);
  color: var(--cal);
}

.noche .opcion:hover {
  border-color: var(--bruma);
}

.opcion[aria-pressed="true"] {
  background: var(--mar);
  border-color: var(--mar);
  color: #fff;
}

.noche .opcion[aria-pressed="true"] {
  background: var(--cal);
  border-color: var(--cal);
  color: var(--mar-hondo);
}

.anotado {
  margin-top: 0.9rem;
  font-size: 1rem;
  color: var(--niebla);
}

.noche .anotado {
  color: var(--salvia);
}

.cierre {
  margin-top: 2.25rem;
}

.cierre .boton {
  margin-top: 1.25rem;
}

/* ---------- La hoja ---------- */

.hoja {
  position: relative;
  margin: 0 0 2rem;
  padding: 1.4rem 1.25rem 1.5rem;
  color: var(--mar-hondo);
  background-color: var(--papel);
  background-image:
    repeating-linear-gradient(0deg, rgba(81, 100, 108, 0.035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(81, 100, 108, 0.022) 0 1px, transparent 1px 7px),
    linear-gradient(135deg, #fff 0%, var(--papel) 55%, #f3efe6 100%);
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(21, 48, 59, 0.12),
    0 18px 36px -22px rgba(21, 48, 59, 0.55);
}

.hoja::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1.6rem;
  height: 1.6rem;
  background: linear-gradient(225deg, var(--cal) 0 50%, #e6e1d5 50% 100%);
  box-shadow: -2px 2px 4px -2px rgba(21, 48, 59, 0.35);
}

.hoja-cabecera {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1.5px solid var(--mar);
}

.hoja-titulo {
  font-family: var(--titular);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--mar);
}

.hoja-marca {
  padding-right: 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--niebla);
}

.hoja-linea {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.6rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--bruma);
}

.hoja-linea:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hoja-num {
  font-family: var(--titular);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--salvia);
}

.hoja-rotulo {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--niebla);
}

.hoja-escena {
  margin-top: 0.2rem;
  font-family: var(--titular);
  font-style: italic;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.hoja-frase {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.15rem 0.55rem;
  border-radius: 0.25rem;
  background: var(--mar);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
}

.hoja-pendiente {
  margin-top: 0.3rem;
  font-size: 0.9375rem;
  color: var(--niebla);
}

.hoja-raya {
  height: 1.5rem;
  border-bottom: 1.5px solid var(--bruma);
}

.hoja-linea.nueva .hoja-frase,
.hoja-linea.nueva .hoja-escena {
  animation: escribir 0.9s var(--suave) both;
}

@keyframes escribir {
  from {
    opacity: 0;
    transform: translateX(-0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Página de ventas ---------- */

.venta-cabeza {
  position: relative;
  padding: 0 0 1rem;
}

.venta-foto {
  position: relative;
  height: 34vh;
  min-height: 12rem;
  max-height: 26rem;
  overflow: hidden;
}

.venta-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 70%;
}

.venta-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 245, 240, 0) 40%, var(--cal) 100%);
}

.seccion {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.seccion-puente {
  margin-top: -1.25rem;
  position: relative;
  padding-top: 0;
  padding-bottom: 1rem;
}

.seccion-pliegue {
  padding-top: 1rem;
}

.banda {
  background: var(--agua);
}

.banda-honda {
  background: var(--mar-hondo);
  color: var(--cal);
}

.sobre {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--niebla);
  margin-bottom: 0.6rem;
}

.venta h1 {
  font-family: var(--titular);
  font-weight: 500;
  font-size: clamp(1.9rem, 7.4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.venta h1 em,
.venta h2 em {
  font-style: italic;
  color: var(--mar);
}

.banda-honda h2 em {
  color: #fff;
}

.venta h2 {
  font-family: var(--titular);
  font-weight: 500;
  font-size: clamp(1.5rem, 5.8vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.venta .hoja-titulo {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.3;
}

.bajada {
  margin-top: 1rem;
  font-size: 1.1875rem;
  color: var(--niebla);
}

.pliegue-accion {
  margin-top: 1.75rem;
}

.nota-boton {
  margin-top: 0.7rem;
  font-size: 0.9375rem;
  color: var(--niebla);
}

.banda-honda .nota-boton {
  color: var(--bruma);
}

.lista-recibes li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.6rem;
  border-bottom: 1px solid var(--bruma);
}

.lista-recibes li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 1.25rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--salvia);
}

.cita {
  margin: 1.75rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--salvia);
  font-family: var(--titular);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1875rem;
  line-height: 1.4;
}

.cita cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--texto);
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--niebla);
}

.pasos {
  counter-reset: paso;
  position: relative;
  margin-left: 0.9rem;
  border-left: 1.5px solid var(--salvia);
}

.pasos li {
  counter-increment: paso;
  position: relative;
  padding: 0 0 1.4rem 1.75rem;
}

.pasos li:last-child {
  padding-bottom: 0;
}

.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: -0.95rem;
  top: -0.1rem;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mar);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
}

.sobre-pdf {
  position: relative;
  margin: 2rem auto 0;
  max-width: 19rem;
  padding: 0 1rem 1.4rem;
  border-radius: 0.4rem;
  background: linear-gradient(160deg, #dfe8ea 0%, var(--bruma) 100%);
  box-shadow: 0 18px 34px -22px rgba(21, 48, 59, 0.6);
}

.sobre-pdf .hoja-mini {
  position: relative;
  top: -1rem;
  margin: 0 auto;
  padding: 0.9rem 0.9rem 1.1rem;
  background: var(--papel);
  border-radius: 2px;
  box-shadow: 0 6px 14px -8px rgba(21, 48, 59, 0.5);
}

.hoja-mini p {
  font-family: var(--titular);
  font-weight: 500;
  color: var(--mar);
  font-size: 0.95rem;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid var(--mar);
}

.hoja-mini span {
  display: block;
  height: 0.9rem;
  border-bottom: 1px dashed var(--bruma);
}

.sobre-rotulo {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mar);
}

.precio {
  font-family: var(--titular);
  font-weight: 500;
  font-size: clamp(3.2rem, 15vw, 4.5rem);
  line-height: 1;
  color: var(--mar);
  white-space: nowrap;
}

.precio-nota {
  margin-top: 0.75rem;
}

.seguir {
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  border-radius: 0.5rem;
  background: var(--papel);
  border: 1px solid var(--bruma);
  font-size: 1rem;
  color: var(--niebla);
}

.seguir strong {
  color: var(--mar-hondo);
}

.garantia {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.sello {
  width: 7rem;
  height: 7rem;
  flex: none;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  border: 2px solid var(--mar);
  outline: 1px solid var(--mar);
  outline-offset: -7px;
  color: var(--mar);
  background: var(--papel);
  transform: rotate(-6deg);
}

.sello b {
  font-family: var(--titular);
  font-weight: 500;
  font-size: 2.2rem;
  line-height: 1;
}

.sello span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.garantia h2 {
  margin-bottom: 0.6rem;
}

.quien-es {
  display: grid;
  gap: 1.5rem;
}

.quien-es img {
  width: 100%;
  max-width: 20rem;
  border-radius: 0.5rem;
}

.quien-es p + p {
  margin-top: 0.9rem;
}

.lista-no li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--bruma);
}

.faq details {
  border-bottom: 1px solid var(--bruma);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.8rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--mar);
  color: var(--mar);
  font-size: 1.2rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding: 0 2.5rem 1.1rem 0;
  color: var(--niebla);
}

.final {
  text-align: left;
}

.final .boton {
  margin-top: 0.5rem;
}

.pie {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  font-size: 0.9375rem;
  color: var(--niebla);
}

.pie p + p {
  margin-top: 0.6rem;
}

/* ---------- Tablet y escritorio ---------- */

@media (min-width: 700px) {
  body {
    font-size: 1.1875rem;
  }

  .hero {
    align-items: center;
  }

  .hero::after {
    background: linear-gradient(
      90deg,
      rgba(21, 48, 59, 0.95) 0%,
      rgba(21, 48, 59, 0.82) 38%,
      rgba(21, 48, 59, 0.25) 72%,
      rgba(21, 48, 59, 0.1) 100%
    );
  }

  .hero-fondo {
    height: 100%;
    object-position: 70% 50%;
  }

  .hero-contenido {
    padding: 2rem 3rem;
    max-width: 40rem;
  }

  .hero-marca {
    top: 2rem;
    left: 3rem;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  }

  .etapa-foto {
    height: 38vh;
    max-height: 26rem;
  }

  .etapa-cuerpo {
    margin-top: -4rem;
    padding-bottom: 6rem;
  }

  .hoja {
    padding: 1.75rem 1.75rem 1.9rem;
  }

  .seccion {
    padding: 3.5rem 1.5rem;
  }

  .seccion-puente {
    padding-top: 0;
    padding-bottom: 1rem;
  }

  .seccion-pliegue {
    padding-top: 1rem;
  }

  .garantia {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2rem;
  }

  .quien-es {
    grid-template-columns: 14rem 1fr;
    align-items: start;
    gap: 2rem;
  }
}

@media (min-width: 1100px) {
  :root {
    --ancho: 38rem;
  }

  .hero-contenido {
    padding-left: 6rem;
    max-width: 46rem;
  }

  .hero-marca {
    left: 6rem;
  }
}

@media (max-height: 560px) {
  .hero h1 {
    font-size: 1.45rem;
  }

  .hero-sub {
    margin-top: 0.5rem;
  }

  .hero .boton {
    margin-top: 0.9rem;
    min-height: 3rem;
  }

  .atajo {
    margin-top: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entra,
  .hoja-linea.nueva .hoja-frase,
  .hoja-linea.nueva .hoja-escena {
    animation: none;
  }

  .boton,
  .opcion {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
