/* Cletters — landing "bosque".
   Colores y tipografia de la app (CLPalette / CLFont), con los tonos de la ilustracion del oso. */

@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

@font-face {
  font-family: "Kaushan Script";
  src: url("../assets/fonts/KaushanScript-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Bosque (sacados de la ilustracion) */
  --forest-wine: #652330;
  --forest-wine-dark: #5a1f2b;
  --forest-night: #2c3027;
  --moss: #3d3f29;
  --leaf-1: #5e6b3a;
  --leaf-2: #847f49;
  --leaf-3: #a9a65e;
  --leaf-4: #c9c57e;
  --bark: #5e3924;

  /* Papel y tinta */
  --paper: #f3e8d2;
  --cream: #f3e3c3;
  --cream-soft: #f6e9d4;
  --sand: #ebcfa6;
  --ink: #2e2522;
  --ink-muted: #5a4e48;
  --ink-faint: #6e625b;
  --ink-light: #8b817b;
  --cream-muted: #e6dcc6;
  --note-white: #faf8f4;

  /* App */
  --wine: #7b2d3b;
  --wine-track: rgba(123, 45, 59, 0.16);
  --marker: #f6e08a;
  --sticky-yellow: #fbf3c6;
  --sticky-pink: #f8d9d5;

  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-paper: 0 1px 0 rgba(46, 37, 34, 0.06), 0 14px 30px rgba(46, 37, 34, 0.1);

  --font-body: "Nunito", system-ui, sans-serif;
  --font-serif: ui-serif, "New York", "Newsreader", Georgia, serif;
  --font-logo: "Kaushan Script", cursive;
  --font-typewriter: "American Typewriter", "Courier New", monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --section-pad: clamp(110px, 12vw, 170px);
  --spring: cubic-bezier(0.3, 1.4, 0.5, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--forest-wine);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
picture {
  display: block;
  max-width: 100%;
}

a {
  color: var(--wine);
}

:focus-visible {
  outline: 3px solid var(--marker);
  outline-offset: 3px;
  border-radius: 6px;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.logo {
  font-family: var(--font-logo);
  font-weight: 400;
}

.container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 45px);
  line-height: 1.05;
  font-weight: 500;
}

.section-text {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.aside-note {
  margin: 24px 0 0;
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--wine);
}

@media (max-width: 760px) {
  .hide-sm {
    display: none !important;
  }
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: var(--radius-md);
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.25s var(--spring), box-shadow 0.25s;
}

.btn:active {
  transform: scale(0.96);
}

.btn--cream {
  background: var(--cream);
  color: var(--forest-wine);
  box-shadow: 0 10px 22px rgba(30, 10, 14, 0.3);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Elementos del bosque ---------- */

.trunk {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--forest-wine-dark);
  filter: url(#brush);
}

.firefly {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--marker);
  box-shadow: 0 0 12px 4px rgba(246, 224, 138, 0.55);
  animation: glow 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow {
  0%, 100% { opacity: 0.15; transform: translate(0, 0) scale(0.8); }
  50% { opacity: 1; transform: translate(10px, -14px) scale(1); }
}

.edge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 60px;
  pointer-events: none;
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
}

.tape {
  position: absolute;
  height: 22px;
  background: rgba(234, 223, 203, 0.92);
}

.lift {
  transition: transform 0.5s var(--spring);
}

.lift:hover {
  transform: rotate(0deg) translateY(-6px) !important;
}

/* ---------- Hero ---------- */

/* La portada mide lo mismo que la pantalla: el texto arriba y el oso ocupa el espacio que sobra. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background-color: var(--forest-wine);
  background-image: radial-gradient(ellipse 60% 45% at 50% 38%, rgba(214, 150, 96, 0.16), rgba(214, 150, 96, 0) 70%);
}

.hero__trunk-main {
  position: absolute;
  top: -20px;
  bottom: -20px;
  left: clamp(-90px, -4vw, -30px);
  width: clamp(110px, 13vw, 200px);
  filter: url(#brush);
  background-color: #472f22;
  background-image:
    radial-gradient(ellipse 30px 70px at 70% 30%, #7a5233 0, #7a5233 60%, rgba(122, 82, 51, 0) 61%),
    radial-gradient(ellipse 22px 50px at 40% 55%, #2f1f18 0, #2f1f18 60%, rgba(47, 31, 24, 0) 61%),
    radial-gradient(ellipse 26px 60px at 75% 72%, #6b4429 0, #6b4429 60%, rgba(107, 68, 41, 0) 61%),
    radial-gradient(ellipse 18px 40px at 30% 18%, #5e3924 0, #5e3924 60%, rgba(94, 57, 36, 0) 61%),
    radial-gradient(ellipse 20px 46px at 55% 88%, #a07a52 0, #a07a52 55%, rgba(160, 122, 82, 0) 56%);
  box-shadow: inset -18px 0 0 rgba(0, 0, 0, 0.12);
}

.hero__trunk-side {
  position: absolute;
  top: -20px;
  bottom: -20px;
  right: -50px;
  width: 130px;
  filter: url(#brush);
  background-color: #3e2a1f;
  background-image:
    radial-gradient(ellipse 18px 60px at 30% 40%, #5e3924 0, #5e3924 60%, rgba(94, 57, 36, 0) 61%),
    radial-gradient(ellipse 16px 44px at 40% 75%, #6b4429 0, #6b4429 60%, rgba(107, 68, 41, 0) 61%);
  box-shadow: inset 14px 0 0 rgba(0, 0, 0, 0.14);
}

.canopy {
  position: absolute;
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.canopy--left {
  top: -10px;
  left: 0;
  width: clamp(280px, 44vw, 660px);
  transform-origin: 0 0;
  animation: sway 7s ease-in-out infinite;
}

.canopy--right {
  top: -20px;
  right: 0;
  width: clamp(260px, 40vw, 600px);
  transform-origin: 50% 0;
  animation: sway-mirror 8s ease-in-out infinite;
}

@keyframes sway {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.2deg); }
}

@keyframes sway-mirror {
  0%, 100% { transform: scaleX(-1) rotate(-1.2deg); }
  50% { transform: scaleX(-1) rotate(1.2deg); }
}

.falling-leaf {
  position: absolute;
  pointer-events: none;
  animation: fall 11s linear infinite;
}

@keyframes fall {
  0% { opacity: 0; transform: translate(0, -40px) rotate(0deg); }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translate(-120px, 620px) rotate(260deg); }
}

/* Barra fija. Sin JavaScript tiene fondo siempre; con JavaScript es transparente sobre la portada
   y main.js le pone .is-scrolled al bajar. */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px var(--gutter);
  background-color: rgba(90, 31, 43, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(30, 10, 14, 0.25), inset 0 -1px 0 rgba(243, 227, 195, 0.08);
  transition: background-color 0.35s, box-shadow 0.35s, -webkit-backdrop-filter 0.35s, backdrop-filter 0.35s;
}

.js .nav-wrap:not(.is-scrolled) {
  background-color: rgba(90, 31, 43, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  box-shadow: none;
}

/* Tres columnas: logo a la izquierda y los enlaces centrados en la pantalla */
.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.nav__brand {
  justify-self: start;
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
}

.nav__brand span {
  font-size: 22px;
  line-height: 1;
}

.nav__links {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  isolation: isolate;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--cream);
  text-decoration: none;
  transform-origin: 50% -40px;
  transition: rotate 0.5s var(--spring), padding 0.35s, color 0.2s;
}

.nav__link:hover {
  color: var(--marker);
}

/* Tabla de madera y cuerdas: solo se ven mientras la barra esta sobre la portada */
.nav__link::before,
.nav__link::after {
  content: "";
  position: absolute;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav__link::before {
  inset: 0;
  border-radius: 8px;
  background: repeating-linear-gradient(to bottom, #8a5a3a 0, #8a5a3a 12px, #74492f 12px, #74492f 13px);
  box-shadow: inset 0 0 0 3px var(--bark), 0 10px 18px rgba(30, 10, 14, 0.3);
  filter: url(#brush);
}

.nav__link::after {
  left: 14px;
  right: 14px;
  bottom: calc(100% - 3px);
  height: 60px;
  background:
    linear-gradient(var(--bark), var(--bark)) left / 2px 100% no-repeat,
    linear-gradient(var(--bark), var(--bark)) right / 2px 100% no-repeat;
}

@media (min-width: 761px) {
  .js .nav-wrap:not(.is-scrolled) .nav__link {
    padding: 10px 16px;
    text-shadow: 0 2px 0 rgba(46, 25, 18, 0.35);
  }

  .js .nav-wrap:not(.is-scrolled) .nav__link::before,
  .js .nav-wrap:not(.is-scrolled) .nav__link::after {
    opacity: 1;
  }

  .js .nav-wrap:not(.is-scrolled) li:nth-child(odd) .nav__link { rotate: -2deg; }
  .js .nav-wrap:not(.is-scrolled) li:nth-child(even) .nav__link { rotate: 2.5deg; }
}

/* ---------- Menu del celular ----------
   Hasta 760px los enlaces (.nav__menu) se guardan detras de un boton hamburguesa y main.js le pone
   .is-menu-open al <header> para abrirlos en una lista. Sin JavaScript los enlaces se quedan a la vista. */

.nav__toggle {
  display: none;
}

@media (max-width: 760px) {
  .nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav__links {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .js .nav__toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--cream);
    cursor: pointer;
  }

  .nav__toggle-bars,
  .nav__toggle-bars::before,
  .nav__toggle-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease-out), background-color 0.2s;
  }

  .nav__toggle-bars {
    position: relative;
  }

  .nav__toggle-bars::before,
  .nav__toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav__toggle-bars::before { top: -7px; }
  .nav__toggle-bars::after { top: 7px; }

  .is-menu-open .nav__toggle-bars { background-color: transparent; }
  .is-menu-open .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .is-menu-open .nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .js .nav__menu {
    display: none;
  }

  .js .is-menu-open .nav__menu {
    grid-column: 1 / -1;
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 6px;
  }

  .js .nav__menu a {
    display: block;
    padding: 14px 2px;
    border-top: 1px solid rgba(243, 227, 195, 0.14);
    font-size: 16px;
    color: var(--cream);
  }

  /* Sobre la portada la barra es transparente; con el menu abierto toma fondo para que se lea */
  .js .nav-wrap.is-menu-open {
    background-color: rgba(90, 31, 43, 0.97);
    box-shadow: 0 10px 30px rgba(30, 10, 14, 0.25);
  }
}

.hero__copy {
  position: relative;
  z-index: 4;
  flex: none;
  padding: calc(74px + clamp(16px, 5vh, 72px)) var(--gutter) 0;
  text-align: center;
}

.hero__title {
  margin: 4px 0 0;
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: clamp(74px, 13.2vw, 194px);
  line-height: 1.02;
  color: var(--cream);
  filter: url(#brush-soft);
  text-shadow: 0 6px 0 rgba(58, 18, 26, 0.35), 0 18px 40px rgba(30, 10, 14, 0.35);
}

.hero__lead {
  margin: 6px auto 0;
  max-width: 30em;
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--cream-soft);
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 22px;
}

.hero__art {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  min-height: 0;
  margin-top: clamp(8px, 2vh, 24px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  container-type: size;
}

/* El oso (recorte con fondo transparente) se apoya en el borde de abajo y toma el mayor tamaño que
   quepa en el espacio libre. El pasto de la base se difumina hacia el fondo. */
.hero__subject img {
  width: min(680px, 94vw);
  width: min(680px, 94vw, 100cqh * 876 / 696);
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, rgba(0, 0, 0, 0));
  mask-image: linear-gradient(to bottom, #000 86%, rgba(0, 0, 0, 0));
}

/* Pasto corto al pie de la portada, detras del oso para no taparlo. */
.hero__grass {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(48px, 6vw, 86px);
  pointer-events: none;
}

/* Entrada del hero al cargar */
.rise {
  animation: rise 0.9s var(--ease-out) both;
}

.rise--2 { animation-delay: 0.35s; }
.rise--3 { animation-delay: 0.55s; }

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

/* ---------- Secciones ---------- */

.section {
  position: relative;
  overflow: hidden;
  padding: var(--section-pad) 0 clamp(100px, 10vw, 150px);
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--wine {
  background: var(--forest-wine);
  color: var(--cream-soft);
}

.section--forest {
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 7vw, 104px);
  background: linear-gradient(to bottom, var(--moss), var(--forest-night));
  color: var(--cream);
}

.section--night {
  background: var(--forest-night);
  color: var(--cream);
}

.section--wine .section-title { color: var(--cream); }
.section--wine .section-text { color: var(--cream-soft); }
.section--night .section-text,
.section--forest .section-text { color: var(--cream-muted); }
.section--night .aside-note,
.section--forest .aside-note { color: var(--marker); }

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
}

.split__text {
  flex: 1 1 340px;
  min-width: 0;
}

.split__visual {
  flex: 1 1 520px;
  min-width: 0;
}

.intro-center {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.intro {
  max-width: 720px;
}

.drift-leaf {
  position: absolute;
  pointer-events: none;
}

/* ---------- Capitulo I: repisa en ramas ---------- */

/* Una biblioteca en el bosque: solo el librero de madera, centrado en su columna. */
.forest-library {
  padding: 32px 0 30px;
}

/* El librero. Sus propias medidas van en px; lo de adentro se mide en cqw (porcentaje de su ancho)
   para que libros, planta y cuadro escalen juntos. */
.bookcase {
  container-type: inline-size;
  position: relative;
  z-index: 2;
  max-width: 400px;
  margin: 0 auto;
  padding: 10px 14px 0;
  border: 13px solid #6b4429;
  border-top-width: 14px;
  border-radius: 8px 8px 4px 4px;
  background-color: #3b2622;
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 52px, rgba(0, 0, 0, 0.2) 52px, rgba(0, 0, 0, 0.2) 53px);
  box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.45), 0 24px 40px rgba(20, 14, 10, 0.4);
}

/* Corona y zoclo del librero */
.bookcase::before,
.bookcase::after {
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  background: #7a5233;
  box-shadow: 0 4px 0 var(--bark);
}

.bookcase::before {
  top: -30px;
  height: 18px;
  border-radius: 8px 8px 3px 3px;
}

.bookcase::after {
  bottom: -26px;
  height: 14px;
  border-radius: 3px;
}

.bookcase__shelf {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 2cqw;
  margin: 0 -14px;
  padding: 5cqw 2.5cqw 0 5cqw;
  border-bottom: 2.4cqw solid #7a5233;
  box-shadow: 0 1.4cqw 1.6cqw -0.6cqw rgba(0, 0, 0, 0.55);
}

.bookcase__shelf:last-child {
  border-bottom: 0;
  box-shadow: none;
  padding-bottom: 0.4cqw;
}

.book {
  position: relative;
  flex: none;
  width: calc(var(--w) * 1.05cqw);
  height: calc(var(--h) * 1.05cqw);
  padding: 2.3cqw 1cqw 0 2.3cqw;
  border-radius: 1.1cqw;
  background: var(--c);
  box-shadow: inset 1.35cqw 0 0 var(--s), 0 0.6cqw 1.2cqw rgba(0, 0, 0, 0.3);
  color: #fffdf8;
  text-align: center;
}

.book--light {
  color: var(--ink);
}

.book p {
  margin: 0;
}

.book__title {
  font-family: var(--font-serif);
  font-size: max(7px, 2.25cqw);
  font-weight: 700;
  line-height: 1.22;
  overflow-wrap: break-word;
}

.book--mid .book__title { font-size: max(7px, 1.65cqw); }
.book--small .book__title { font-size: max(6px, 1.35cqw); }

.book__author {
  font-family: var(--font-serif);
  font-size: max(6px, 1.55cqw);
  line-height: 1.3;
  opacity: 0.85;
}

.book__author::before {
  content: "";
  display: block;
  width: 4.9cqw;
  height: 0.3cqw;
  margin: 1.2cqw auto;
  background: currentColor;
  opacity: 0.5;
}

.book__rating {
  position: absolute;
  left: 1.35cqw;
  right: 0;
  bottom: 1.8cqw;
  font-size: max(7px, 2cqw);
  font-weight: 800;
}

.bookcase__plant {
  flex: none;
  width: 11.5cqw;
  height: 20.7cqw;
  margin: 0 1.45cqw 0.5cqw;
}

.bookcase__frame {
  flex: none;
  width: 18.9cqw;
  height: 17.8cqw;
  margin: 0 -0.4cqw;
  padding: 1.7cqw;
  border: 1.2cqw solid #a07a52;
  border-radius: 0.4cqw;
  background: #efe5d2;
  box-shadow: 0 0.6cqw 1.2cqw rgba(0, 0, 0, 0.35);
  transform: rotate(-4deg);
  transform-origin: 0 100%;
}

.bookcase__picture {
  width: 100%;
  height: 100%;
  background-color: #a8bfd2;
  background-image:
    radial-gradient(circle at 74% 26%, #d4857a 0, #d4857a 15%, rgba(212, 133, 122, 0) 15.5%),
    radial-gradient(ellipse 72% 42% at 34% 104%, #6a8566 0, #6a8566 70%, rgba(106, 133, 102, 0) 71%);
}

.bookcase__stack {
  flex: none;
  width: 24cqw;
  margin-left: 3cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bookcase__stack span {
  display: block;
  height: 3.9cqw;
  border-radius: 0.6cqw;
  background: var(--c);
  box-shadow: inset 0 -0.5cqw 0 rgba(0, 0, 0, 0.18);
}

.bookcase__candle {
  position: relative;
  flex: none;
  width: 4.4cqw;
  height: 11cqw;
  margin-left: 4cqw;
  border-radius: 0.6cqw 0.6cqw 0.3cqw 0.3cqw;
  background: var(--cream);
}

.bookcase__candle span {
  position: absolute;
  bottom: calc(100% + 0.6cqw);
  left: 50%;
  width: 2.2cqw;
  height: 3.7cqw;
  margin-left: -1.1cqw;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--marker);
  box-shadow: 0 0 3cqw 1.4cqw rgba(246, 224, 138, 0.5);
  animation: flicker 2.4s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* ---------- Capitulo II: reseñas ---------- */

.collage {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px 34px;
}

.collage__col {
  flex: 0 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.card-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
}

.polaroid {
  position: relative;
  margin: 0;
  width: 270px;
  max-width: 100%;
  padding: 12px 12px 40px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 20px 36px rgba(30, 10, 14, 0.35);
  transform: rotate(4deg);
}

.polaroid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Componentes de la reseña, como se ven en la app */

.collage__col--wide {
  flex: 1 1 400px;
  max-width: 460px;
  align-items: stretch;
}

.collage__item {
  flex: 0 1 320px;
  min-width: 0;
}

.card-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  color: var(--ink-light);
  font-size: 13px;
  font-weight: 600;
}

.card-actions span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-actions svg {
  width: 19px;
  height: 19px;
}

/* Opinion: hoja de carpeta con perforaciones y margen */
.review-note {
  position: relative;
  padding: 24px 26px 18px 72px;
  border-radius: 6px;
  background: var(--note-white);
  box-shadow: 0 18px 34px rgba(30, 10, 14, 0.3);
  color: var(--ink);
}

.review-note::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50px;
  width: 1.5px;
  background: #d6c2c4;
}

.review-note__holes {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 10px 0 40px;
}

.review-note__holes span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #dcd8d3;
  background: #f4f1ec;
}

.review-note__body {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
}

/* Personaje favorito: ficha con encabezado vino */
.character-card {
  width: 260px;
  max-width: 100%;
  overflow: hidden;
  border: 2.5px solid var(--wine);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 26px rgba(30, 10, 14, 0.3);
  transform: rotate(-1.5deg);
  color: var(--ink);
  text-align: center;
}

.character-card__label {
  margin: 0;
  padding: 8px 12px 9px;
  background: var(--wine);
  color: #f7efe9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.character-card__name {
  margin: 0;
  padding: 22px 16px 24px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}

/* Frase favorita: nota adhesiva rosa con su tira de pegamento */
.quote-note {
  position: relative;
  margin: 0;
  padding: 36px 28px 20px;
  background: var(--sticky-pink);
  box-shadow: 0 14px 26px rgba(30, 10, 14, 0.28);
  transform: rotate(0.8deg);
  color: #3a302c;
}

.quote-note::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: rgba(120, 60, 60, 0.06);
}

.quote-note__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: #4a403b;
}

.quote-note blockquote {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.6;
}

.soundtrack {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 20px 36px rgba(30, 10, 14, 0.3);
  transform: rotate(1.5deg);
  color: var(--ink);
}

.vinyl {
  position: relative;
  margin: 22px auto 0;
  width: 210px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #222 0, #222 3px, #2e2b2a 4px, #222 5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  animation: spin 8s linear infinite;
}

.vinyl::before {
  content: "";
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: #2f4a3a;
}

.vinyl::after {
  content: "";
  position: absolute;
  inset: 47%;
  border-radius: 50%;
  background: var(--paper);
}

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

.soundtrack__now { margin: 22px 0 0; font-size: 11px; font-weight: 900; letter-spacing: 0.14em; color: var(--wine); }
.soundtrack__song { margin: 4px 0 0; font-family: var(--font-serif); font-size: 17px; font-weight: 500; }
.soundtrack__artist { margin: 2px 0 0; font-size: 11px; font-weight: 700; color: var(--ink-muted); }

.progress {
  margin-top: 14px;
  height: 6px;
  border-radius: 3px;
  background: var(--wine-track);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: var(--value, 50%);
  border-radius: inherit;
  background: var(--wine);
}

/* ---------- Capitulo III: frases colgando ---------- */

.hanging-branch {
  position: relative;
  margin-top: 48px;
  height: 26px;
}

.hanging-branch__wood {
  position: absolute;
  left: -2%;
  right: 6%;
  top: 0;
  height: 22px;
  border-radius: 14px;
  background: var(--bark);
  filter: url(#brush);
  box-shadow: 0 10px 16px rgba(59, 38, 34, 0.2);
}

.hanging-branch svg {
  position: absolute;
  left: 0;
  top: -30px;
  width: 100%;
  height: 80px;
  overflow: visible;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 0 20px;
  align-items: start;
}

.quote-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hang {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transform-origin: 50% 0;
  animation: hang 6s ease-in-out infinite;
}

.hang--slow {
  animation-duration: 7.5s;
  animation-direction: reverse;
}

@keyframes hang {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.6deg); }
}

.string {
  width: 2px;
  height: var(--len, 40px);
  background: var(--bark);
}

/* Frases, como se ven en la app. Todas comparten el pie: libro, autor y reacciones. */
.phrase {
  position: relative;
  margin: 0;
  width: 100%;
  padding: 22px 18px 14px;
  box-shadow: 0 12px 22px rgba(46, 37, 34, 0.16);
  color: var(--ink);
}

.phrase blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.55;
}

.phrase__footer {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 10px;
}

.phrase__source {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.phrase__book { font-size: 11px; font-weight: 800; }
.phrase__author { font-size: 11px; font-weight: 600; color: var(--ink-faint); }

.phrase .card-actions {
  flex: none;
  margin-top: 0;
  margin-left: auto;
  gap: 9px;
  font-size: 11px;
}

.phrase .card-actions span {
  gap: 3px;
}

.phrase .card-actions svg {
  width: 14px;
  height: 14px;
}

/* Chincheta (rosa o vino) donde termina el hilo */
.phrase__pin {
  position: absolute;
  z-index: 2;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #f6c4bd 0, #f6c4bd 16%, #d8776f 26%, #bf5f59 100%);
  box-shadow: 0 3px 5px rgba(46, 37, 34, 0.3);
}

.phrase__pin--wine {
  background: radial-gradient(circle at 34% 32%, #c98d97 0, #c98d97 16%, #7b2d3b 28%, #5a1f2b 100%);
}

/* 1. Marcapáginas: papel beige con borde punteado y liston vino */
.phrase--bookmark {
  padding-right: 40px;
  background: #ece3cd;
  transform: rotate(-1.2deg);
}

.phrase--bookmark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px dashed rgba(120, 105, 85, 0.35);
  pointer-events: none;
}

.phrase__ribbon {
  position: absolute;
  top: -6px;
  right: 16px;
  width: 17px;
  height: 48px;
  background: linear-gradient(to bottom, #a5707a, #722f3b 70%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  filter: drop-shadow(0 4px 4px rgba(46, 37, 34, 0.25));
}

/* 2. Nota blanca con chincheta y la frase subrayada con marcador */
.phrase--pinned {
  background: #fff;
  transform: rotate(0.6deg);
}

.phrase--pinned mark {
  padding: 0 2px;
  background: var(--marker);
  color: inherit;
}

/* 3. Tarjeta vino con comillas grandes */
.phrase--wine {
  background: #75303c;
  color: #fbf4ee;
  transform: rotate(-0.8deg);
}

.phrase--wine::after {
  content: "\201D";
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-family: var(--font-serif);
  font-size: 62px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.phrase--wine .phrase__author { color: rgba(251, 244, 238, 0.75); }
.phrase--wine .card-actions { color: rgba(251, 244, 238, 0.85); }

/* 4. Ficha rayada con chincheta vino */
.phrase--ruled {
  padding-top: 28px;
  background-color: var(--note-white);
  background-image: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 23px, rgba(106, 143, 163, 0.22) 23px, rgba(106, 143, 163, 0.22) 24px);
  background-position: 0 4px;
  transform: rotate(0.5deg);
}

.phrase--ruled::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: rgba(196, 140, 150, 0.65);
}

.phrase--ruled blockquote { line-height: 24px; }

/* 5. Boleto con cinta, lineas punteadas y numero */
.phrase--ticket {
  padding-top: 34px;
  background: #f4f0ea;
}

.phrase--ticket::before,
.phrase--ticket::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px dotted rgba(110, 98, 91, 0.4);
}

.phrase--ticket::before { top: 10px; }
.phrase--ticket::after { bottom: 8px; }

.phrase__tape {
  top: -9px;
  left: 50%;
  width: 66px;
  height: 18px;
  margin-left: -33px;
}

.phrase__number {
  position: absolute;
  top: 17px;
  right: 16px;
  font-family: var(--font-typewriter);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--wine);
}

/* ---------- Capitulo IV: de noche ---------- */

.moon {
  position: absolute;
  right: 8%;
  top: 120px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 60px 16px rgba(243, 227, 195, 0.25);
}

/* Recorte del oso sin marco: un halo cálido detrás y la parte de abajo se desvanece en el fondo */
.night-bear {
  position: relative;
  display: block;
  margin-top: 32px;
  width: min(380px, 100%);
}

.night-bear::before {
  content: "";
  position: absolute;
  inset: 4% -8% 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246, 224, 138, 0.2), transparent);
}

.night-bear img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 50%, transparent 92%);
}

.stats {
  flex: 1 1 540px;
  min-width: 0;
  max-width: 600px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  color: var(--ink);
}

.stat-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}

.reading {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.mini-cover {
  width: 42px;
  height: 60px;
  flex: none;
  border-radius: 3px 6px 6px 3px;
  background: var(--c, #2f4a3a);
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.15), 0 6px 12px rgba(46, 37, 34, 0.18);
}

.reading__title { margin: 0; font-family: var(--font-serif); font-size: 15px; font-weight: 500; line-height: 1.2; }
.reading__page { margin: 4px 0 0; font-size: 11px; font-weight: 800; color: var(--ink-muted); }

.stat-card .progress {
  height: 7px;
}

.reading__pace { margin: 10px 0 0; font-size: 11px; line-height: 1.5; font-weight: 700; color: var(--ink-muted); }

.goal {
  position: relative;
  padding: 24px 18px 18px;
  background: var(--sticky-yellow);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
  transform: rotate(1.5deg);
}

.goal__count { margin: 8px 0 0; font-family: var(--font-serif); font-size: 30px; font-weight: 600; line-height: 1; }
.goal__count span { font-size: 15px; font-weight: 400; color: var(--ink-muted); }

.goal__books {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3px;
}

.goal__books span {
  height: 11px;
  border-radius: 2px;
  background: var(--wine-track);
}

.goal__books span.is-read {
  background: var(--wine);
}

/* Tus valoraciones: mismo lenguaje que las demas tarjetas (etiqueta, numero en serif, texto chico
   en gris y los tonos vino de la meta), con una barra por cada media estrella */
.ratings p { margin: 0; }

/* La tarjeta se estira al alto del calendario; las barras crecen para llenar ese espacio */
.ratings {
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.ratings__chart {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
}

.ratings__head {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.ratings .ratings__avg {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.ratings__avg span {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-muted);
}

.ratings__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--wine);
}

.ratings__stars svg {
  width: 13px;
  height: 13px;
}

.ratings__bars {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-rows: 1fr;
  align-items: end;
  gap: 4px;
  min-height: 72px;
}

.ratings__bars span {
  height: calc(var(--n) * 20%);
  min-height: 4px;
  border-radius: 4px 4px 1px 1px;
  background: var(--wine-track);
}

.ratings__bars .is-on { background: rgba(123, 45, 59, 0.5); }
.ratings__bars .is-top { background: var(--wine); }

.ratings__axis {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-faint);
}

.calendar {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  max-width: 280px;
}

.calendar span {
  aspect-ratio: 1 / 1;
  border-radius: 50% 4px 50% 4px;
  background: rgba(46, 37, 34, 0.08);
}

.calendar .l1 { background: var(--leaf-4); }
.calendar .l2 { background: var(--leaf-3); }
.calendar .l3 { background: var(--leaf-1); }
.calendar .l4 { background: var(--forest-night); }

/* ---------- Capitulo V: lectores (componentes del feed, como en la app) ---------- */

/* Un bosque de dia: cielo crema que baja a salvia, troncos en tres profundidades, follaje, rayos
   de sol y pasto. */
.section--woods {
  padding-bottom: 96px;
  background: linear-gradient(to bottom, #ece5cf 0%, #e1e0c4 50%, #c9cda8 100%);
  color: var(--ink);
}

.woods {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.woods__rays {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 250, 232, 0) 0, rgba(255, 250, 232, 0) 90px, rgba(255, 250, 232, 0.32) 90px, rgba(255, 250, 232, 0.32) 150px, rgba(255, 250, 232, 0) 150px, rgba(255, 250, 232, 0) 280px);
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, rgba(0, 0, 0, 0) 80%);
  mask-image: linear-gradient(to bottom, #000 10%, rgba(0, 0, 0, 0) 80%);
}

.woods__trunk {
  position: absolute;
  top: 0;
  bottom: 60px;
  left: var(--x);
  width: var(--w);
  filter: url(#brush);
}

.woods__trunk--far { background: #c7c9aa; }
.woods__trunk--mid { background: #a3a882; box-shadow: inset -6px 0 0 rgba(0, 0, 0, 0.06); }

.woods__trunk--near {
  bottom: 30px;
  background-color: #4a3022;
  background-image:
    radial-gradient(ellipse 14px 40px at 60% 30%, #6b4429 0, #6b4429 60%, rgba(107, 68, 41, 0) 61%),
    radial-gradient(ellipse 12px 32px at 35% 68%, #2f1f18 0, #2f1f18 60%, rgba(47, 31, 24, 0) 61%);
  box-shadow: inset -12px 0 0 rgba(0, 0, 0, 0.14);
}

.woods__canopy {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 170px;
}

.woods__ground {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 170px;
}

/* La escena: el cartel al centro y las publicaciones dispersas entre los arboles.
   Cada .scatter se coloca con left/right/top y gira --r. */
.woods-scene {
  position: relative;
  height: 620px;
}

.scatter {
  position: absolute;
  z-index: 2;
  width: 240px;
}

/* Publicaciones en version chica, giradas --r */
.scatter .post {
  padding: 12px 14px 10px;
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(46, 37, 34, 0.2);
  transform: rotate(var(--r, 0deg));
}

.scatter .post__head { gap: 8px; }
.scatter .post__avatar { width: 30px; height: 30px; font-size: 13px; }
.scatter .post__name { font-size: 12px; }
.scatter .post__handle,
.scatter .post__time { font-size: 11px; }
.scatter .post__time { margin-top: 2px; }

.scatter .post__body {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
}

.scatter .post__actions {
  margin-top: 8px;
  gap: 18px;
}

.scatter .post__actions span { gap: 4px; font-size: 11px; }
.scatter .post__actions svg { width: 15px; height: 15px; }

.scatter .post--book { min-height: 196px; }
.scatter .post__spacer { height: 3.4em; }
.scatter .post__book-space { width: 70px; height: 11em; }

.scatter .post__book {
  right: -4px;
  bottom: -18px;
  width: 84px;
  height: 110px;
  padding: 10px 6px 0 12px;
  border-radius: 5px;
  box-shadow: inset 5px 0 0 var(--spine, #161616), -4px 6px 12px rgba(46, 37, 34, 0.25);
}

.scatter .post__book-title { font-size: 11px; }
.scatter .post__book-author { font-size: 9px; }
.scatter .post__book-author::before { width: 22px; height: 1px; margin: 5px auto; }
.scatter .post__book .post__stars { margin-top: 6px; gap: 1px; }
.scatter .post__stars svg { width: 9px; height: 9px; }

/* Cartel de madera colgado de las ramas: tablas con vetas, marco y cuatro clavos */
.sign {
  position: absolute;
  z-index: 3;
  top: 0;
  left: calc(50% - 210px);
  width: 420px;
  isolation: isolate;
}

/* Cuerdas de las que cuelga el cartel */
.sign::before,
.sign::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: calc(100% - 12px);
  width: 3px;
  height: 220px;
  border-radius: 2px;
  background: var(--bark);
}

.sign::before { left: 74px; rotate: 4deg; transform-origin: bottom; }
.sign::after { right: 74px; rotate: -4deg; transform-origin: bottom; }

.sign__board {
  position: relative;
  isolation: isolate;
  padding: 30px 36px 30px;
  text-align: center;
  color: var(--cream);
}

.sign__board::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 12px;
  background: repeating-linear-gradient(to bottom, #8a5a3a 0, #8a5a3a 30px, #74492f 30px, #74492f 32px);
  box-shadow: inset 0 0 0 7px var(--bark), 0 20px 34px rgba(46, 37, 34, 0.3);
  filter: url(#brush);
}

.sign__board::after {
  content: "";
  position: absolute;
  inset: 15px;
  pointer-events: none;
  background:
    radial-gradient(circle at 0 0, #2e1f19 0, #2e1f19 3px, rgba(0, 0, 0, 0) 4px),
    radial-gradient(circle at 100% 0, #2e1f19 0, #2e1f19 3px, rgba(0, 0, 0, 0) 4px),
    radial-gradient(circle at 0 100%, #2e1f19 0, #2e1f19 3px, rgba(0, 0, 0, 0) 4px),
    radial-gradient(circle at 100% 100%, #2e1f19 0, #2e1f19 3px, rgba(0, 0, 0, 0) 4px);
}

.sign__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--cream);
  text-shadow: 0 2px 0 rgba(46, 25, 18, 0.35);
}

.sign__text {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #f1e2c8;
}

/* En pantallas angostas la escena pasa a flujo normal: el cartel y las publicaciones en rejilla */
@media (max-width: 1180px) {
  .woods-scene {
    height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    justify-items: center;
    gap: 34px 24px;
  }

  .scatter,
  .sign {
    position: static;
    width: min(100%, 300px);
  }

  .sign {
    grid-column: 1 / -1;
    width: min(100%, 440px);
  }

  .sign::before,
  .sign::after { display: none; }
}

/* Publicaciones */
.post {
  position: relative;
  overflow: hidden;
  padding: 16px 18px 13px;
  border: 1px solid rgba(46, 37, 34, 0.08);
  border-radius: 18px;
  background: var(--note-white);
  box-shadow: 0 16px 32px rgba(46, 37, 34, 0.1);
}

.post__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c, var(--wine));
  object-fit: cover;
  color: #fffdf8;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
}

.post__who {
  flex: 1;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.post__name { font-size: 13px; font-weight: 800; }
.post__handle { font-size: 11px; font-weight: 600; color: var(--ink-light); }

.post__time {
  align-self: flex-start;
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-light);
}

.post__body {
  margin: 11px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
}

.post__actions {
  margin-top: 11px;
  display: flex;
  gap: 34px;
  color: var(--ink-light);
}

.post__actions span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}

.post__actions svg {
  width: 18px;
  height: 18px;
}

/* Resena: la portada se asoma inclinada en la esquina y el texto le hace espacio */
.post--book {
  min-height: 250px;
}

.post__spacer {
  float: right;
  width: 0;
  height: 3.7em;
}

.post__book-space {
  float: right;
  clear: right;
  width: 102px;
  height: 12em;
}

.post__book {
  position: absolute;
  right: -5px;
  bottom: -24px;
  width: 112px;
  height: 146px;
  padding: 14px 8px 0 16px;
  border-radius: 7px;
  background: var(--cover, #232323);
  box-shadow: inset 7px 0 0 var(--spine, #161616), -6px 8px 18px rgba(46, 37, 34, 0.25);
  color: #fffdf8;
  text-align: center;
  transform: rotate(-6deg);
}

.post__book p { margin: 0; }

.post__book-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
}

.post__book-author {
  font-family: var(--font-serif);
  font-size: 12px;
  opacity: 0.85;
}

.post__book-author::before {
  content: "";
  display: block;
  width: 32px;
  height: 1.5px;
  margin: 7px auto;
  background: currentColor;
  opacity: 0.5;
}

.post__book .post__stars {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 3px;
}

.post__stars svg {
  width: 12px;
  height: 12px;
}

/* ---------- Final ---------- */

.finale {
  position: relative;
  overflow: hidden;
  margin-top: -2px; /* se monta sobre el pasto de la seccion anterior para tapar la costura entre ambas */
  padding: var(--section-pad) 0 clamp(150px, 14vw, 210px);
  text-align: center;
  background-color: var(--forest-wine);
  background-image: radial-gradient(ellipse 50% 50% at 50% 55%, rgba(214, 150, 96, 0.16), rgba(214, 150, 96, 0) 70%);
  color: var(--cream-soft);
}

.finale .container {
  max-width: 900px;
}

.arch {
  margin: 0 auto;
  width: min(360px, 80vw);
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 28px 28px;
  overflow: hidden;
  border: 8px solid var(--cream);
  box-shadow: 0 24px 48px rgba(30, 10, 14, 0.4);
}

.arch picture,
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 50%;
}

.finale__kicker { margin: 40px 0 0; font-family: var(--font-serif); font-size: 16px; font-style: italic; color: var(--sand); }

.finale__title {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(33px, 4.2vw, 55px);
  line-height: 1.04;
  font-weight: 500;
  color: var(--cream);
}

.finale__text { margin: 20px auto 0; max-width: 30em; font-size: 14px; line-height: 1.6; }
.finale .btn { margin-top: 32px; }

.finale__grass {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  height: 140px;
  pointer-events: none;
}

/* ---------- Pie ---------- */

.footer {
  position: relative;
  margin-top: -2px; /* tapa la costura con el pasto del final */
  padding: 28px var(--gutter) 44px;
  /* Un tono ajustado a mano: el pasto del final pasa por el filtro de pincel y el navegador lo pinta
     ligeramente distinto que var(--forest-night); este valor iguala lo que se ve en pantalla. */
  background: #2b3226;
  color: var(--cream-muted);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.footer__logo { font-size: 26px; color: var(--cream); }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.footer__links a {
  padding: 10px 2px;
  color: var(--cream-muted);
  font-weight: 800;
  font-size: 11px;
  text-decoration: none;
}

.footer__links a:hover { color: #fff; }
.footer__copy { margin: 0; font-size: 11px; font-weight: 700; color: #c8bca6; }

/* ---------- Animaciones al hacer scroll ----------
   Sin JavaScript todo se ve en su lugar. Con JavaScript (clase .js en <html>), cada elemento con data-reveal
   empieza un poco desplazado y transparente, y main.js le pone .is-visible cuando entra en pantalla. */

.js [data-reveal] {
  opacity: 0;
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.js [data-reveal="up"] { transform: translateY(40px); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="bloom"] { transform: scale(0.92); }

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
  }

  .falling-leaf { display: none; }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
