/**
 * magdangelica.com · the living version.
 *
 * Palette "Tierra" and the three typefaces come from the client's design
 * system. What this version adds is movement, always slow and always in her
 * colours: auras that drift, waves that flow, photos that open like a curtain.
 * Gradients stay inside the palette (sage, sand, soft violet, clay): no navy,
 * no pure black, no bright gold. Parisienne is only for her name.
 *
 * Phone first: every rule is written for a phone and widened from 760/900px.
 * Motion uses only transform and opacity, pauses off-screen, and switches off
 * entirely with "reduce motion".
 *
 * Shape rule: buttons and chips are pills, photos and panels use --radius,
 * form fields use --radius-sm, hero photos may be arches.
 *
 * 1 Fonts · 2 Tokens · 3 Base · 4 Living layer · 5 Layout · 6 Buttons
 * 7 Motion · 8 Photos · 9 Header and menu · 10 Page header · 11 Components
 * 12 Patterns for inner pages · 13 Footer · 14 Transitions and reduced motion
 */

/* ---------- 1 Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Playfair Display Variable';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-display-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display Variable';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-display-latin-wght-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans Variable';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/nunito-sans-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Parisienne';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/parisienne-latin-400-normal.woff2') format('woff2');
}

/* ---------- 2 Tokens ---------- */
:root {
  --arena: #f3eae5;
  --arena-clara: #faf6f3;
  --piedra: #baafa3;
  --arcilla: #947f6e;
  --cacao: #615143;
  --espresso: #332c27;
  --noche: #29231f;
  --salvia: #6f8a63;
  --salvia-texto: #4f6845;
  --salvia-suave: #e3e8dc;
  --violeta: #877f96;
  --violeta-texto: #6a5f86;
  --violeta-suave: #e7e2ee;
  --rubor: #f0ddd0;

  --bg: var(--arena);
  --ink: var(--espresso);
  --muted: var(--cacao);
  --line: color-mix(in srgb, var(--arcilla) 34%, transparent);

  --grad-brand: linear-gradient(110deg, var(--salvia-texto) 0%, #557150 45%, var(--violeta-texto) 100%);
  --grad-text: linear-gradient(100deg, var(--salvia-texto) 0%, var(--violeta-texto) 38%, #8a6a55 68%, var(--salvia-texto) 100%);
  --grad-soft: linear-gradient(135deg, var(--salvia-suave) 0%, var(--arena-clara) 48%, var(--violeta-suave) 100%);
  --grad-warm: linear-gradient(135deg, var(--rubor) 0%, var(--arena-clara) 55%, var(--salvia-suave) 100%);
  --grad-night:
    radial-gradient(80% 90% at 12% 0%, #4c4159 0%, transparent 60%),
    radial-gradient(70% 80% at 100% 100%, #3f4d39 0%, transparent 62%),
    linear-gradient(160deg, #3a312b, var(--noche));

  --serif: 'Playfair Display Variable', 'Playfair Display', Georgia, serif;
  --sans: 'Nunito Sans Variable', 'Nunito Sans', system-ui, sans-serif;
  --script: 'Parisienne', 'Playfair Display Variable', cursive;

  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section: clamp(3.75rem, 9vw, 7.5rem);
  --shadow: 0 24px 60px -30px rgb(51 44 39 / 0.55);
  --shadow-soft: 0 14px 40px -26px rgb(51 44 39 / 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 4.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

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

img {
  height: auto;
}

picture {
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 8.6vw, 4.3rem);
}

h2 {
  font-size: clamp(1.85rem, 6vw, 2.9rem);
}

h3 {
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  line-height: 1.25;
}

/* The highlighted words of a title: italic, in a gradient that breathes. */
h1 em,
h2 em,
.grad {
  font-style: italic;
  line-height: 1.2;
  padding: 0 0.08em 0.12em;
  margin: 0 -0.08em;
  background: var(--grad-text);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--salvia-texto);
  animation: hue 10s ease-in-out infinite alternate;
}

.grad {
  font-style: normal;
}

/* When a title is split into words, each word carries the gradient itself. */
em.is-split {
  background: none;
  -webkit-text-fill-color: currentColor;
  padding: 0;
  margin: 0;
  animation: none;
}

@keyframes hue {
  to {
    background-position: 100% 0;
  }
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-color: var(--arcilla);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: currentColor;
}

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

::selection {
  background: var(--salvia-suave);
}

[hidden] {
  display: none !important;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--espresso);
  color: var(--arena);
  border-radius: 999px;
}

.skip:focus {
  left: 0.5rem;
}

/* ---------- 4 Living layer: backdrop, auras, ripples, waves, marquee ---------- */

/* A very slow wash of colour behind the whole site. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.backdrop i,
.aura i {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.backdrop i {
  width: 90vmax;
  height: 90vmax;
  opacity: 0.85;
  animation: float-a 34s ease-in-out infinite alternate;
}

.backdrop i:nth-child(1) {
  left: -40vmax;
  top: -45vmax;
  background: radial-gradient(circle, var(--salvia-suave) 0%, transparent 62%);
}

.backdrop i:nth-child(2) {
  right: -45vmax;
  top: 10vh;
  background: radial-gradient(circle, var(--violeta-suave) 0%, transparent 60%);
  animation-name: float-b;
  animation-duration: 41s;
}

.backdrop i:nth-child(3) {
  left: -20vmax;
  bottom: -55vmax;
  background: radial-gradient(circle, var(--rubor) 0%, transparent 60%);
  animation-duration: 47s;
}

/* Auras: the same idea, local to a block (page headers, panels, the menu). */
.aura {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}

.aura i {
  width: 70vmax;
  height: 70vmax;
  max-width: 900px;
  max-height: 900px;
  animation: float-a 22s ease-in-out infinite alternate;
}

.aura i:nth-child(1) {
  left: -25%;
  top: -40%;
  background: radial-gradient(circle, color-mix(in srgb, var(--salvia) 34%, transparent) 0%, transparent 62%);
}

.aura i:nth-child(2) {
  right: -30%;
  top: -10%;
  background: radial-gradient(circle, color-mix(in srgb, var(--violeta) 36%, transparent) 0%, transparent 60%);
  animation-name: float-b;
  animation-duration: 27s;
}

.aura i:nth-child(3) {
  left: 20%;
  bottom: -60%;
  background: radial-gradient(circle, color-mix(in srgb, #d9a98a 38%, transparent) 0%, transparent 60%);
  animation-duration: 31s;
}

/* At the top of a page the aura melts into the page instead of ending in a line. */
.aura--header,
.aura--hero {
  -webkit-mask-image: linear-gradient(#000 45%, transparent 100%);
  mask-image: linear-gradient(#000 45%, transparent 100%);
}

.aura--header i,
.aura--hero i {
  opacity: 0.75;
}

/* Inside a light panel the aura is only a hint, so text stays crisp. */
.aura--panel i {
  opacity: 0.45;
}

@keyframes float-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(9vmax, 6vmax, 0) scale(1.18);
  }
}

@keyframes float-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.1);
  }
  to {
    transform: translate3d(-8vmax, 9vmax, 0) scale(0.92);
  }
}

/* Ripples: rings that open like the sound of a bowl. Place inside a
   position:relative parent, behind a photo or a button. */
.ripples {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.ripples span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--salvia) 60%, transparent);
  opacity: 0;
  animation: ripple 7.5s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

.ripples span:nth-child(2) {
  border-color: color-mix(in srgb, var(--violeta) 60%, transparent);
  animation-delay: 2.5s;
}

.ripples span:nth-child(3) {
  animation-delay: 5s;
}

@keyframes ripple {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55);
  }
  18% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.7);
  }
}

/* The small wave under a title: it never stops moving. */
.wave {
  --w: 54px;
  display: block;
  width: min(210px, 56%);
  height: 16px;
  overflow: hidden;
}

.wave::before {
  content: '';
  display: block;
  width: calc(100% + var(--w));
  height: 100%;
  background: var(--grad-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 16'%3E%3Cpath d='M0 8c9-8 18-8 27 0s18 8 27 0' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 0 50% / var(--w) 100% repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 16'%3E%3Cpath d='M0 8c9-8 18-8 27 0s18 8 27 0' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 0 50% / var(--w) 100% repeat-x;
  animation: slide-x 2.6s linear infinite;
}

.wave--center {
  margin-inline: auto;
}

@keyframes slide-x {
  to {
    transform: translate3d(calc(var(--w) * -1), 0, 0);
  }
}

/* A band of three waves at different speeds, between two sections. */
.divider {
  position: relative;
  height: clamp(44px, 9vw, 76px);
  overflow: hidden;
  pointer-events: none;
}

.divider span {
  --w: 260px;
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% + var(--w));
  background: var(--grad-brand);
  opacity: 0.5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 16' preserveAspectRatio='none'%3E%3Cpath d='M0 8c9-7 18-7 27 0s18 7 27 0' fill='none' stroke='%23000' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 50% / var(--w) 100% repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 16' preserveAspectRatio='none'%3E%3Cpath d='M0 8c9-7 18-7 27 0s18 7 27 0' fill='none' stroke='%23000' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 50% / var(--w) 100% repeat-x;
  animation: slide-x 9s linear infinite;
}

.divider span:nth-child(2) {
  --w: 380px;
  opacity: 0.32;
  animation-duration: 14s;
  animation-direction: reverse;
}

.divider span:nth-child(3) {
  --w: 190px;
  inset-block: 22% 22%;
  opacity: 0.22;
  animation-duration: 6.5s;
}

.divider--onDark span {
  background: linear-gradient(110deg, #c9d6bf, #cfc6e0);
}

/* A slow band of words. */
.marquee {
  overflow: hidden;
  padding-block: clamp(1rem, 3vw, 1.6rem);
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 4.6vw, 2.1rem);
  line-height: 1.2;
  white-space: nowrap;
  color: var(--cacao);
}

.marquee i {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--grad-brand);
}

@keyframes marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ---------- 5 Layout ---------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.section--tight {
  padding-block: calc(var(--section) * 0.6);
}

.stack > * + * {
  margin-top: var(--gap, 1.1rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--salvia-texto);
}

.eyebrow::before {
  content: '';
  width: 1.6rem;
  height: 1.5px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 58ch;
}

.muted {
  color: var(--muted);
}

.script {
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0;
}

.measure {
  max-width: 64ch;
}

.center {
  text-align: center;
}

.center .lead,
.center .measure {
  margin-inline: auto;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

/* ---------- 6 Buttons, links, chips ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  touch-action: manipulation;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.3s ease,
    background-position 0.7s var(--ease),
    background-color 0.25s ease,
    border-color 0.25s ease;
}

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

.btn svg {
  flex: none;
  width: 1.25em;
  height: 1.25em;
}

.btn--primary {
  background: var(--grad-brand);
  background-size: 230% 100%;
  color: var(--arena-clara);
  box-shadow: 0 14px 28px -16px rgb(79 104 69 / 0.95);
}

/* A slow glint crosses the main button every few seconds. */
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 35%, rgb(255 255 255 / 0.3) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: glint 6.5s ease-in-out infinite;
}

@keyframes glint {
  0%,
  62% {
    transform: translateX(-130%);
  }
  82%,
  100% {
    transform: translateX(130%);
  }
}

.btn--ghost {
  border-color: var(--arcilla);
  color: var(--ink);
  background: color-mix(in srgb, var(--arena-clara) 55%, transparent);
}

.btn--onDark {
  background: var(--arena);
  color: var(--espresso);
}

.btn--block {
  width: 100%;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
  }
  .btn--primary:hover {
    background-position: 100% 0;
    box-shadow: 0 18px 34px -16px rgb(106 95 134 / 0.9);
  }
  .btn--ghost:hover {
    border-color: var(--espresso);
    background: var(--arena-clara);
  }
  .btn--onDark:hover {
    background: var(--arena-clara);
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-weight: 800;
  color: var(--salvia-texto);
  text-decoration: none;
}

.link-arrow svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover svg,
a:hover > .link-arrow svg {
  transform: translateX(5px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--salvia-suave);
  color: var(--salvia-texto);
  font-size: 0.82rem;
  font-weight: 800;
}

.chip--violeta {
  background: var(--violeta-suave);
  color: var(--violeta-texto);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Panels: a lighter surface, used only where grouping helps. */
.panel {
  position: relative;
  isolation: isolate;
  background: color-mix(in srgb, var(--arena-clara) 86%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-soft);
}

/* ---------- 7 Motion ---------- */

/* Everything below only hides content when the script that reveals it is
   running (html.js). Without JavaScript the page is simply still. */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.9s var(--ease) var(--d, 0s),
    transform 0.9s var(--ease) var(--d, 0s);
}

.js [data-reveal='left'] {
  transform: translate3d(-34px, 0, 0);
}

.js [data-reveal='right'] {
  transform: translate3d(34px, 0, 0);
}

.js [data-reveal='zoom'] {
  transform: scale(0.93);
}

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

/* Titles rise word by word. */
.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.08em 0.1em 0.16em;
  margin: -0.08em -0.1em -0.16em;
}

.js [data-split] .w > span {
  display: inline-block;
  transform: translate3d(0, 115%, 0);
  transition: transform 1s var(--ease) calc(var(--i) * 55ms + var(--d, 0s));
}

.js [data-split].is-in .w > span {
  transform: none;
}

.js [data-split] em .w > span {
  font-style: italic;
  background: var(--grad-text);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-inline: 0.06em;
  animation: hue 10s ease-in-out infinite alternate;
}

/* ---------- 8 Photos ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ar, 4 / 5);
  border-radius: var(--radius);
  background: var(--piedra);
  box-shadow: var(--shadow);
}

.media--arch {
  border-radius: 999px 999px var(--radius) var(--radius);
}

.media--circle {
  border-radius: 50%;
}

.media picture,
.media img {
  width: 100%;
  height: 100%;
}

.media img {
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

@media (min-width: 900px) {
  .media {
    aspect-ratio: var(--ar-md, var(--ar, 4 / 5));
  }
}

/* The curtain: the frame opens from the bottom when it enters the screen. */
.js .media[data-reveal='curtain'] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% -60px -60px -60px);
  transition: clip-path 1.25s var(--ease) var(--d, 0s);
}

.js .media[data-reveal='curtain'].is-in {
  clip-path: inset(-60px);
}

/* Photos at the top of a page breathe very slowly. */
.media img[fetchpriority='high'] {
  animation: kenburns 20s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .media[data-drift] img:not([fetchpriority='high']) {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

@keyframes drift {
  from {
    transform: scale(1.16) translate3d(0, -5%, 0);
  }
  to {
    transform: scale(1.16) translate3d(0, 5%, 0);
  }
}

@media (hover: hover) {
  a .media img {
    transition: scale 0.9s var(--ease);
  }
  a:hover .media img {
    scale: 1.05;
  }
}

/* ---------- 9 Header, progress line, phone menu ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--grad-brand);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

.preview-bar {
  margin: 0;
  padding: 0.45rem var(--gutter);
  background: var(--espresso);
  color: var(--arena);
  font-size: 0.82rem;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  transition:
    transform 0.5s var(--ease),
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}

.admin-bar .site-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--arena) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-hidden {
  transform: translate3d(0, -115%, 0);
}

.menu-open .site-header {
  transform: none;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.wordmark {
  font-size: clamp(1.8rem, 6.2vw, 2.15rem);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 0.15rem;
}

.nav-desktop {
  display: none;
  gap: clamp(1rem, 2.2vw, 1.9rem);
}

.nav-desktop a {
  position: relative;
  padding-block: 0.4rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.97rem;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}

.nav-desktop a:hover::after,
.nav-desktop a[aria-current]::after {
  transform: scaleX(1);
}

.nav-desktop a[aria-current] {
  color: var(--salvia-texto);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0 1rem 0 0.9rem;
  border: 1px solid var(--arcilla);
  border-radius: 999px;
  background: color-mix(in srgb, var(--arena-clara) 60%, transparent);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  touch-action: manipulation;
}

.menu-toggle-lines {
  position: relative;
  width: 20px;
  height: 12px;
}

.menu-toggle-lines i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.45s var(--ease),
    top 0.45s var(--ease);
}

.menu-toggle-lines i:first-child {
  top: 1px;
}

.menu-toggle-lines i:last-child {
  top: 9px;
}

.menu-toggle[aria-expanded='true'] .menu-toggle-lines i:first-child {
  top: 5px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle-lines i:last-child {
  top: 5px;
  transform: rotate(-45deg);
}

/* The phone menu opens as a circle growing from the button. */
.menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 1rem) 0 calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--arena);
  overflow-y: auto;
  overscroll-behavior: contain;
  isolation: isolate;
  visibility: hidden;
  clip-path: circle(0 at calc(100% - 3.2rem) 2.2rem);
  transition:
    clip-path 0.75s var(--ease),
    visibility 0s 0.75s;
}

.menu.is-open {
  visibility: visible;
  clip-path: circle(150vmax at calc(100% - 3.2rem) 2.2rem);
  transition: clip-path 0.85s var(--ease);
}

.menu-nav {
  display: grid;
}

.menu-link,
.menu-more,
.menu-cta {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.menu.is-open .menu-link,
.menu.is-open .menu-more,
.menu.is-open .menu-cta {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.18s + var(--i) * 55ms);
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 8.4vw, 2.5rem);
  line-height: 1.15;
  text-decoration: none;
}

.menu-link svg {
  color: var(--arcilla);
}

.menu-link[aria-current] {
  color: var(--salvia-texto);
}

.menu-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  padding-top: 1.2rem;
}

.menu-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}

.menu-cta {
  padding-top: 1.2rem;
}

.menu-cta .btn {
  width: 100%;
}

.menu-open {
  overflow: hidden;
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }
  .menu-toggle,
  .menu {
    display: none;
  }
}

/* ---------- 10 Page header (inner pages) ---------- */
.page-header {
  position: relative;
  isolation: isolate;
  padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(2.5rem, 7vw, 4.5rem);
}

.page-header-inner {
  display: grid;
  gap: clamp(2.25rem, 6vw, 4rem);
  align-items: center;
}

.page-header-copy {
  --gap: 1.2rem;
}

.page-header-media {
  position: relative;
  isolation: isolate;
  width: min(100%, 26rem);
  margin-inline: auto;
}

@media (min-width: 900px) {
  .page-header--foto .page-header-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .page-header-media {
    width: min(100%, 27rem);
    margin-inline: auto 0;
  }
}

/* ---------- 11 Components ---------- */

/* Long-form text: articles, legal pages, anything typed in the editor. */
.prose {
  max-width: 68ch;
}

.prose > * + * {
  margin-top: 1.15em;
}

.prose h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin-top: 2.2em;
}

.prose h3 {
  margin-top: 1.8em;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose img {
  border-radius: var(--radius);
}

.prose blockquote {
  margin: 1.8em 0;
  padding-left: 1.2em;
  border-left: 2px solid transparent;
  border-image: var(--grad-brand) 1;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.45;
}

.prose blockquote p + p {
  margin-top: 0.6em;
}

/* Plain lists with the brand's small round marker. */
.dots {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dots li {
  position: relative;
  padding-left: 1.5rem;
}

.dots li + li {
  margin-top: 0.65rem;
}

.dots li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.68em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--grad-brand);
}

.dots--quiet li::before {
  background: var(--piedra);
}

/* Form fields: label above, helper below, never placeholder-as-label.
   16px minimum so iPhones do not zoom in on focus. */
.field {
  display: grid;
  gap: 0.4rem;
}

.field label,
.field legend {
  font-weight: 800;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--arcilla);
  border-radius: var(--radius-sm);
  background: var(--arena-clara);
  color: var(--ink);
  font: inherit;
  font-size: max(1rem, 16px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--salvia-texto);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--salvia) 28%, transparent);
}

.field small {
  color: var(--muted);
  font-size: 0.86rem;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.inquiry {
  display: grid;
  gap: 1.5rem;
}

.inquiry-grid {
  display: grid;
  gap: 1.1rem;
}

.inquiry-error {
  color: #8a3324;
  font-weight: 800;
}

.inquiry [aria-invalid='true'] {
  border-color: #8a3324;
}

.inquiry-note {
  font-size: 0.9rem;
}

.inquiry .actions .btn {
  flex: 1 1 14rem;
}

@media (min-width: 720px) {
  .inquiry-grid {
    grid-template-columns: 1fr 1fr;
  }
  .field--wide {
    grid-column: 1 / -1;
  }
  .inquiry .actions .btn {
    flex: 0 0 auto;
  }
}

/* Questions and answers. */
.faq {
  border-top: 1px solid var(--line);
}

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

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

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

.faq summary svg {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--salvia-suave);
  color: var(--salvia-texto);
  transition: transform 0.4s var(--ease);
}

.faq details[open] summary svg {
  transform: rotate(180deg);
}

.faq details p {
  padding: 0 2.5rem 1.3rem 0;
  color: var(--muted);
  max-width: 60ch;
  animation: answer 0.45s var(--ease);
}

@keyframes answer {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* One date in the agenda. */
.event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 1.75rem);
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.event-date {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.1rem;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--arena-clara);
  line-height: 1;
  box-shadow: 0 12px 24px -14px rgb(79 104 69 / 0.9);
}

.event-date strong {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
}

.event-date span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-body {
  display: grid;
  gap: 0.15rem;
}

.event-title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 4.4vw, 1.5rem);
  line-height: 1.25;
}

.event-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.event-arrow {
  color: var(--arcilla);
  transition: transform 0.3s var(--ease);
}

.event:hover .event-arrow {
  transform: translateX(5px);
  color: var(--salvia-texto);
}

/* The newsletter block. */
.newsletter {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.6rem, 5vw, 3.25rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--arena-clara) 78%, transparent);
  box-shadow: var(--shadow-soft);
}

.newsletter-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  line-height: 1.15;
  font-weight: 400;
  margin: 0;
}

.newsletter-form {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.newsletter-form .field,
.newsletter-form .btn {
  width: 100%;
}

@media (min-width: 820px) {
  .newsletter {
    grid-template-columns: 1.1fr 1fr;
  }
  .newsletter-form .btn {
    width: auto;
  }
}

/* Video facade. */
.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--espresso);
  box-shadow: var(--shadow);
}

.yt a,
.yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
  transition: scale 0.9s var(--ease);
}

.yt a:hover img {
  scale: 1.05;
}

.yt-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--arena);
  color: var(--espresso);
  transition: transform 0.3s var(--ease);
}

/* The play button pulses like a struck bowl. */
.yt-play::before,
.yt-play::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--arena);
  animation: pulse 2.8s ease-out infinite;
}

.yt-play::after {
  animation-delay: 1.4s;
}

@keyframes pulse {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.9);
  }
}

.yt a:hover .yt-play {
  transform: scale(1.08);
}

/* Cookie choice (printed by the site plugin only when measurement is set). */
.consent {
  position: fixed;
  inset: auto 1rem calc(1rem + env(safe-area-inset-bottom)) 1rem;
  z-index: 70;
  max-width: 34rem;
  margin-inline: auto;
  padding: 1.1rem 1.25rem;
  display: grid;
  gap: 0.9rem;
  background: var(--arena-clara);
  border: 1px solid var(--arcilla);
  border-radius: var(--radius);
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* The phone "reservar" bar on booking pages: slides in after the first scroll. */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 45;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--arena) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transition: transform 0.5s var(--ease);
}

.js .sticky-cta:not(.is-in) {
  transform: translate3d(0, 110%, 0);
}

.sticky-cta .btn {
  width: 100%;
}

body.has-sticky {
  padding-bottom: 5.2rem;
}

@media (min-width: 760px) {
  .sticky-cta {
    display: none;
  }
  body.has-sticky {
    padding-bottom: 0;
  }
}

/* ---------- 12 Patterns for inner pages ---------- */

/* Text beside a photo. Stacks on phones. */
.split {
  display: grid;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.split-media {
  position: relative;
  isolation: isolate;
  width: min(100%, 30rem);
  margin-inline: auto;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--text-wide {
    grid-template-columns: 1.25fr 0.75fr;
  }
  .split--media-wide {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .split--flip > :first-child {
    order: 2;
  }
  .split--top {
    align-items: start;
  }
}

/* A full-width tinted band. */
.band {
  position: relative;
  isolation: isolate;
  padding-block: var(--section);
  background: var(--grad-soft);
}

.band--warm {
  background: var(--grad-warm);
}

/* The dark band: night colours with two slow glows. Text turns light. */
.band--dark,
.panel--dark {
  --ink: var(--arena);
  --muted: color-mix(in srgb, var(--arena) 80%, transparent);
  --line: color-mix(in srgb, var(--arena) 22%, transparent);
  --grad-text: linear-gradient(100deg, #c9d6bf 0%, #d3cae4 40%, #ecd2bf 70%, #c9d6bf 100%);
  background: var(--grad-night);
  color: var(--arena);
}

.band--dark .eyebrow,
.panel--dark .eyebrow {
  color: #c9d6bf;
}

.band--dark .eyebrow::before,
.panel--dark .eyebrow::before {
  background: linear-gradient(90deg, #c9d6bf, #cfc6e0);
}

.band--dark .link-arrow,
.panel--dark .link-arrow {
  color: #c9d6bf;
}

.panel--dark {
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Cards in a grid: each one a soft gradient surface. */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
}

.card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: clamp(1.35rem, 4vw, 1.9rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--grad-soft);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.card--warm {
  background: var(--grad-warm);
}

.card--violeta {
  background: linear-gradient(135deg, var(--violeta-suave) 0%, var(--arena-clara) 60%, var(--rubor) 100%);
}

.card--plain {
  background: color-mix(in srgb, var(--arena-clara) 80%, transparent);
}

.card h3 {
  font-size: clamp(1.25rem, 4.4vw, 1.5rem);
}

.card-n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--arcilla);
}

@media (hover: hover) {
  a.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
  }
}

/* Numbered steps joined by a line that draws itself. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  counter-reset: paso;
}

.steps li {
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding-left: 4.25rem;
  min-height: 3.25rem;
  counter-increment: paso;
}

.steps li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0;
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--arena-clara);
  font-family: var(--serif);
  font-size: 1.3rem;
  box-shadow: 0 12px 24px -14px rgb(79 104 69 / 0.9);
}

.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(1.55rem - 1px);
  top: 3.4rem;
  bottom: -1.45rem;
  width: 2px;
  background: linear-gradient(var(--salvia), var(--violeta));
  opacity: 0.45;
  transform-origin: 50% 0;
}

.js .steps li:not(:last-child)::after {
  transform: scaleY(0);
  transition: transform 0.9s var(--ease) calc(var(--d, 0s) + 0.35s);
}

.js .steps li.is-in::after {
  transform: scaleY(1);
}

.steps h3 {
  font-size: 1.3rem;
}

@media (min-width: 900px) {
  .steps--row {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  .steps--row li {
    padding: 4.25rem 0 0;
  }
  .steps--row li:not(:last-child)::after {
    left: 3.6rem;
    right: -2rem;
    top: calc(1.55rem - 1px);
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--salvia), var(--violeta));
    transform-origin: 0 50%;
  }
  .js .steps--row li:not(:last-child)::after {
    transform: scaleX(0);
  }
  .js .steps--row li.is-in::after {
    transform: scaleX(1);
  }
}

/* A line of her own words, large. */
.quote {
  position: relative;
  margin: 0;
  padding-top: 2.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 5.6vw, 2.4rem);
  line-height: 1.3;
  text-wrap: balance;
}

.quote::before {
  content: '“';
  position: absolute;
  top: -0.25em;
  left: -0.04em;
  font-size: 5rem;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.center .quote::before {
  left: 50%;
  translate: -50% 0;
}

/* A vertical timeline. */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.6rem;
  border-left: 2px solid transparent;
  border-image: linear-gradient(var(--salvia), var(--violeta), var(--arcilla)) 1;
}

.timeline li {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding-block: 0.95rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: calc(-1.6rem - 7px);
  top: 1.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--arena);
  border: 2px solid var(--salvia-texto);
}

.timeline-year {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--salvia-texto);
}

@media (min-width: 900px) {
  .timeline li {
    grid-template-columns: 10rem 1fr;
    align-items: baseline;
    gap: 2rem;
  }
}

/* Big numbers. */
.cifras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 1.25rem;
  margin: 0;
}

.cifras dt {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 7.4vw, 2.9rem);
  line-height: 1.1;
  background: var(--grad-text);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hue 10s ease-in-out infinite alternate;
}

.cifras dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 820px) {
  .cifras {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* A row you swipe on a phone and that becomes a grid on a wide screen. */
.snap {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 20rem);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 0.25rem var(--gutter) 1.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.snap::-webkit-scrollbar {
  display: none;
}

.snap > * {
  scroll-snap-align: start;
}

.snap-bar {
  width: min(100% - 2 * var(--gutter), 12rem);
  height: 3px;
  margin-inline: auto;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.snap-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: var(--grad-brand);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0.25));
  transition: transform 0.2s linear;
}

@media (min-width: 900px) {
  .snap {
    grid-auto-flow: row;
    grid-template-columns: repeat(var(--cols, 4), 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    width: min(100% - 2 * var(--gutter), var(--wrap));
    margin-inline: auto;
    padding-inline: 0;
  }
  .snap-bar {
    display: none;
  }
}

/* Lists and grids reset their own margins; inside a stack they keep the stack's rhythm. */
.stack > * + :is(.dots, .chips, .steps, .timeline, .cifras, .cards, .faq, .actions) {
  margin-top: var(--gap, 1.1rem);
}

/* Testimonials: a sideways row on a phone, three columns on a wide screen. */
.testimonios-row {
  --cols: 3;
  grid-auto-columns: min(84%, 22rem);
  align-items: stretch;
}

.testimonio {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0;
  padding-top: 2.4rem;
}

.testimonio-mark {
  position: absolute;
  top: 0.2rem;
  left: 1.2rem;
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.testimonio blockquote {
  margin: 0;
  flex: 1;
}

.testimonio blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.5;
}

.testimonio figcaption {
  font-size: 0.9rem;
}

.testimonios .section-head {
  margin-bottom: 1.5rem;
}

/* Publications and press: outbound links with year and source (mga_publicacion). */
.pubs {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.pubs li {
  border-bottom: 1px solid var(--line);
}

.pub {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 0.9rem;
  align-items: start;
  min-height: 48px;
  padding: 1rem 0;
  color: inherit;
  text-decoration: none;
}

.pub-year {
  font-family: var(--serif);
  font-style: italic;
  color: var(--arcilla);
  padding-top: 0.1rem;
}

.pub-body {
  display: grid;
  gap: 0.25rem;
}

.pub-title {
  font-weight: 700;
  line-height: 1.35;
}

.pub-where {
  font-size: 0.9rem;
  line-height: 1.4;
}

.pub svg {
  margin-top: 0.2rem;
  color: var(--salvia-texto);
  transition: transform 0.3s var(--ease);
}

.pub:hover .pub-title,
.pub:focus-visible .pub-title {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.pub:hover svg {
  transform: translate(2px, -2px);
}

.pubs--compact .pub {
  padding: 0.75rem 0;
}

.pubs-more summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 48px;
  font-weight: 700;
  color: var(--salvia-texto);
  cursor: pointer;
  list-style: none;
}

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

.pubs-more[open] summary svg {
  transform: rotate(180deg);
}

.pubs-more .pubs {
  border-top: 0;
}

/* Spotify player, loaded on click (mga_spotify). */
.sp {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--espresso);
  box-shadow: var(--shadow);
}

.sp-cover {
  display: grid;
  grid-template-columns: minmax(6.5rem, 34%) 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  color: var(--arena);
  text-decoration: none;
}

.sp-cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.sp-body {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}

.sp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ed9a6;
}

.sp-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4.6vw, 1.6rem);
  line-height: 1.2;
}

.sp-play {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--arena);
  color: var(--espresso);
  font-weight: 800;
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease);
}

.sp-cover:hover .sp-play {
  transform: translateY(-2px);
}

.sp.is-open {
  background: transparent;
  box-shadow: none;
}

.sp iframe {
  display: block;
  width: 100%;
  height: 352px;
  border: 0;
  border-radius: var(--radius);
}

/* ---------- 13 Footer ---------- */
.site-footer {
  position: relative;
  margin-top: var(--section);
  font-size: 0.97rem;
  background: linear-gradient(180deg, transparent 0, color-mix(in srgb, var(--salvia-suave) 70%, transparent) 55%, var(--salvia-suave) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem 1.5rem;
  padding-top: clamp(2rem, 5vw, 3rem);
}

.footer-brand,
.footer-contact {
  grid-column: 1 / -1;
}

.wordmark--big {
  font-size: clamp(2.6rem, 11vw, 3.6rem);
  background: var(--grad-text);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.1em 0.15em 0.2em 0;
  animation: hue 10s ease-in-out infinite alternate;
}

.footer-brand p {
  color: var(--muted);
  margin-top: 0.2rem;
}

.footer-title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.footer-grid nav a,
.footer-contact a {
  display: flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-grid a:hover {
  color: var(--salvia-texto);
}

.socials {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--arena-clara) 70%, transparent);
  transition:
    transform 0.35s var(--ease),
    background-color 0.25s ease,
    color 0.25s ease;
}

@media (hover: hover) {
  .socials a:hover {
    transform: translateY(-4px);
    background: var(--salvia-texto);
    color: var(--arena-clara);
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-block: 1.4rem calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  }
  .footer-brand,
  .footer-contact {
    grid-column: auto;
  }
}

/* ---------- 14 Page transitions and reduced motion ---------- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 0.28s ease both leave;
}

::view-transition-new(root) {
  animation: 0.5s var(--ease) both arrive;
}

@keyframes leave {
  to {
    opacity: 0;
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* Loops rest while their block is off-screen (set by the page script). */
.is-resting,
.is-resting *,
.is-resting::before,
.is-resting::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal],
  .js [data-split] .w > span,
  .js .media[data-reveal='curtain'],
  .js .steps li::after,
  .js .sticky-cta:not(.is-in) {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .ripples {
    display: none;
  }
  @view-transition {
    navigation: none;
  }
}
