/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x     { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y     { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

:root {
  --bg:        #0b0e14;
  --bg-2:      #11151d;
  --bg-3:      #171c26;
  --bg-4:      #1d2330;
  --cream:     #ece7da;
  --cream-2:   #c9c2ae;
  --cream-3:   #838a9b;
  --accent:    #b08d57;
  --accent-2:  #8a6d3f;
  --accent-soft: rgba(176,141,87,0.16);
  --line:      rgba(236,231,218,0.12);
  --line-soft: rgba(236,231,218,0.07);

  --serif: "Cormorant", "EB Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --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: 84px;
  --container: 1180px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  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.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; }
em { font-style: italic; color: var(--accent); font-weight: 500; }
::selection { background: var(--accent); color: var(--bg); }

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

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  max-width: 16ch;
  margin-bottom: 1.5rem;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--cream-2);
  max-width: 56ch;
  font-weight: 300;
}

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.9rem;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 3px;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #16110a;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 18px 40px -18px rgba(176,141,87,0.55);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 26px 54px -16px rgba(176,141,87,0.62);
  background: #c29d63;
}
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--cream);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* =============================================================
   5. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  pointer-events: auto;
  transition: opacity .9s var(--ease-out), clip-path 1.1s var(--ease-out);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.splash-mark {
  font-family: var(--mono); letter-spacing: 0.4em; font-size: 0.85rem; color: var(--cream-3);
}
.splash-line {
  width: 1px; height: 44px; background: var(--accent);
  transform-origin: top; animation: splashDraw 1.4s var(--ease-soft) forwards .2s;
  transform: scaleY(0);
}
@keyframes splashDraw { to { transform: scaleY(1); } }
.splash-role { font-family: var(--serif); font-style: italic; color: var(--cream-2); font-size: 1.05rem; }

/* =============================================================
   6. Scroll progress
   ============================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform-origin: 0 0; transform: scaleX(0);
}

/* =============================================================
   7. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .5s var(--ease-out), backdrop-filter .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11,14,20,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.nav-inner {
  width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-brand {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-links { display: none; align-items: center; gap: 2.2rem; }
.nav-link {
  position: relative; padding: 0.3rem 0; font-size: 0.88rem; color: var(--cream-2);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav-burger {
  display: grid; gap: 5px; padding: 0.5rem; margin-left: auto;
}
.nav-burger span { width: 22px; height: 1px; background: var(--cream); transition: transform .35s var(--ease-out), opacity .35s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg-2);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile nav { display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
.nav-mobile a { font-family: var(--serif); font-size: 1.7rem; font-style: italic; color: var(--cream); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
}

/* =============================================================
   8. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: clip;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.35) contrast(1.08) brightness(0.75); }
.hero-bg img.ambient-on { animation: ambientZoom 32s ease-in-out infinite; }
@keyframes ambientZoom {
  0%, 100% { transform: scale(1.06) translate3d(0,0,0); }
  50%      { transform: scale(1.14) translate3d(-1%,-1%,0); }
}
.hero-bg-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,14,20,0.55) 0%, rgba(11,14,20,0.72) 45%, rgba(11,14,20,0.96) 100%),
    linear-gradient(90deg, rgba(11,14,20,0.6), rgba(11,14,20,0.2) 45%, rgba(11,14,20,0.6));
}
.hero-mesh {
  position: absolute; inset: -10%; z-index: -2;
  background:
    radial-gradient(50% 40% at var(--mesh-x) var(--mesh-y), rgba(176,141,87,0.28), transparent 62%),
    conic-gradient(from var(--mesh-angle), rgba(176,141,87,0.14), rgba(20,26,38,0.05), rgba(138,109,63,0.16), rgba(176,141,87,0.14));
  filter: blur(56px) saturate(120%);
  opacity: 0.85;
  animation: meshShift 34s linear infinite;
  mix-blend-mode: screen;
}
/* Móvil/tablet: se desactiva como prueba de diagnóstico — filter:blur() animado
   e infinito es un caso conocido de bloqueo del compositor en WebKit (iOS). */
@media (hover: none), (pointer: coarse) {
  .hero-mesh { display: none; }
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 25%; --mesh-y: 35%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 68%; --mesh-y: 55%; }
  100% { --mesh-angle: 360deg; --mesh-x: 25%; --mesh-y: 35%; }
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: 1.5rem; padding-bottom: clamp(4rem, 10vh, 7rem);
}
.hero-kicker {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.3rem;
}
.hero-title {
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  line-height: 0.98;
  max-width: 20ch;
  color: var(--cream);
}
.hero-title em { font-style: italic; }
.hero-sub {
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.4;
  color: var(--cream-2);
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.hero-scroll {
  position: absolute; right: 1.5rem; bottom: 2.2rem; z-index: 2;
  width: 22px; height: 38px; border: 1px solid var(--line); border-radius: 20px;
  display: none;
}
.hero-scroll span {
  display: block; width: 3px; height: 7px; margin: 6px auto 0; border-radius: 2px;
  background: var(--accent); animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(10px); opacity: 0.3; } }
@media (min-width: 720px) { .hero-scroll { display: block; } }

/* =============================================================
   9. Reveal (universal)
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .85s var(--ease-soft), transform .85s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-split] { opacity: 1; transform: none; }

[data-reveal-mask] { clip-path: inset(0 0 100% 0); transition: clip-path 1.15s var(--ease-soft); }
[data-reveal-mask].is-revealed { clip-path: inset(0); }

/* =============================================================
   10. Concept / Perfil
   ============================================================= */
.concept { background: var(--bg); }
.concept-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem;
  margin-bottom: 4rem;
  align-items: center;
}
.concept-text { max-width: 68ch; min-width: 0; }

.concept-media { margin: 0; max-width: 360px; min-width: 0; width: 100%; }
.concept-media img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover;
  border: 1px solid var(--line);
  filter: grayscale(0.25) sepia(0.12) contrast(1.05) brightness(0.92);
}

@media (min-width: 860px) {
  .concept-grid { grid-template-columns: 320px minmax(0, 1fr); gap: 4rem; }
  .concept-media { max-width: none; }
}

.pillars {
  display: grid; gap: 2.5rem;
  padding-top: 3rem; border-top: 1px solid var(--line);
}
.pillar-num {
  font-family: var(--mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.1em;
}
.pillar h3 { font-size: 1.35rem; margin: 0.9rem 0 0.7rem; }
.pillar p { color: var(--cream-3); font-size: 0.98rem; font-weight: 300; }

@media (min-width: 860px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================
   10b. Stats
   ============================================================= */
.stats-section { padding-block: clamp(3rem, 6vw, 4.5rem); background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.stats-grid { display: grid; gap: 2.2rem; text-align: center; }
.stat-card { display: flex; flex-direction: column; gap: 0.4rem; }
.stat-value {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--accent); line-height: 1;
}
.stat-label { font-size: 0.92rem; color: var(--cream-2); font-weight: 300; }
.stat-detail { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--cream-3); }

@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   11. Pull quote
   ============================================================= */
.quote-section { padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.pull-quote {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.28;
  max-width: 24ch; color: var(--cream);
}
.pull-quote-role { margin-top: 1.4rem; color: var(--cream-3); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; }

/* =============================================================
   12. Timeline
   ============================================================= */
.timeline-section { background: var(--bg); }
.timeline { margin-top: 3.5rem; display: grid; gap: 0; }
.timeline-item {
  display: grid; grid-template-columns: 1fr; gap: 0.6rem;
  padding-block: 2rem; border-top: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-year {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.timeline-body h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.timeline-body p { color: var(--cream-3); font-weight: 300; max-width: 60ch; }

@media (min-width: 720px) {
  .timeline-item { grid-template-columns: 180px 1fr; gap: 2.5rem; align-items: baseline; }
}

/* =============================================================
   13. Practice areas
   ============================================================= */
.areas { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.areas-note {
  font-family: var(--mono); font-size: 0.8rem; color: var(--accent);
  border-left: 2px solid var(--accent); padding-left: 0.9rem; max-width: 52ch;
}
.areas-grid { display: grid; gap: 1.2rem; margin-top: 3rem; }
.area-card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; isolation: isolate;
  padding: 2.1rem 1.8rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), border-color .4s var(--ease-out), background-color .4s var(--ease-out);
}
.area-card:hover { transition-duration: .15s; border-color: var(--accent-soft); background: var(--bg-4); }
.area-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(176,141,87,0.16), transparent 65%);
  opacity: 0; transition: opacity .4s;
}
.area-card:hover::before { opacity: 1; }
.area-card h3 { font-size: 1.28rem; margin-bottom: 0.7rem; transform: translateZ(30px); }
.area-card p { color: var(--cream-3); font-size: 0.95rem; font-weight: 300; transform: translateZ(20px); }

@media (min-width: 640px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   13b. Publications
   ============================================================= */
.publications { background: var(--bg); }
.pub-columns { display: grid; gap: 2.8rem; margin-top: 3rem; }
.pub-group-title {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.3rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line);
}
.pub-list { list-style: none; display: grid; gap: 1.1rem; }
.pub-list li { display: flex; flex-direction: column; gap: 0.25rem; }
.pub-title { color: var(--cream-2); font-size: 0.95rem; font-weight: 400; line-height: 1.4; }
.pub-meta { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--cream-3); }
.pub-link { color: var(--cream-2); transition: color .3s var(--ease-out); }
.pub-link:hover { color: var(--accent); }

@media (min-width: 860px) { .pub-columns { grid-template-columns: repeat(3, 1fr); gap: 2.4rem; } }

/* =============================================================
   14. Credentials
   ============================================================= */
.credentials-section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.credentials { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.credential-badge {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.03em;
  padding: 0.75rem 1.15rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--cream-2);
  transition: border-color .4s var(--ease-out), color .4s var(--ease-out);
}
.credential-badge:hover { border-color: var(--accent); color: var(--accent); }

/* =============================================================
   15. Contact
   ============================================================= */
.contact { background: var(--bg-2); position: relative; overflow: clip; isolation: isolate; border-top: 1px solid var(--line-soft); }
.contact-mesh { opacity: 0.35; }
.contact-grid { display: grid; gap: 3rem; position: relative; }
.contact-city { margin-top: 1.6rem; font-family: var(--mono); font-size: 0.85rem; color: var(--cream-3); letter-spacing: 0.04em; line-height: 1.9; }
.contact-city a { color: var(--accent); transition: color .3s var(--ease-out); }
.contact-city a:hover { color: var(--cream); }

.contact-form-wrap { position: relative; }
.cta-form { display: grid; gap: 1.3rem; transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft); }
.cta-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; }

.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.35rem 1rem 0.55rem; border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg-3); color: var(--cream); font-family: var(--sans); font-size: 0.98rem;
  transition: border-color .3s var(--ease-out);
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field label {
  position: absolute; left: 1rem; top: 1.05rem;
  pointer-events: none; transition: all .25s var(--ease-out);
  color: var(--cream-3); font-size: 0.98rem;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 0.45rem; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}

.field-select { display: flex; flex-direction: column; gap: 0.5rem; }
.field-select label {
  position: static; transform: none; pointer-events: auto;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.field-select select {
  width: 100%; padding: 0.95rem 2.4rem 0.95rem 1rem; border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08d57' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.9rem center / 16px;
  color: var(--cream); font-family: var(--sans); font-size: 0.98rem;
  appearance: none; -webkit-appearance: none;
  transition: border-color .3s var(--ease-out);
}
.field-select select:invalid { color: var(--cream-3); }
.field-select select:focus { border-color: var(--accent); outline: none; }
.field-select select option { background: var(--bg-3); color: var(--cream); }

.cta-submit { position: relative; justify-self: start; min-width: 190px; }
.form-consent { font-size: 0.76rem; color: var(--cream-3); font-weight: 300; max-width: 46ch; }
.form-consent a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; transition: color .3s; }
.form-consent a:hover { color: var(--accent); }
.cta-form-spinner, .cta-form-check {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none;
}
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px; border: 1.5px solid rgba(22,17,10,0.35); border-top-color: #16110a;
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-form-check path { stroke: currentColor; stroke-width: 2; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .55s var(--ease-out); }

.cta-success {
  position: absolute; left: 0; top: 0; right: 0;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .8s var(--ease-out) .2s, transform .8s var(--ease-soft) .2s;
}
.cta-success.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.cta-success h3 { font-size: 1.7rem; margin-bottom: 0.6rem; color: var(--accent); }
.cta-success p { color: var(--cream-2); font-weight: 300; }

.form-error { margin-top: 1rem; padding: 0.9rem 1.1rem; border: 1px solid rgba(200, 80, 80, .35); border-radius: 8px; color: var(--cream-2); font-size: .92rem; font-weight: 300; }
.form-error a { color: var(--accent); text-decoration: underline; }

@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

/* =============================================================
   16. Footer
   ============================================================= */
.footer { padding-block: 3.5rem 2rem; border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.footer-grid {
  display: grid; gap: 2.4rem;
  padding-bottom: 2.6rem; margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--cream); }
.footer-role { margin-top: 0.4rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-3); }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col-title {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.2rem;
}
.footer-col a { font-size: 0.9rem; color: var(--cream-2); transition: color .3s var(--ease-out); width: fit-content; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; }
.footer-copy { font-size: 0.78rem; color: var(--cream-3); }
.footer-license { margin-top: 0.4rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.05em; color: var(--cream-3); }

/* =============================================================
   18b. WhatsApp floating button
   ============================================================= */
.whatsapp-btn {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #0b0e14;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -8px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.whatsapp-btn:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1) inset; }
.whatsapp-btn svg { width: 28px; height: 28px; fill: #0b0e14; }
@media (min-width: 720px) { .whatsapp-btn { right: 2rem; bottom: 2rem; } }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* =============================================================
   17. Secondary text pages (créditos, aviso legal, privacidad)
   ============================================================= */
.page-text { padding-top: var(--nav-h); }
.page-text main { max-width: 760px; margin-inline: auto; padding: 4rem 1.5rem 6rem; }
.page-text h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 0.6rem; }
.page-text .page-kicker { margin-bottom: 1.6rem; }
.page-text > main > p:first-of-type,
.page-text .page-updated { color: var(--cream-3); margin-bottom: 2.5rem; font-size: 0.9rem; }
.page-text article p { color: var(--cream-2); font-weight: 300; margin-bottom: 1.1rem; max-width: 68ch; }
.page-text article h2 { font-size: 1.35rem; margin: 2.4rem 0 1rem; }
.page-text article ul, .page-text article ol { margin: 0 0 1.4rem 1.3rem; color: var(--cream-2); font-weight: 300; }
.page-text article li { margin-bottom: 0.5rem; }
.page-text article strong { color: var(--cream); font-weight: 600; }
.page-text a.back { color: var(--accent); font-family: var(--mono); font-size: 0.85rem; }
.credits-list { list-style: none; display: grid; gap: 1rem; margin-top: 1rem; }
.credits-list li { padding: 1rem; border: 1px solid var(--line); border-radius: 6px; font-size: 0.92rem; color: var(--cream-2); }
.credits-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   18. Responsive tuning
   ============================================================= */
@media (min-width: 540px) { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

/* =============================================================
   19. Reduced motion — only truly intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img.ambient-on { animation: none; }
  .hero-mesh { animation: none; }
  .hero-scroll span { animation: none; }
  /* Do NOT disable: reveals, tilt, hovers, underline, splash line */
}
