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

:root {
  --bg:      #0e0c0a;   /* negro cálido, nunca #000 */
  --bg-2:    #15120f;
  --bg-3:    #1e1914;
  --cream:   #f2ebda;
  --cream-2: #ddd2bc;
  --cream-3: #8b7e68;
  --accent:  #9e1b2c;   /* burdeos */
  --accent-2:#7d1422;
  --gold:    #c49a5b;
  --line:    rgba(242, 235, 218, 0.12);

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --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; }
body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { 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: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
em { font-style: normal; color: var(--gold); }
::selection { background: var(--accent); color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg); font-weight: 500;
}
.skip-link:focus { top: 1rem; }

.kicker {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4rem;
}
.kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; }

/* =============================================================
   4. Intro, progress, cursor
   ============================================================= */
/* ---- Intro ---- */
.intro { position: fixed; inset: 0; z-index: 1000; background: var(--bg); overflow: hidden; }
.intro-slide { position: absolute; inset: 0; opacity: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 70% 30%, rgba(158,27,44,.35), transparent 60%), var(--bg); }
.intro-slide:first-of-type { opacity: 1; }
.intro-word {
  position: relative; z-index: 1; padding-inline: var(--gutter);
  font-family: var(--display); font-style: normal; font-weight: 700;
  font-size: clamp(3.2rem, 13vw, 10rem); line-height: 1; letter-spacing: -0.03em;
  color: var(--cream);
}
.intro-skip {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(20px, 4vh, 40px);
  padding: .55rem 1.1rem; border: 1px solid rgba(242,235,218,.35); border-radius: 999px;
  font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream); background: rgba(14,12,10,.35); backdrop-filter: blur(6px);
  transition: background .3s, border-color .3s;
}
.intro-skip:hover { background: var(--accent); border-color: var(--accent); }
html.intro-seen .intro, .no-js .intro { display: none; }
html.intro-on { overflow: hidden; }
html.intro-on .hero *, html.intro-on .hero { animation-play-state: paused; }
.intro { animation: introFailsafe .6s ease 9s forwards; }
@keyframes introFailsafe { to { opacity: 0; visibility: hidden; } }


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

.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 95; opacity: 0; transition: opacity .3s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(196,154,91,.55);
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .35s var(--ease-out);
}
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(196,154,91,.1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =============================================================
   5. Nav
   ============================================================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 80; transition: background .5s var(--ease-out), border-color .5s var(--ease-out), padding .5s var(--ease-out); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(14,12,10,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { max-width: var(--max); margin-inline: auto; padding: 1.1rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { display: flex; align-items: center; gap: .8rem; }
.nav-mono { font-family: var(--display); font-style: normal; font-weight: 700; font-size: 1.7rem; color: var(--gold); }
.nav-name { font-family: var(--display); font-size: clamp(.8rem, 2.2vw, 1.15rem); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; padding: .32rem .8rem; border: 1px solid rgba(196,154,91,.65); border-radius: 999px; background: rgba(196,154,91,.08); white-space: nowrap; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; position: relative; z-index: 2; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 1px; background: var(--cream); transition: transform .4s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.nav-list {
  position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: .4rem;
  padding: var(--gutter); background: var(--bg);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), visibility 0s .5s;
}
.nav-list.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease-out); }
.nav-list a { font-family: var(--display); font-size: 2.4rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.nav-list a:hover, .nav-cta { color: var(--gold); }

/* =============================================================
   6. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.7rem; border: 1px solid var(--cream-3); border-radius: 999px;
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  transition: background .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out), transform .4s var(--ease-out);
  will-change: transform;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 1.2rem 2.2rem; font-size: .82rem; }

.section { padding-block: clamp(5rem, 12vw, 9rem); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 820px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-title { font-size: clamp(2.3rem, 6vw, 4.4rem); }
.section-lede { margin-top: 1.4rem; max-width: 58ch; color: var(--cream-2); font-size: clamp(1rem, 1.6vw, 1.15rem); }

/* =============================================================
   7. Sections
   ============================================================= */

/* ---- Hero ---- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 7rem 0 5rem; isolation: isolate; }
.hero-mesh {
  position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(circle at 75% 30%, rgba(158,27,44,.55), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(196,154,91,.22), transparent 45%),
    conic-gradient(from var(--mesh-angle) at 60% 50%, rgba(158,27,44,.25), rgba(14,12,10,0) 30%, rgba(196,154,91,.18) 55%, rgba(14,12,10,0) 80%, rgba(158,27,44,.25));
  filter: blur(70px);
  animation: meshSpin 24s linear infinite;
}
@keyframes meshSpin { to { --mesh-angle: 360deg; } }
.hero-grain {
  position: absolute; inset: 0; z-index: -1; opacity: .07; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: 3.5rem; align-items: center; }
.hero-meta { display: inline-flex; align-items: center; gap: .7rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-2); margin-bottom: 1.8rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5bbf7a; box-shadow: 0 0 0 0 rgba(91,191,122,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(91,191,122,0); } 100% { box-shadow: 0 0 0 0 rgba(91,191,122,0); } }
.hero-title { font-size: clamp(2.5rem, 6vw, 5.2rem); font-weight: 600; }
.hero-sub { margin-top: 1.8rem; max-width: 46ch; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--cream-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }

/* Palabras del título: entrada escalonada */
.split-word { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(2deg); filter: blur(6px); animation: wordIn 1.1s var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms + var(--d, 0ms)); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
.hero-sub, .hero-actions, .hero-meta, .hero-name { animation: fadeUp 1.1s var(--ease-out) both; animation-delay: var(--d, 0ms); }
.hero-meta { --d: .3s; } .hero-sub { --d: .5s; } .hero-actions { --d: .7s; }
.no-js .hero-sub, .no-js .hero-actions, .no-js .hero-meta, .no-js .hero-name { animation: none; }
.hero-name { --d: .15s; font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 4vw, 3rem); letter-spacing: -0.02em; line-height: 1.05; color: var(--gold); margin-bottom: 1.2rem; display: inline-block; padding: .35rem 1.1rem .45rem; border: 1px solid rgba(196,154,91,.7); border-radius: 14px; background: rgba(196,154,91,.08); box-shadow: 0 0 0 5px rgba(196,154,91,.07), 0 10px 30px rgba(0,0,0,.25); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }

.hero-portrait { position: relative; max-width: 340px; width: 100%; justify-self: center; animation: portraitIn 1.1s var(--ease-out) .3s both; }
@keyframes portraitIn { from { opacity: 0; transform: translateY(40px) scale(.96); clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
/* Retrato recortado que "sale" del arco */
.portrait-stage {
  position: relative; aspect-ratio: 4 / 5;
  clip-path: inset(-30% -30% 0 -30%);   /* la cabeza puede sobresalir arriba, el borde inferior corta */
  transition: transform .6s var(--ease-out);
}
.portrait-arch {
  position: absolute; inset: 14% 0 0 0; overflow: hidden;
  border-radius: 999px 999px 6px 6px;
  background: radial-gradient(circle at 50% 35%, #3a2a22 0%, #22191a 45%, var(--bg-3) 75%);
  border: 1px solid rgba(196,154,91,.4);
}
.portrait-arch::after { content: ""; position: absolute; inset: 10px; border-radius: 999px 999px 2px 2px; border: 1px solid rgba(196,154,91,.22); pointer-events: none; }
.portrait-img {
  position: absolute; left: 50%; top: -4%; height: 172%; width: auto; max-width: none;
  translate: -50% 0;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)) saturate(.95) contrast(1.04);
}
.portrait-halo, .service-halo {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease-out);
  background: radial-gradient(circle 260px at var(--hx, 50%) var(--hy, 50%), rgba(196,154,91,.22), transparent 60%);
}
[data-tilt]:hover .portrait-halo, [data-tilt]:hover .service-halo { opacity: 1; }
.hero-portrait figcaption {
  position: absolute; left: -1rem; bottom: 2rem; display: flex; align-items: center; gap: .9rem;
  padding: .8rem 1.1rem; background: rgba(14,12,10,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px;
}
.fig-num { font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--gold); }
.fig-label { font-size: .72rem; letter-spacing: .08em; color: var(--cream-2); line-height: 1.4; }

.scroll-cue { display: none; position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0; width: 22px; height: 36px; border: 1px solid var(--cream-3); border-radius: 12px; }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 2px; height: 7px; margin-left: -1px; background: var(--gold); border-radius: 2px; animation: cue 1.8s var(--ease-soft) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---- Marquee ---- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.3rem 0; background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 2rem; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--display); font-style: normal; font-weight: 500; font-size: clamp(1.4rem, 3vw, 2.2rem); white-space: nowrap; color: var(--cream-2); }
.marquee i { font-style: normal; color: var(--accent); font-size: 1rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Manifiesto ---- */
.manifesto { max-width: 1100px; margin-inline: auto; padding: clamp(6rem, 16vw, 12rem) var(--gutter); }
.manifesto-text { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 4.2vw, 3.3rem); line-height: 1.25; letter-spacing: -0.01em; }
.manifesto-text .w { opacity: .16; transition: opacity .2s linear; }
.manifesto-sign { margin-top: 2.2rem; font-family: var(--display); font-style: normal; font-weight: 600; color: var(--gold); font-size: 1.2rem; }

/* ---- Trayectoria ---- */
.chapters { position: relative; padding-top: clamp(4rem, 10vw, 6rem); padding-bottom: clamp(4rem, 10vw, 6rem); background: linear-gradient(180deg, var(--bg), var(--bg-2)); border-top: 1px solid var(--line); }
.chapters-head { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); margin-bottom: 3rem; }
.chapters-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chapters-viewport::-webkit-scrollbar { display: none; }
.chapters-track { display: flex; gap: 1.2rem; padding-inline: var(--gutter); width: max-content; }
.chapter {
  position: relative; scroll-snap-align: start; flex: 0 0 auto; width: min(82vw, 440px); min-height: 380px;
  padding: 2.2rem; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.chapter-num { position: absolute; top: .4rem; right: 1.4rem; font-family: var(--display); font-style: normal; font-weight: 700; font-size: 7rem; line-height: 1; color: rgba(196,154,91,.14); }
.chapter h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .9rem; }
.chapter p { color: var(--cream-2); }
.chapter-cta { background: var(--accent); border-color: var(--accent); }
.chapter-cta .chapter-num { color: rgba(242,235,218,.18); }
.chapter-cta p { color: var(--cream); margin-bottom: 1.6rem; }
.chapter-cta .btn { align-self: flex-start; background: var(--cream); color: var(--bg); border-color: var(--cream); }

/* ---- Galería ---- */
.gallery { background: var(--bg-2); border-top: 1px solid var(--line); }
.gallery-grid { display: grid; gap: 1.2rem; }
.shot { position: relative; }
.shot-img { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; background: var(--bg-3); }
.shot-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14,12,10,.55)); pointer-events: none; }
.shot-img img { width: 100%; height: 115%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease-out), filter .8s var(--ease-out); filter: saturate(.9); }
.shot:hover .shot-img img { transform: scale(1.12); filter: saturate(1.08); }
.shot figcaption { display: flex; gap: .9rem; align-items: baseline; margin-top: .9rem; font-size: .82rem; color: var(--cream-2); }
.shot figcaption span { font-size: .7rem; letter-spacing: .2em; color: var(--gold); }


/* ---- Humo detrás del retrato (solo CSS) ---- */
.smoke { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.smoke i { position: absolute; border-radius: 50%; opacity: 0; will-change: transform, opacity; }
.smoke i:nth-child(1) { width: 62%; height: 36%; left: -26%; bottom: 4%; background: radial-gradient(closest-side, rgba(242,235,218,.95), transparent); animation: smokeA 9s ease-in-out infinite; }
.smoke i:nth-child(2) { width: 62%; height: 36%; right: -26%; bottom: 18%; background: radial-gradient(closest-side, rgba(214,170,100,.95), transparent); animation: smokeB 11s ease-in-out -4s infinite; }
.smoke i:nth-child(3) { width: 58%; height: 34%; left: -22%; top: 34%; background: radial-gradient(closest-side, rgba(200,50,70,.95), transparent); animation: smokeB 13s ease-in-out -2s infinite; }
.smoke i:nth-child(4) { width: 58%; height: 34%; right: -22%; top: 22%; background: radial-gradient(closest-side, rgba(242,235,218,.9), transparent); animation: smokeA 15s ease-in-out -7s infinite; }
.smoke i:nth-child(5) { width: 80%; height: 40%; left: 10%; bottom: -8%; background: radial-gradient(closest-side, rgba(242,235,218,.8), transparent); animation: smokeA 12s ease-in-out -9s infinite; }
@keyframes smokeA { 0% { transform: translate3d(0, 20%, 0) scale(.8); opacity: 0; } 30% { opacity: 1; } 70% { opacity: .75; } 100% { transform: translate3d(18%, -90%, 0) scale(1.4); opacity: 0; } }
@keyframes smokeB { 0% { transform: translate3d(0, 20%, 0) scale(.9); opacity: 0; } 35% { opacity: 1; } 100% { transform: translate3d(-18%, -100%, 0) scale(1.5); opacity: 0; } }

/* ---- Botón de WhatsApp: dorado, tambalea cada 5 s ---- */
.wa-float { background: var(--gold); color: var(--bg); box-shadow: 0 10px 28px rgba(196,154,91,.35), 0 12px 30px rgba(0,0,0,.4); animation: waWobble 5s ease-in-out 2s infinite; }
.wa-float:hover { background: var(--cream); color: var(--bg); animation: none; }
@keyframes waWobble {
  0%, 68%, 100% { transform: none; }
  72% { transform: rotate(-16deg) scale(1.08); }
  76% { transform: rotate(14deg) scale(1.08); }
  80% { transform: rotate(-11deg) scale(1.05); }
  84% { transform: rotate(8deg) scale(1.03); }
  88% { transform: rotate(-4deg); }
  92% { transform: rotate(0); }
}

/* ---- Línea fina bajo los títulos ---- */
.section-title::after, .contact-title::after, .split-title::after, .m-title::after { content: ""; display: block; width: clamp(48px, 7vw, 84px); height: 2px; margin-top: clamp(.7rem, 1.6vw, 1.1rem); background: linear-gradient(90deg, var(--gold), rgba(196,154,91,0)); border-radius: 2px; }

/* ---- Medios, campo y pasiones: deslizamiento horizontal ---- */
.moments { --mh: min(58vh, 460px); position: relative; padding-block: clamp(4rem, 10vw, 6rem); background: var(--bg-2); border-block: 1px solid var(--line); }
.moments-viewport { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.moments-viewport::-webkit-scrollbar { display: none; }
.moments-track { display: flex; align-items: center; gap: 1.2rem; padding-inline: var(--gutter); width: max-content; }
.moment { flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; }
.moment-intro { flex-direction: column; align-items: flex-start; justify-content: center; width: min(82vw, 560px); }
.moments-hint { margin-top: 2rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.hint-desktop { display: none; }
.m-fig { position: relative; overflow: hidden; border-radius: 18px; background: var(--bg-3); margin: 0; }
.m-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .8s var(--ease-out); filter: saturate(.95); }
.m-fig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,12,10,0) 45%, rgba(14,12,10,.82)); pointer-events: none; }
.m-fig:hover img { transform: scale(1.05); filter: saturate(1.1); }
.m-title { position: absolute; z-index: 2; left: clamp(1.2rem, 3vw, 2.2rem); bottom: clamp(1rem, 3vw, 1.8rem); font-size: clamp(2.8rem, 12vw, 6.4rem); font-weight: 700; letter-spacing: -0.045em; line-height: .95; color: var(--cream); text-shadow: 0 4px 30px rgba(0,0,0,.5); pointer-events: none; }
.m-cap { position: absolute; z-index: 2; left: .9rem; top: .9rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(14,12,10,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: .72rem; letter-spacing: .06em; color: var(--cream); }
.m-fig--media { width: 82vw; aspect-ratio: 4 / 5; }
.m-fig--media img { object-position: 22% center; }
.cluster { position: relative; display: flex; gap: 6px; }
.cluster .m-fig { width: 70vw; aspect-ratio: 3 / 4; border-radius: 14px; flex: 0 0 auto; }
.cluster .m-title { z-index: 3; }
.moment-split { gap: 1.4rem; align-items: center; }
.split-copy { width: min(78vw, 330px); }
.split-title { font-size: clamp(2rem, 6vw, 3.2rem); }
.split-copy p { margin-top: 1rem; color: var(--cream-2); max-width: 36ch; }
.split-shots { display: flex; gap: 6px; }
.moment-split .shot { flex: 0 0 auto; }
.moment-split .shot-img { aspect-ratio: auto; height: 100%; border-radius: 14px; }
.moment-split .shot-img img { height: 100%; transform: none; }
.moment-split .shot:hover .shot-img img { transform: scale(1.05); }
.shot-tall { width: 62vw; aspect-ratio: 3 / 4; }
.shot-square { width: 72vw; aspect-ratio: 1; }
.moment-split .shot { display: flex; flex-direction: column; }
.moment-split .shot .shot-img { flex: 1 1 auto; min-height: 0; }
@media (hover: none), (pointer: coarse) { .hint-touch { display: inline; } }
@media (min-width: 960px) {
  .moments { --mh: min(72vh, 680px); }
  .moments-track { gap: clamp(3rem, 6vw, 5rem); }
  .moment-intro { width: min(46vw, 600px); }
  .m-fig--media { width: auto; height: var(--mh); aspect-ratio: 16 / 9; }
  .cluster { width: calc(var(--mh) * 2.95); height: var(--mh); }
  .cluster .m-fig { width: auto; aspect-ratio: auto; height: 100%; flex: var(--g) 1 0; min-width: 0; transition: flex-grow .7s var(--ease-out); }
  .cluster .m-fig:hover { flex-grow: calc(var(--g) * 2.4); }
  .moment-split { gap: 2.4rem; }
  .split-copy { width: 330px; }
  .split-shots { height: var(--mh); }
  .shot-tall { width: calc(var(--mh) * .75); aspect-ratio: auto; height: 100%; }
  .shot-square { width: var(--mh); aspect-ratio: auto; height: 100%; }
  .hint-desktop { display: inline; }
  .hint-touch { display: none; }
  .has-pin-m .moments { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 5.5rem; padding-bottom: 2.5rem; }
  .has-pin-m .moments-viewport { overflow: visible; scroll-snap-type: none; }
}

/* ---- Móvil: alineación y bloques de la sección que se desliza ---- */
.moments-viewport { scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
.moment { scroll-snap-align: none; }
.moment-intro { scroll-snap-align: start; }
.m-fig--media { width: calc(100vw - 2 * var(--gutter)); scroll-snap-align: center; }
.cluster .m-fig { width: calc(100vw - 2 * var(--gutter)); scroll-snap-align: center; }
.moment-split { --pw: calc((100vw - 2 * var(--gutter) - 6px) / 2); flex-direction: column; align-items: stretch; width: calc(100vw - 2 * var(--gutter)); gap: 1rem; scroll-snap-align: center; }
.moment-split .split-copy { order: 2; width: auto; }
.moment-split .split-copy .split-title { display: none; }
.moment-split .split-copy--desktop { display: none; }
.split-shots { position: relative; width: 100%; }
.moment-split .shot-tall { flex: 1 1 0; min-width: 0; width: auto; }
.moment-split .shot-square { width: 100%; }
.moment-split figcaption { font-size: .72rem; }
.split-title-over { position: absolute; z-index: 3; margin: 0; pointer-events: none; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--cream); text-shadow: 0 2px 20px rgba(0,0,0,.85), 0 0 4px rgba(0,0,0,.5); }
.split-title-over--mid { left: 0; right: 0; top: calc(var(--pw) * 2 / 3); transform: translateY(-50%); text-align: center; font-size: clamp(1.9rem, 8.4vw, 2.6rem); padding-inline: .6rem; }
.split-title-over--mid::after { margin-inline: auto; }
.split-title-over--bottom { left: 1.1rem; right: 1rem; bottom: 1.1rem; font-size: clamp(2.2rem, 10vw, 3.2rem); }
.shot-img { position: relative; }
.split-title-over::after { content: ""; display: block; width: 56px; height: 2px; margin-top: .7rem; background: linear-gradient(90deg, var(--gold), rgba(196,154,91,0)); border-radius: 2px; }
.split-title-over--mid::after { background: linear-gradient(90deg, rgba(196,154,91,0), var(--gold), rgba(196,154,91,0)); }
@media (min-width: 960px) {
  .moments-viewport { scroll-snap-type: none; scroll-padding-inline: 0; }
  .moment-split { --pw: auto; flex-direction: row; align-items: center; width: auto; gap: 2.4rem; }
  .moment-split .split-copy { order: 0; width: 330px; }
  .moment-split .split-copy .split-title { display: block; }
  .moment-split .split-copy--desktop { display: block; }
  .split-title-over { display: none; }
  .split-shots { width: auto; }
  .moment-split .shot-tall { flex: 0 0 auto; }
  .moment-split .shot-square { width: var(--mh); }
}

/* Revelado con cortina */
.reveal-clip .shot-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-out); }
.reveal-clip figcaption { opacity: 0; transform: translateY(12px); transition: opacity 1s var(--ease-out) .5s, transform 1s var(--ease-out) .5s; }
.reveal-clip.is-visible .shot-img { clip-path: inset(0 0 0 0); }
.reveal-clip.is-visible figcaption { opacity: 1; transform: none; }
.no-js .reveal-clip .shot-img { clip-path: none; }
.no-js .reveal-clip figcaption { opacity: 1; transform: none; }

/* ---- Servicios ---- */
.services { display: grid; gap: 1.2rem; perspective: 1200px; }
.service {
  position: relative; padding: 2.4rem 2rem; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line);
  transform-style: preserve-3d; transition: transform .6s var(--ease-out), border-color .4s var(--ease-out);
}
.service:hover { border-color: rgba(196,154,91,.4); }
.service-num { font-size: .72rem; letter-spacing: .2em; color: var(--gold); }
.service h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 1.6rem 0 1rem; }
.service p { color: var(--cream-2); }
.service ul { margin-top: 1.6rem; border-top: 1px solid var(--line); }
.service li { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; display: flex; gap: .7rem; }
.service li::before { content: "—"; color: var(--gold); }

/* ---- Formación ---- */
.studies { border-top: 1px solid var(--line); }
.study {
  position: relative; display: grid; gap: .3rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line);
}
.study::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
.study:hover::after { transform: scaleX(1); }
.study-year { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.study h3 { font-size: clamp(1.5rem, 3.2vw, 2.4rem); transition: transform .6s var(--ease-out), color .4s var(--ease-out); }
.study:hover h3 { transform: translateX(10px); color: var(--gold); }
.study-place { color: var(--cream-3); font-style: italic; }

/* ---- Partidos ---- */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.logo-slot {
  aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 1.4rem;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .4s var(--ease-out), background .4s var(--ease-out), transform .5s var(--ease-out);
}
.logo-slot:hover { border-color: rgba(196,154,91,.45); background: var(--bg-3); transform: translateY(-4px); }
.logo-slot img { max-height: 75%; width: auto; filter: grayscale(1) brightness(1.2); opacity: .75; transition: filter .5s var(--ease-out), opacity .5s var(--ease-out); }
.logo-slot:hover img { filter: none; opacity: 1; }
.logo-slot span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-3); border: 1px dashed var(--line); padding: .6rem .9rem; border-radius: 8px; }

/* ---- Contacto ---- */
.contact { position: relative; overflow: hidden; padding-block: clamp(5rem, 12vw, 9rem); border-top: 1px solid var(--line); isolation: isolate; }
.contact-mesh {
  position: absolute; inset: -30%; z-index: -1; filter: blur(80px); opacity: .7;
  background: radial-gradient(circle at 20% 30%, rgba(158,27,44,.45), transparent 40%), radial-gradient(circle at 80% 80%, rgba(196,154,91,.18), transparent 40%);
}
.contact-inner { display: grid; gap: 3rem; }
.contact-title { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.contact-lede { margin: 1.4rem 0 2.2rem; max-width: 44ch; color: var(--cream-2); font-size: 1.08rem; }
.contact-list { margin-top: 3rem; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; gap: .2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
dt { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-3); }
dd { font-family: var(--display); font-size: 1.3rem; }
dd a { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out), color .3s; }
dd a:hover { background-size: 100% 1px; color: var(--gold); }
.contact-map { min-height: 360px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.contact-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: invert(.92) hue-rotate(180deg) grayscale(.6) contrast(.9); }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding: 2.2rem 0 6rem; }
.footer-inner { display: grid; gap: .4rem; text-align: center; font-size: .78rem; color: var(--cream-3); }
.footer-brand { font-family: var(--display); font-style: normal; font-weight: 600; font-size: 1.5rem; color: var(--cream); }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--accent); color: var(--cream); border-radius: 50%; box-shadow: 0 12px 30px rgba(0,0,0,.4);
  transition: transform .4s var(--ease-out), background .4s var(--ease-out);
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); background: var(--gold); color: var(--bg); }

/* =============================================================
   8. Effects (reveal)
   ============================================================= */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--rd, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =============================================================
   9. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .logos { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .contact-list { grid-template-columns: repeat(3, 1fr); display: grid; gap: 1.5rem; border-top: 0; }
  .contact-list > div { border-top: 1px solid var(--line); border-bottom: 0; }
  .study { grid-template-columns: 120px 1fr auto; align-items: baseline; gap: 2rem; }
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-list {
    position: static; flex-direction: row; gap: 2rem; padding: 0; background: none;
    opacity: 1; visibility: visible;
  }
  .nav-list a { font-family: var(--sans); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; border: 0; padding: .3rem 0; position: relative; }
  .nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
  .nav-list a:hover::after { transform: scaleX(1); transform-origin: left; }
  .hero-inner { grid-template-columns: 1.8fr 1fr; gap: 4rem; }
  .hero-portrait { max-width: 400px; justify-self: end; }
  .scroll-cue { display: block; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; gap: 1.6rem; }
  .shot-wide { grid-row: span 2; }
  .shot-wide .shot-img { aspect-ratio: auto; height: calc(100% - 2.6rem); min-height: 520px; }
  .logos { grid-template-columns: repeat(6, 1fr); }
  .contact-inner { grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; }
  .contact-list { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .contact-list > div { border-top: 0; border-bottom: 1px solid var(--line); }
  .contact-map { position: sticky; top: 7rem; min-height: 520px; }
  .contact-map iframe { min-height: 520px; }

  /* Trayectoria: el scroll horizontal lo maneja GSAP (pin) */
  .has-pin .chapters { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .has-pin .chapters-viewport { overflow: visible; scroll-snap-type: none; }
  .chapter { width: 420px; min-height: 440px; }
}

/* =============================================================
   10. Reduced motion (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .smoke i, .wa-float { animation: none; }
  .smoke i:nth-child(1), .smoke i:nth-child(2) { opacity: .35; }
  .dot { animation: none; }
  .hero-mesh { animation-duration: 60s; }
}

/* ---- Rendimiento en celular ---- */
@media (max-width: 959px) {
  .hero-mesh { filter: none; animation: none; inset: -10%; background: radial-gradient(circle at 75% 30%, rgba(158,27,44,.55), transparent 55%), radial-gradient(circle at 20% 80%, rgba(196,154,91,.22), transparent 50%); }
  .contact-mesh { filter: none; inset: 0; }
  .hero-grain { display: none; }
  .split-word { filter: none; animation-name: wordInLite; }
  .smoke i:nth-child(n+3) { display: none; }
  .nav.is-scrolled { background: rgba(14,12,10,.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .m-cap, .intro-skip, .hero-portrait figcaption { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(14,12,10,.85); }
  .m-fig img, .shot-img img { transition: none; }
  .hero-portrait { animation-delay: .3s; }
}
@keyframes wordInLite { to { opacity: 1; transform: none; } }
