/* =============================================================
   KAOS MUNDO SENSORIAL — styles.css
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --blue: #1596C7;
  --blue-deep: #0d6f8f;
  --mustard: #E8A324;
  --mustard-deep: #b87a12;
  --purple: #8B3FAE;
  --purple-deep: #5c2b78;
  --green: #4CA430;
  --green-deep: #366e21;
  --turquoise: #04A9B8;
  --turquoise-deep: #037783;
  --cream: #F7F0E6;
  --cream-2: #EFE4D0;
  --paper: #FFFFFF;

  --ink: #211A15;
  --ink-soft: #4A3E34;
  --ink-mute: #786A5C;
  --line: rgba(33, 26, 21, 0.13);

  --bg: var(--cream);
  --accent: var(--blue);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-accent: "Fraunces", Georgia, serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
  --container: 1180px;
  --radius: 22px;
  --radius-sm: 12px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.03; letter-spacing: -0.01em; font-family: var(--font-display); }
ul { list-style: none; padding: 0; }

::selection { background: var(--purple); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 600; font-size: .95rem;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 720px) { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-dot, var(--blue)); flex: none;
}

.kicker-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-mute);
  letter-spacing: .02em;
}

/* Reveal-on-scroll: must be usable with JS disabled */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
noscript + .reveal,
.no-js .reveal { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
.section-title {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  color: var(--ink);
}
.section-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.55;
}
.pull {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--ink);
  line-height: 1.35;
}

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s var(--ease-out);
}
.btn-primary {
  background: var(--blue);
  color: var(--cream);
  box-shadow: 0 10px 24px -10px rgba(21, 150, 199, .55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(21, 150, 199, .65); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-3px); }
.btn-dark {
  background: var(--ink);
  color: var(--cream);
}
.btn-dark:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -12px rgba(33,26,21,.5); }
.btn[data-tone="mustard"] { background: var(--mustard); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(232,163,36,.55); }
.btn[data-tone="green"] { background: var(--green); color: var(--cream); box-shadow: 0 10px 24px -10px rgba(76,164,48,.5); }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; color: var(--ink-soft);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; color: var(--ink);
  padding-block: .3rem;
  position: relative;
}
.link-arrow::after {
  content: "";
  width: 100%; height: 1.5px;
  position: absolute; left: 0; bottom: -1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(.35);
  opacity: .4;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); opacity: 1; }
.link-arrow svg {
  width: 16px; height: 16px; flex: none;
  transition: transform .35s var(--ease-out);
}
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow[data-tone="turquoise"] { color: var(--turquoise-deep); }
.link-arrow[data-tone="cream"] { color: var(--cream); }
.link-arrow[data-tone="cream"]::after { opacity: .55; }

.chapter-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 9vw, 6.5rem);
  line-height: .8;
  color: var(--chapter-color, var(--ink));
  opacity: .1;
  letter-spacing: -0.03em;
  user-select: none;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  pointer-events: none;
  animation: orbitSpin 90s linear infinite;
}
.orbit-ring circle,
.orbit-ring ellipse { fill: none; }
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

:is(.hero-photo, .timeline-photo) { isolation: isolate; }
:is(.hero-photo, .timeline-photo) img {
  transition: transform .7s var(--ease-out), filter .7s var(--ease-out);
  filter: saturate(1.04);
}
:is(.hero-photo, .timeline-photo)::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(247,240,230,.08), inset 0 -40px 60px -40px rgba(0,0,0,.28);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  :is(.hero-photo, .timeline-photo):hover img { transform: scale(1.035); }
}

/* Placeholder treatment for photos not yet supplied */
.photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .7rem; text-align: center; padding: 1.5rem; color: rgba(247,240,230,.92);
}
.photo-placeholder svg { width: 38px; height: 38px; opacity: .85; }
.photo-placeholder span { font-size: .85rem; font-weight: 600; opacity: .9; }

/* =============================================================
   6. Header / Nav
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(247, 240, 230, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out), backdrop-filter .35s var(--ease-out);
}
.site-header.is-solid {
  background: rgba(247, 240, 230, .92);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header.is-solid { backdrop-filter: blur(10px) saturate(140%); }
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  color: var(--ink);
  flex: none;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 2.1rem; }
.main-nav a {
  font-weight: 600; font-size: .95rem; color: var(--ink-soft);
  position: relative; padding-block: .3rem;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--blue);
  transition: right .3s var(--ease-out);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 1.4rem; }
.header-actions .btn { padding: .65rem 1.25rem; font-size: .9rem; }
.header-actions .link-arrow { font-size: .92rem; }
.container > .header-actions .link-arrow { display: none; }

.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: ""; display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
  position: relative;
}
.nav-toggle-label span::before { position: absolute; top: -7px; }
.nav-toggle-label span::after { position: absolute; top: 7px; }

.mobile-nav {
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--cream);
  z-index: 90;
  padding: 2rem 1.25rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  overflow-y: auto;
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 1.6rem; }
.mobile-nav a { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--ink); }
.mobile-nav .header-actions { margin-top: 2rem; flex-direction: column; align-items: center; gap: 1.4rem; }
.mobile-nav .header-actions .btn { width: 100%; }
.mobile-nav .header-actions .link-arrow {
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
}

.nav-toggle-input:checked ~ .mobile-nav {
  opacity: 1; transform: none; pointer-events: auto;
}
.nav-toggle-input:checked ~ .nav-toggle-label span { background: transparent; }
.nav-toggle-input:checked ~ .nav-toggle-label span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle-input:checked ~ .nav-toggle-label span::after { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 960px) {
  .main-nav { display: block; }
  .container > .header-actions .link-arrow { display: inline-flex; }
  .nav-toggle-label, .mobile-nav { display: none; }
}

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  overflow: clip;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-eyebrow { margin-bottom: 1.1rem; }
.hero-title {
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: .98;
}
.hero-title .line-2 { display: block; }
.hero-title .accent-blue { color: var(--blue); }
.hero-title .accent-purple { color: var(--purple); }
.hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 2.2rem; }

.hero-media { position: relative; z-index: 1; }
.hero-photo-wrap {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
}
.hero-orbit {
  position: absolute; z-index: 0;
  top: 50%; left: 50%;
  width: 122%; height: 122%;
  transform: translate(-50%, -50%);
  overflow: visible;
  opacity: .55;
}
.hero-photo {
  position: relative; z-index: 1;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 60px -25px rgba(33, 26, 21, .35);
  background: linear-gradient(155deg, var(--blue), var(--blue-deep));
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
  .hero-photo-wrap { margin-inline: 0; max-width: 460px; margin-left: auto; }
}

/* =============================================================
   8. Marquee (philosophy)
   ============================================================= */
.marquee-section {
  position: relative;
  background: var(--purple);
  color: var(--cream);
  padding-block: clamp(1.6rem, 4vw, 2.4rem);
  overflow: hidden;
}
.marquee-section::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  border-top: 1.5px dashed rgba(247,240,230,.28);
}
.marquee-section::after {
  content: "";
  position: absolute; top: -4.5px; left: 6%;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 0 4px rgba(4,169,184,.25);
  animation: marqueeDrift 16s ease-in-out infinite alternate;
}
@keyframes marqueeDrift { from { left: 4%; } to { left: 92%; } }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 4.2vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding-inline: 1.2rem;
  white-space: nowrap;
}
.marquee-track span::after {
  content: "";
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--mustard);
  margin-left: .9rem;
  flex: none;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================
   9. Generic section frame
   ============================================================= */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-cream-2 { background: var(--cream-2); }
.section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: clamp(2.4rem, 5vw, 3.4rem); }
.section-head-numbered { flex-direction: row; align-items: flex-start; gap: 1.4rem; }
.section-head-numbered .chapter-num { margin-top: -.3rem; flex: none; }

/* =============================================================
   10. Podcast section
   ============================================================= */
.podcast-section { background: var(--ink); color: var(--cream); position: relative; overflow: clip; }
.podcast-section .section-title { color: var(--cream); }
.podcast-section .section-lede { color: rgba(247,240,230,.7); }

.podcast-head { display: flex; align-items: flex-start; gap: 1.4rem; max-width: 62ch; }
.podcast-head .chapter-num { margin-top: -.4rem; }

.podcast-body { display: grid; gap: 2.2rem; margin-top: clamp(2.4rem, 5vw, 3.2rem); align-items: center; }
.podcast-list { display: grid; gap: 1.1rem; align-content: start; }
.podcast-list li { display: flex; gap: .8rem; align-items: flex-start; font-size: .98rem; color: rgba(247,240,230,.75); }
.podcast-list li::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--turquoise); margin-top: .5rem;
}

.podcast-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(155deg, #2c2119 0%, var(--ink) 100%);
  border: 1px solid rgba(247,240,230,.1);
  display: flex; align-items: center; justify-content: center;
  transition: transform .5s var(--ease-out);
}
.podcast-frame:hover { transform: translateY(-4px); }
.podcast-frame-thumb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .5; z-index: 0;
}
.podcast-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(155deg, rgba(33,26,21,.35), rgba(33,26,21,.75));
}
.podcast-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.podcast-play-wrap {
  background: none; padding: 0; z-index: 2;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.podcast-badge {
  position: absolute; top: 1.1rem; left: 1.1rem;
  background: var(--mustard); color: var(--ink);
  font-weight: 700; font-size: .78rem; letter-spacing: .03em;
  text-transform: uppercase;
  padding: .45rem .85rem; border-radius: 999px;
  z-index: 2;
}
.podcast-play-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.podcast-play {
  position: relative; z-index: 1;
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(247,240,230,.14);
  border: 1.5px solid rgba(247,240,230,.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
}
.podcast-play svg { width: 26px; height: 26px; margin-left: 3px; }
.orbit-pulse {
  position: absolute; z-index: 0;
  width: 74px; height: 74px; border-radius: 50%;
  border: 1.5px solid var(--turquoise);
  animation: orbitPulse 2.6s var(--ease-soft) infinite;
}
.orbit-pulse-2 { animation-delay: 1.3s; }
@keyframes orbitPulse { from { transform: scale(1); opacity: .55; } to { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .orbit-pulse { animation: none; opacity: 0; } }
.podcast-frame-caption {
  position: absolute; bottom: 1.1rem; left: 1.1rem; right: 1.1rem;
  color: rgba(247,240,230,.6);
  font-size: .85rem; font-weight: 500;
  text-align: center;
}

@media (min-width: 960px) {
  .podcast-body { grid-template-columns: .8fr 1.4fr; align-items: stretch; }
  .podcast-list { align-content: center; }
}

/* =============================================================
   11. Guide section
   ============================================================= */
.guide-layout { display: grid; gap: 2.5rem; align-items: stretch; }
.guide-copy { position: relative; }
.chapter-num-watermark { position: absolute; top: -1.4rem; left: -.2rem; z-index: -1; }
.guide-list { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.guide-list li { display: flex; gap: .9rem; align-items: flex-start; font-size: 1.02rem; color: var(--ink-soft); }
.guide-list li strong { color: var(--ink); }
.check-mark {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; margin-top: .1rem;
}

.guide-visual { display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
.guide-cover {
  position: relative;
  width: 100%;
  max-width: 300px;
}
.guide-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 60px -28px rgba(33,26,21,.4);
  transform: rotate(-3deg);
  transition: transform .5s var(--ease-out);
}
.guide-cover:hover img { transform: rotate(-1deg) translateY(-4px); }
.guide-stamp {
  position: absolute; top: -1.2rem; right: -1.2rem;
  width: 64px; height: 64px;
  transform: rotate(-9deg);
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 10px 22px -12px rgba(33,26,21,.4);
}
.guide-stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.guide-stamp span {
  font-size: .58rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; text-align: center; line-height: 1.25;
  color: var(--turquoise-deep);
}
.guide-card-foot {
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
  text-align: center;
  width: 100%; max-width: 320px;
}
.guide-pages { font-size: .82rem; color: var(--ink-mute); font-weight: 600; }
.guide-card-foot .btn { background: var(--blue); color: var(--cream); box-shadow: 0 10px 22px -10px rgba(21,150,199,.5); }
.guide-card-foot .btn:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -10px rgba(21,150,199,.6); }

@media (min-width: 960px) { .guide-layout { grid-template-columns: 1fr .85fr; } }

/* =============================================================
   12. WhatsApp community
   ============================================================= */
.whatsapp-section { position: relative; background: var(--ink); color: var(--cream); overflow: clip; }
.whatsapp-section .chapter-num { position: absolute; top: 0; right: 1.5rem; }
.whatsapp-waveform { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34px; color: rgba(76,164,48,.3); }
.whatsapp-layout { position: relative; display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
.whatsapp-icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
}
.whatsapp-icon svg { width: 28px; height: 28px; color: var(--ink); }
.whatsapp-section .section-title { color: var(--cream); }
.whatsapp-section .section-lede { color: rgba(247,240,230,.72); }
.whatsapp-section .btn-primary { margin-top: 1.8rem; }

@media (min-width: 720px) {
  .whatsapp-layout { flex-direction: row; align-items: center; justify-content: space-between; gap: 3rem; }
  .whatsapp-copy { max-width: 60ch; }
}

/* =============================================================
   13. Sobre ti — timeline narrative
   ============================================================= */
.timeline { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.timeline-block { display: grid; gap: 2rem; align-items: center; }
.timeline-media { position: relative; }
.timeline-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 24px 46px -22px rgba(33,26,21,.35);
}
.timeline-photo img { width: 100%; height: 100%; object-fit: cover; }
.timeline-photo .tint { position: absolute; inset: 0; mix-blend-mode: color; opacity: .55; }
.timeline-photo .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35) 100%); }
.timeline-block[data-tone="blue"] .tint { background: var(--blue); }
.timeline-block[data-tone="mustard"] .tint { background: var(--mustard); }
.timeline-block[data-tone="purple"] .tint { background: var(--purple); }
.timeline-block[data-tone="blue"] .timeline-photo { background: linear-gradient(155deg, var(--blue), var(--blue-deep)); }
.timeline-block[data-tone="mustard"] .timeline-photo { background: linear-gradient(155deg, var(--mustard), var(--mustard-deep)); }
.timeline-block[data-tone="purple"] .timeline-photo { background: linear-gradient(155deg, var(--purple), var(--purple-deep)); }

.timeline-photo.is-wide { aspect-ratio: 3 / 2; }

.timeline-photo.is-video {
  aspect-ratio: auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  padding: .6rem;
}
.timeline-photo.is-video video {
  display: block;
  width: auto; max-width: 100%;
  height: auto; max-height: 560px;
  border-radius: 16px;
  margin: 0 auto;
}

.timeline-copy .kicker-num { display: block; margin-bottom: .8rem; }
.timeline-copy .link-arrow { margin-top: .6rem; }
.timeline-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; margin-bottom: 1rem; }
.timeline-copy p { color: var(--ink-soft); font-size: 1.05rem; max-width: 52ch; }
.timeline-copy .pull { margin-top: 1.1rem; }
.timeline-block[data-tone="blue"] .kicker-num { color: var(--blue); }
.timeline-block[data-tone="mustard"] .kicker-num { color: var(--mustard); }
.timeline-block[data-tone="purple"] .kicker-num { color: var(--purple); }

.timeline-block.is-panoramic { gap: 1.8rem; }
.timeline-block.is-panoramic .timeline-copy { max-width: 62ch; }
.pull-on-photo {
  position: absolute; z-index: 2; left: 1.6rem; right: 1.6rem; bottom: 1.4rem;
  color: var(--cream); margin: 0; text-shadow: 0 2px 16px rgba(0,0,0,.4);
}

@media (min-width: 960px) {
  .timeline-block { grid-template-columns: .85fr 1.15fr; gap: 3.5rem; }
  .timeline-block.is-reverse { grid-template-columns: 1.15fr .85fr; }
  .timeline-block.is-reverse .timeline-media { order: 2; }
  .timeline-block .timeline-media { max-width: 380px; }
  .timeline-block.is-reverse .timeline-media { max-width: 380px; margin-left: auto; }

  .timeline-block.is-panoramic { grid-template-columns: 1fr; }
  .timeline-block.is-panoramic .timeline-media { max-width: none; margin-left: 0; order: 0; }
  .timeline-block.is-panoramic .timeline-photo.is-wide { aspect-ratio: 2.1 / 1; }
}

/* =============================================================
   14. Contact
   ============================================================= */
.contact-layout { display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
.contact-email {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--ink);
  border-bottom: 2px solid var(--line);
  padding-bottom: .3rem;
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.contact-email:hover { border-color: var(--blue); color: var(--blue); }
.social-row { display: flex; gap: .9rem; flex-wrap: wrap; }
.social-link {
  display: flex; align-items: center; gap: .55rem;
  padding: .75rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-weight: 600; font-size: .92rem;
  transition: border-color .25s var(--ease-out), transform .25s var(--ease-out), background-color .25s var(--ease-out);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { border-color: var(--ink); transform: translateY(-2px); background: var(--paper); }

@media (min-width: 720px) {
  .contact-layout { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* =============================================================
   15. Footer
   ============================================================= */
.site-footer { position: relative; background: var(--ink); color: rgba(247,240,230,.78); padding-block: clamp(2.6rem, 5vw, 3.6rem); overflow: clip; }
.footer-watermark {
  position: absolute; z-index: 0;
  bottom: -.28em; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 26vw, 16rem);
  line-height: .8;
  color: rgba(247,240,230,.04);
  white-space: nowrap;
  letter-spacing: -.02em;
}
.footer-top, .footer-bottom { position: relative; z-index: 1; }
.footer-top { display: flex; flex-direction: column; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(247,240,230,.14); }
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; }
.footer-brand span { font-family: var(--font-display); font-weight: 800; color: var(--cream); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { font-size: .92rem; font-weight: 600; color: rgba(247,240,230,.78); }
.footer-nav a:hover { color: var(--cream); }
.footer-bottom { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.6rem; font-size: .84rem; }
.footer-social { display: flex; gap: .8rem; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(247,240,230,.22);
  color: rgba(247,240,230,.7);
  transition: border-color .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}
.footer-social a:hover { color: var(--cream); border-color: var(--turquoise); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }

@media (min-width: 720px) {
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* =============================================================
   16. Responsive base adjustments
   ============================================================= */
@media (min-width: 540px) { .hero-title { letter-spacing: -0.025em; } }
@media (min-width: 1280px) { .section { padding-block: clamp(5rem, 8vw, 8rem); } }

/* =============================================================
   17. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 60s; }
  .reveal { transition-duration: .3s; }
}

/* =============================================================
   18. Legal nav (footer) + cookie banner
   ============================================================= */
.footer-legal {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  font-size: .8rem;
}
.footer-legal a { color: rgba(247,240,230,.55); }
.footer-legal a:hover { color: var(--cream); }
.footer-legal .dot { color: rgba(247,240,230,.3); }

.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--ink); color: var(--cream);
  padding: 1.1rem 1.25rem; box-shadow: 0 -12px 30px rgba(0,0,0,.25);
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .88rem; color: rgba(247,240,230,.85); max-width: 640px; }
.cookie-banner a { text-decoration: underline; color: var(--cream); }
.cookie-banner-actions { display: flex; gap: .6rem; flex-wrap: wrap; flex: none; }
.cookie-banner-actions button {
  padding: .6rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .85rem;
}
#cookie-accept { background: var(--blue); color: var(--cream); }
#cookie-reject { background: transparent; border: 1.5px solid rgba(247,240,230,.4); color: var(--cream); }

/* =============================================================
   19. Legal pages (aviso-legal / privacidad / cookies)
   ============================================================= */
.legal-main { padding-block: clamp(3rem, 7vw, 5rem); }
.legal-main .container { max-width: 760px; }
.legal-main h1 { font-size: clamp(2rem, 4.5vw, 2.6rem); font-weight: 800; margin-bottom: .6rem; }
.legal-updated { color: var(--ink-mute); font-size: .9rem; margin-bottom: 2.4rem; }
.legal-main h2 {
  font-size: 1.3rem; font-weight: 800; color: var(--purple-deep);
  margin-top: 2.4rem; margin-bottom: .9rem;
}
.legal-main h2:first-of-type { margin-top: 0; }
.legal-main h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.4rem; margin-bottom: .5rem; }
.legal-main p, .legal-main li { color: var(--ink-soft); line-height: 1.7; margin-bottom: .9rem; }
.legal-main ul, .legal-main ol { padding-left: 1.3rem; margin-bottom: .9rem; }
.legal-main ul { list-style: disc; }
.legal-main ol { list-style: decimal; }
.legal-main a { color: var(--blue-deep); text-decoration: underline; }
.legal-main strong { color: var(--ink); }
.legal-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .92rem; color: var(--ink-soft);
  margin-bottom: 2rem;
}
.legal-back svg { width: 16px; height: 16px; }
