/* =============================================================
   Alan Bustos — Asesor patrimonial
   Monochrome editorial · mucho blanco · calma y certeza
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #ffffff;
  --bg-2: #f6f6f5;
  --photo: #ebebeb;          /* = fondo exacto del retrato claro */
  --ink: #0a0a0a;
  --ink-soft: #3a3a3a;
  --mute: #8a8a8a;
  --line: rgba(10, 10, 10, 0.1);
  --line-strong: rgba(10, 10, 10, 0.18);
  --night: #000000;          /* = fondo exacto del retrato oscuro */
  --paper: #f5f5f4;
  --line-light: rgba(255, 255, 255, 0.14);

  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1360px;
  --section: clamp(104px, 14vw, 210px);
  --radius: clamp(18px, 2.2vw, 30px);
  --nav-h: 76px;

  --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);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { 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; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; line-height: 1; letter-spacing: -0.035em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h1 em, h2 em { font-size: 1.08em; line-height: 0.9; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.about :focus-visible, .contact :focus-visible { outline-color: #fff; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: 10px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: clamp(18px, 2.4vw, 30px);
}
.kicker-light { color: rgba(255, 255, 255, .5); }

/* =============================================================
   4. Buttons & links
   ============================================================= */
.btn {
  --bx: 0px; --by: 0px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 54px;
  padding: 0 1.7rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .97rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(var(--bx), var(--by), 0);
  transition: transform .5s var(--ease-out), background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark::before { background: #2a2a2a; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light::before { background: #e6e6e6; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: #fff; border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 1.25rem; font-size: .9rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 2rem;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: .3rem;
}
.link-arrow span { transition: transform .45s var(--ease-out); }
.link-arrow:hover span { transform: translateX(6px); }

/* =============================================================
   5. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-in);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes splashSafety { to { clip-path: inset(0 0 100% 0); pointer-events: none; visibility: hidden; } }
.splash-inner { display: flex; gap: .35em; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 4.2rem); letter-spacing: -0.045em; }
.splash-word { overflow: hidden; display: inline-block; padding-bottom: .08em; }
.splash-word span { display: inline-block; transform: translateY(110%); animation: splashUp 1s var(--ease-out) forwards; }
.splash-word:nth-child(2) span { animation-delay: .1s; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.splash-line { position: absolute; left: 50%; bottom: 18%; width: 120px; height: 1px; background: var(--line-strong); transform: translateX(-50%) scaleX(0); transform-origin: left; animation: splashLine 1.1s .2s var(--ease-out) forwards; }
@keyframes splashUp { to { transform: translateY(0); } }
@keyframes splashLine { to { transform: translateX(-50%) scaleX(1); } }

/* =============================================================
   6. Nav & menu
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: transform .6s var(--ease-out), background-color .4s, box-shadow .4s;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-scrolled { background: rgba(255, 255, 255, .72); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .75rem; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: .9rem; letter-spacing: -0.04em;
}
.brand-text { display: flex; flex-direction: column; font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.03em; line-height: 1.1; }
.brand-text small { font-family: var(--sans); font-weight: 400; font-size: .72rem; letter-spacing: .02em; color: var(--mute); }
.nav-links { display: none; gap: 2rem; font-size: .92rem; }
.nav-links a { position: relative; padding: .4rem 0; color: var(--ink-soft); transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }

.nav-burger { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-content: center; gap: 6px; background: rgba(255,255,255,.6); }
.nav-burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  padding: calc(var(--nav-h) + 28px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s .7s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-out), visibility 0s; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 7vw, 2.4rem); letter-spacing: -0.035em;
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
}
.menu-links a span { font-family: var(--sans); font-size: .75rem; font-weight: 500; color: var(--mute); letter-spacing: .1em; }
.menu.is-open .menu-links a { opacity: 1; transform: none; }
.menu.is-open .menu-links a:nth-child(2) { transition-delay: .04s; }
.menu.is-open .menu-links a:nth-child(3) { transition-delay: .08s; }
.menu.is-open .menu-links a:nth-child(4) { transition-delay: .12s; }
.menu.is-open .menu-links a:nth-child(5) { transition-delay: .16s; }
.menu.is-open .menu-links a:nth-child(6) { transition-delay: .2s; }
body.menu-open { overflow: hidden; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(28px, 6vw, 56px)) var(--gutter) clamp(40px, 6vw, 72px);
}
.hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }

.hero-hello { display: flex; align-items: center; gap: .85rem; margin-bottom: clamp(26px, 4vw, 40px); font-size: .9rem; line-height: 1.35; color: var(--ink-soft); }
.hero-hello img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--photo); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.hero-hello em { font-size: 1.05rem; color: var(--mute); }
.hero-hello strong { font-weight: 600; color: var(--ink); }

.hero-title {
  font-size: clamp(3rem, 12.4vw, 7rem);
  line-height: .93;
  letter-spacing: -0.048em;
  font-weight: 700;
  max-width: 11ch;
}
.hero-title em { display: inline; letter-spacing: -0.025em; }
.hero-sub { margin-top: clamp(24px, 3vw, 34px); max-width: 44ch; font-size: clamp(1.02rem, 1.3vw, 1.16rem); color: var(--ink-soft); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(28px, 3.4vw, 40px); }
.hero-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: clamp(28px, 4vw, 48px); }
.hero-pills li { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; color: var(--ink-soft); }

.hero-figure { position: relative; }
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 4.5;
  border-radius: var(--radius);
  background: var(--photo);
  overflow: hidden;
}
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 8%;
  transform-origin: 50% 30%;
}
.hero-badge {
  position: absolute; left: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px);
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.15rem .85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .25);
  font-size: .86rem; line-height: 1.3;
}
@supports (backdrop-filter: blur(10px)) { .hero-badge { background: rgba(255, 255, 255, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.hero-badge strong { display: block; font-weight: 600; }
.hero-badge small { color: var(--mute); font-size: .78rem; }
.dot { position: relative; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--ink); }
.dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--ink); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.hero-tag {
  position: absolute; right: -6px; top: 50%;
  transform: translate(100%, -50%) rotate(90deg); transform-origin: left center;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); white-space: nowrap;
  display: none;
}
.hero-scroll { display: none; }

/* =============================================================
   8. Marquee
   ============================================================= */
.marquee { overflow: hidden; padding: clamp(28px, 5vw, 64px) 0; border-block: 1px solid var(--line); }
.marquee-track { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); width: max-content; will-change: transform; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 9vw, 8.5rem); letter-spacing: -0.055em; line-height: 1; color: var(--ink); }
.marquee-track span:nth-of-type(even) { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px var(--ink); }
.marquee-track b { font-size: clamp(1rem, 2vw, 1.6rem); font-weight: 400; color: var(--mute); }
.marquee.is-js .marquee-track { animation: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =============================================================
   9. Manifesto
   ============================================================= */
.manifesto { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: var(--section) var(--gutter); }
.manifesto-text {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.75rem, 4.2vw, 3.6rem);
  line-height: 1.12; letter-spacing: -0.035em;
  max-width: 24ch;
}
.manifesto-text .w { color: #cfcfcf; transition: color .25s linear; }
.manifesto-text .w.is-lit { color: var(--ink); }
.manifesto-index { display: grid; margin-top: clamp(64px, 9vw, 130px); border-top: 1px solid var(--line-strong); }
.index-card {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: .4rem 1.2rem;
  padding: 1.6rem .2rem;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: color .45s var(--ease-out), padding .5s var(--ease-out);
}
.index-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); border-radius: 4px; }
.index-num { font-size: .78rem; color: var(--mute); letter-spacing: .1em; transition: color .4s; }
.index-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -0.035em; line-height: 1.1; }
.index-desc { grid-column: 2 / 3; color: var(--mute); font-size: .95rem; transition: color .4s; }
.index-arrow { grid-row: 1; grid-column: 3; font-size: 1.4rem; transition: transform .5s var(--ease-out); }
@media (hover: hover) {
  .index-card:hover { color: #fff; padding-inline: 1.4rem; }
  .index-card:hover::before { transform: scaleY(1); }
  .index-card:hover .index-num, .index-card:hover .index-desc { color: rgba(255,255,255,.6); }
  .index-card:hover .index-arrow { transform: rotate(-45deg); }
}

/* =============================================================
   10. About (noche)
   ============================================================= */
.about { background: var(--night); color: var(--paper); overflow: hidden; }
.about-grid { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; display: grid; }
.about-figure { position: relative; }
.about-photo { position: relative; overflow: hidden; }
.about-photo img { width: 100%; height: auto; }
.about-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(transparent, var(--night)); pointer-events: none; }
.about-copy { padding: 0 var(--gutter) var(--section); margin-top: -12%; position: relative; }
.about-title { font-size: clamp(2.3rem, 5.4vw, 4.6rem); letter-spacing: -0.05em; line-height: .98; max-width: 14ch; color: #fff; }
.about-text { margin-top: clamp(28px, 3.4vw, 44px); max-width: 52ch; display: grid; gap: 1.1rem; color: rgba(245, 245, 244, .72); font-size: clamp(1rem, 1.2vw, 1.1rem); }
.about-text strong { color: #fff; font-weight: 600; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line-light); }
.about-stats dt { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -0.05em; line-height: 1; color: #fff; }
.about-stats dd { margin-top: .5rem; font-size: .82rem; line-height: 1.4; color: rgba(245, 245, 244, .55); max-width: 18ch; }
.about-sign { margin-top: clamp(36px, 4vw, 56px); font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 3.4vw, 2.8rem); color: #fff; line-height: 1; }

/* =============================================================
   11. Services (comunes)
   ============================================================= */
.service { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: var(--section) var(--gutter); }
.service-alt { max-width: none; background: var(--bg-2); }
.service-alt > * { max-width: var(--maxw); margin-inline: auto; }
.service-head { max-width: 980px; margin-bottom: clamp(48px, 7vw, 96px); }
.service-title { font-size: clamp(2.35rem, 6vw, 5.4rem); letter-spacing: -0.052em; line-height: .96; }
.service-lead { margin-top: clamp(22px, 2.6vw, 32px); max-width: 52ch; font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--ink-soft); line-height: 1.6; }

/* Placeholders de imagen */
.ph {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #efefee;
}
.ph-inner {
  position: absolute; inset: -8% 0;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 1px 1px, rgba(10,10,10,.09) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(160deg, #f4f4f3 0%, #e7e7e6 100%);
}
.ph::before, .ph::after {
  content: ""; position: absolute; z-index: 2; width: 22px; height: 22px;
  border: 1px solid rgba(10,10,10,.28);
}
.ph::before { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.ph::after { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.ph-label {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem .95rem; border-radius: 999px;
  background: rgba(255,255,255,.85); border: 1px solid var(--line);
  font-size: .76rem; color: var(--ink-soft); letter-spacing: .01em;
  max-width: 86%; text-align: center; line-height: 1.3;
}
.ph-label::before { content: "+"; font-weight: 600; }
.ph-wide { aspect-ratio: 4 / 3.2; }
.ph-portrait { aspect-ratio: 4 / 5; }
.ph-auto { aspect-ratio: 4 / 4.6; }
.ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.ph.has-img { background: var(--photo); margin: 0; }
.ph.has-img .ph-inner { background: none; }
.ph.has-img::before, .ph.has-img::after { display: none; }
.ph-cap {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  padding: .45rem .85rem; border-radius: 999px;
  background: rgba(255,255,255,.88); color: var(--ink);
  font-size: .74rem; font-weight: 500; letter-spacing: .01em;
}
@supports (backdrop-filter: blur(10px)) { .ph-cap { background: rgba(255,255,255,.62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }

/* Franja horizonte */
.horizon { position: relative; overflow: hidden; background: #e9e9e8; }
.horizon-media img { width: 100%; height: auto; filter: grayscale(1); transform-origin: 70% 70%; }
.horizon-copy {
  position: absolute; inset: 0 0 auto 0;
  padding: clamp(56px, 9vw, 120px) var(--gutter) 0;
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto;
}
.horizon-title { font-size: clamp(2.1rem, 4.8vw, 4.6rem); letter-spacing: -0.05em; line-height: .98; max-width: 13ch; }
.horizon-copy .btn { margin-top: clamp(22px, 2.6vw, 34px); }
.horizon .kicker { color: rgba(10,10,10,.55); }

/* Vida */
.reasons { display: grid; margin-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line-strong); }
.reason { padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); display: grid; gap: .8rem; }
.reason-num { font-size: .78rem; color: var(--mute); letter-spacing: .1em; }
.reason h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); letter-spacing: -0.035em; line-height: 1.1; font-weight: 600; max-width: 22ch; }
.reason p { color: var(--ink-soft); max-width: 46ch; }
.pull { margin: clamp(80px, 11vw, 160px) auto 0; text-align: center; }
.pull p { max-width: 17ch; margin-inline: auto; font-family: var(--serif); font-style: normal; font-size: clamp(2.1rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.02em; }
.pull em { font-size: 1em; }

/* PPR */
.ppr-grid { display: grid; gap: clamp(48px, 6vw, 80px); align-items: start; }
.ticks { margin-top: clamp(32px, 4vw, 48px); display: grid; border-top: 1px solid var(--line-strong); }
.ticks li { position: relative; padding: 1.15rem 0 1.15rem 2.2rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 16px; height: 8px; border-left: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(-45deg); }
.ticks strong { color: var(--ink); font-weight: 600; }

.timeline-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 44px);
  box-shadow: 0 40px 80px -50px rgba(0,0,0,.25);
}
.tl-kicker { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.tl-title { margin-top: .7rem; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.035em; line-height: 1.1; font-weight: 600; }
.tl-label { display: block; margin-top: 2rem; font-size: .92rem; color: var(--ink-soft); }
.tl-label output { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.15rem; }
.tl-range { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin-top: .4rem; background: transparent; cursor: pointer; }
.tl-range::-webkit-slider-runnable-track { height: 2px; background: var(--line-strong); border-radius: 2px; }
.tl-range::-moz-range-track { height: 2px; background: var(--line-strong); border-radius: 2px; }
.tl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -12px; border-radius: 50%; background: var(--ink); border: 5px solid #fff; box-shadow: 0 0 0 1px var(--ink), 0 6px 16px rgba(0,0,0,.2); transition: transform .3s var(--ease-out); }
.tl-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 5px solid #fff; box-shadow: 0 0 0 1px var(--ink); }
.tl-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.tl-bar { position: relative; height: 54px; margin-top: 1rem; border-radius: 14px; background: var(--bg-2); overflow: hidden; }
.tl-fill { position: absolute; inset: 0 0 0 auto; width: 77.7%; background: var(--ink); border-radius: 14px; transition: width .6s var(--ease-out); }
.tl-mark { position: absolute; top: 50%; transform: translateY(-50%); font-size: .74rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.tl-mark-now { left: 14px; color: var(--mute); }
.tl-mark-end { right: 14px; color: #fff; }
.tl-result { margin: 1.4rem 0 1.6rem; color: var(--ink-soft); }
.tl-result strong { font-family: var(--display); color: var(--ink); font-size: 1.12rem; }
.tl-result span[data-tl-msg] { display: block; margin-top: .3rem; font-size: .92rem; color: var(--mute); }

.ph-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); margin-top: clamp(64px, 9vw, 130px); }
.ph-offset { margin-top: clamp(40px, 8vw, 120px); }
.footnote { margin-top: 2rem; font-size: .78rem; color: var(--mute); }

/* Auto */
.service-head-split { max-width: none; display: grid; gap: 1.5rem; align-items: end; }
.auto-grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: start; }
.coverage-head { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 1rem; }
.cov { border-top: 1px solid var(--line-strong); }
.cov:last-of-type { border-bottom: 1px solid var(--line-strong); }
.cov summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 0;
  font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 1.9vw, 1.6rem); letter-spacing: -0.03em;
  cursor: pointer; list-style: none;
}
.cov summary::-webkit-details-marker { display: none; }
.cov summary i { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .4s, transform .5s var(--ease-out); }
.cov summary i::before, .cov summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: background-color .4s, transform .5s var(--ease-out); }
.cov summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.cov[open] summary i { background: var(--ink); transform: rotate(180deg); }
.cov[open] summary i::before, .cov[open] summary i::after { background: #fff; }
.cov[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.cov p { padding: 0 3rem 1.5rem 0; color: var(--ink-soft); max-width: 48ch; animation: covIn .5s var(--ease-out); }
@keyframes covIn { from { opacity: 0; transform: translateY(-6px); } }

/* =============================================================
   12. Process
   ============================================================= */
.process { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: var(--section) var(--gutter); border-top: 1px solid var(--line); }
.process-title { font-size: clamp(2.35rem, 6vw, 5.4rem); letter-spacing: -0.052em; line-height: .96; max-width: 14ch; }
.process-line { height: 1px; margin-top: clamp(56px, 8vw, 110px); background: var(--line); overflow: hidden; }
.process-line span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(1); }
.steps { display: grid; gap: 0; }
.step { padding: clamp(28px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: .8rem; font-weight: 500; }
.step h3 { margin-top: 1.3rem; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.035em; font-weight: 600; }
.step p { margin-top: .7rem; color: var(--ink-soft); max-width: 34ch; }

/* =============================================================
   13. Testimonials
   ============================================================= */
.testimonials { background: var(--bg-2); padding: var(--section) var(--gutter); text-align: center; }
.testimonials .kicker { text-align: center; }
.t-stage { display: grid; max-width: 1080px; margin: 0 auto; }
.t-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), visibility 0s .8s; }
.t-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .8s var(--ease-out) .1s, transform .9s var(--ease-out) .1s, visibility 0s; }
.t-slide blockquote { font-family: var(--display); font-weight: 500; font-size: clamp(1.55rem, 3.6vw, 3.1rem); line-height: 1.14; letter-spacing: -0.035em; text-wrap: balance; }
.t-slide figcaption { display: inline-flex; align-items: center; gap: .9rem; margin-top: clamp(30px, 4vw, 48px); text-align: left; }
.t-avatar { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; font-size: .9rem; letter-spacing: -0.02em; }
.t-slide figcaption strong { display: block; font-weight: 600; }
.t-slide figcaption small { color: var(--mute); font-size: .85rem; }
.t-controls { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: clamp(36px, 4vw, 56px); }
.t-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 1.1rem; transition: background-color .35s, color .35s, border-color .35s; }
.t-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.t-dots { display: flex; gap: .5rem; }
.t-dots button { width: 8px; height: 8px; border-radius: 999px; background: var(--line-strong); transition: width .5s var(--ease-out), background-color .4s; }
.t-dots button.is-active { width: 28px; background: var(--ink); }

/* =============================================================
   14. Contact (noche)
   ============================================================= */
.contact { background: var(--night); color: var(--paper); padding: var(--section) var(--gutter); }
.contact-grid { max-width: var(--maxw); margin: 0 auto; display: grid; gap: clamp(56px, 7vw, 100px); }
.contact-title { font-size: clamp(2.6rem, 7.4vw, 6.4rem); letter-spacing: -0.055em; line-height: .94; color: #fff; max-width: 12ch; }
.contact-lead { margin-top: clamp(24px, 3vw, 34px); max-width: 48ch; color: rgba(245,245,244,.68); font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.contact-ways { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-light); }
.contact-ways a {
  display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line-light);
  transition: padding .5s var(--ease-out);
}
.cw-label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(245,245,244,.45); }
.cw-value { grid-column: 1; font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.75rem); letter-spacing: -0.03em; color: #fff; overflow-wrap: anywhere; }
.cw-value[data-email] { font-size: clamp(.95rem, 4.1vw, 1.75rem); overflow-wrap: normal; }
.cw-arrow { grid-column: 2; grid-row: 1 / 3; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-light); transition: background-color .4s, color .4s, transform .5s var(--ease-out); }
@media (hover: hover) {
  .contact-ways a:hover { padding-left: .8rem; }
  .contact-ways a:hover .cw-arrow { background: #fff; color: var(--ink); transform: rotate(45deg); }
}

.form {
  align-self: start;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--radius);
  background: #0f0f0f;
  border: 1px solid var(--line-light);
  display: grid; gap: 1.4rem;
}
.form-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.03em; color: #fff; }
.field { display: grid; gap: .55rem; border: 0; }
.field > span, .field legend { font-size: .8rem; color: rgba(245,245,244,.6); padding: 0; }
.field small { color: rgba(245,245,244,.35); }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: #fff;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.22);
  padding: .7rem 0;
  border-radius: 0;
  resize: vertical;
  transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(245,245,244,.3); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .55rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); font-size: .88rem; color: rgba(245,245,244,.85); transition: background-color .3s, color .3s, border-color .3s; }
.chips label:hover span { border-color: rgba(255,255,255,.6); }
.chips input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.chips input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.form .btn { margin-top: .4rem; }
.extra-inner { display: grid; gap: 1.4rem; padding: 1.2rem 0 .2rem; border-top: 1px dashed rgba(255,255,255,.16); }
.extra-note { font-size: .82rem; line-height: 1.5; color: rgba(245,245,244,.55); }
.field-age input { max-width: 140px; -moz-appearance: textfield; appearance: textfield; }
.field-age input::-webkit-outer-spin-button, .field-age input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.js .extra { display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: -1.4rem; transition: grid-template-rows .6s var(--ease-out), opacity .45s var(--ease-out), margin-top .6s var(--ease-out); }
.js .extra > .extra-inner { overflow: hidden; min-height: 0; }
.js .extra.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }
.form.is-error-age input[name="edad"] { border-bottom-color: #fff; animation: shake .4s; }
.form-note { font-size: .8rem; color: rgba(245,245,244,.45); text-align: center; }
.form-note a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); }
.form-error { font-size: .85rem; color: #fff; text-align: center; }
.form.is-error input[name="nombre"] { border-bottom-color: #fff; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* =============================================================
   15. Footer
   ============================================================= */
.footer { padding: clamp(64px, 8vw, 110px) var(--gutter) calc(28px + env(safe-area-inset-bottom)); overflow: hidden; }
.footer-top, .footer-bottom { max-width: var(--maxw); margin: 0 auto; }
.footer-top { display: grid; gap: 1.5rem; }
.footer-claim { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: var(--ink-soft); font-size: .92rem; }
.footer-links a:hover { color: var(--ink); }
.footer-word {
  margin: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px);
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3.6rem, 17.5vw, 17.5rem);
  letter-spacing: -0.07em; line-height: .8;
  text-align: center; white-space: nowrap;
  color: var(--ink);
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--mute); }
.footer-bottom a:hover { color: var(--ink); }

/* WhatsApp flotante */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80;
  display: inline-flex; align-items: center; gap: .55rem;
  height: 54px; padding: 0 1.2rem 0 1rem;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: .92rem; font-weight: 500;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.12);
  transform: translateY(140%); opacity: 0;
  transition: transform .7s var(--ease-out), opacity .5s;
}
.fab svg { width: 22px; height: 22px; fill: currentColor; }
.fab.is-visible { transform: none; opacity: 1; }

/* =============================================================
   16. Effects — reveals & split (solo si hay JS)
   ============================================================= */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.2s var(--ease-out) var(--d, 0s);
  animation: revealSafety .01s 5s forwards;
}
.js .reveal.is-in { opacity: 1; transform: none; animation: none; }
@keyframes revealSafety { to { opacity: 1; transform: none; } }
.reveal[data-split] { opacity: 1; transform: none; }

.split .sw { display: inline-block; overflow: hidden; vertical-align: top; padding: .02em .02em .17em; margin: -.02em -.02em -.17em; }
.split .sw > span { display: inline-block; transform: translateY(105%); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--i) * 55ms + var(--sd, 0s)); }
.split.is-in .sw > span { transform: none; }
.split em .sw > span, .split .sw > em { font-family: var(--serif); }

.js .reveal-clip { clip-path: inset(10% 7% 10% 7% round var(--radius)); transition: clip-path 1.4s var(--ease-out); animation: clipSafety .01s 5s forwards; }
.js .reveal-clip.is-in { clip-path: inset(0 0 0 0 round var(--radius)); animation: none; }
@keyframes clipSafety { to { clip-path: inset(0 0 0 0 round var(--radius)); } }

.js .hero-photo { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.5s var(--ease-out) .25s; animation: clipSafety .01s 5s forwards; }
.js .hero-photo.is-in { clip-path: inset(0 0 0 0 round var(--radius)); animation: none; }
.js .hero-photo img { transform: scale(1.18); transition: transform 2.2s var(--ease-out) .25s; }
.js .hero-photo.is-in img { transform: scale(1); }
.js .hero-badge { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease-out) 1.2s, transform 1s var(--ease-out) 1.2s; animation: revealSafety .01s 5s forwards; }
.js .hero-photo.is-in + .hero-badge { opacity: 1; transform: none; animation: none; }

/* =============================================================
   17. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .reasons { grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); }
  .about-stats dd { font-size: .88rem; }
}

@media (min-width: 720px) {
  .hero-photo { aspect-ratio: 4 / 4.2; }
  .manifesto-index { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .index-card { grid-template-columns: 1fr auto; align-content: start; gap: 1rem; padding: 1.8rem 1.4rem 2.2rem; border-top: 1px solid var(--line-strong); border-bottom: 0; border-left: 1px solid var(--line); min-height: 260px; }
  .index-card:first-child { border-left: 0; }
  .index-num { grid-column: 1; }
  .index-arrow { grid-row: 1; grid-column: 2; }
  .index-title { grid-column: 1 / -1; margin-top: auto; padding-top: 3rem; }
  .index-desc { grid-column: 1 / -1; }
  @media (hover: hover) { .index-card:hover { padding-inline: 1.4rem; } }
  .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
  .step { border-bottom: 0; }
  .footer-top { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 960px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-burger { display: none; }
  .hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; }
  .hero-title { font-size: clamp(4rem, 6.9vw, 7.4rem); }
  .hero-photo { aspect-ratio: auto; height: min(78svh, 780px); }
  .hero-tag { display: block; }
  .hero-scroll { position: absolute; left: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: .8rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
  .hero-scroll i { position: relative; width: 60px; height: 1px; background: var(--line-strong); overflow: hidden; }
  .hero-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateX(-100%); animation: scrollHint 2.4s var(--ease-out) infinite; }
  @keyframes scrollHint { 60%, 100% { transform: translateX(100%); } }

  .about-grid { grid-template-columns: .95fr 1.05fr; align-items: center; }
  .about-photo::after { inset: 0 0 0 auto; width: 30%; height: auto; background: linear-gradient(90deg, transparent, var(--night)); }
  .about-copy { margin-top: 0; padding: var(--section) var(--gutter) var(--section) clamp(20px, 3vw, 48px); }

  .ppr-grid { grid-template-columns: 1.1fr .9fr; }
  .timeline-card { position: sticky; top: calc(var(--nav-h) + 32px); }

  .service-head-split { grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); }
  .service-head-split .service-lead { margin-top: 0; }
  .auto-grid { grid-template-columns: .95fr 1.05fr; }
  .ph-auto { position: sticky; top: calc(var(--nav-h) + 32px); }
  .ph-wide { aspect-ratio: 16 / 8; }

  .contact-grid { grid-template-columns: 1.1fr .9fr; }
  .form { position: sticky; top: calc(var(--nav-h) + 32px); }
  .fab span { display: inline; }
}

@media (min-width: 1280px) {
  .reasons { grid-template-columns: repeat(4, 1fr); }
  .reason { padding-right: 1.5rem; border-bottom: 0; }
}

@media (max-width: 539px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .about-stats { gap: .6rem; }
  .ph-row { grid-template-columns: 1fr 1fr; }
  .fab { padding: 0; width: 58px; height: 58px; justify-content: center; }
  .fab span { display: none; }
}

/* =============================================================
   18. Reduced motion — sólo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot::after, .hero-scroll i::after { animation: none; }
  .marquee-track { animation-duration: 90s; }
}
