/* =============================================================
   Pao Cristancho — Portafolio
   Diseño primero. IA después.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Paleta de marca (manual) */
  --lime: #AECC3F;
  --lime-deep: #9AB82F;
  --olive: #6B7351;
  --ink: #1A1A18;
  --gray: #8C8C86;
  --white: #FFFFFF;
  /* Extendida desde la fotografía de marca */
  --cream: #F4EFE6;
  --cream-2: #EAE3D6;
  --wine: #5A0F16;
  --wine-2: #420A10;
  --cinema: #B3141F;

  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1360px;
  --radius: 28px;
  --nav-h: 76px;
  --cs-gap: clamp(1rem, 2vw, 1.6rem);   /* separación de la retícula de los casos */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V24C120 8 240 0 360 0s240 8 360 24 240 24 360 24 240-8 360-24v24z' fill='%23000'/%3E%3C/svg%3E");
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
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; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.02; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--lime); color: var(--ink);
  border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.kicker {
  font-size: .92rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem;
}
.kicker-wine { color: var(--wine); }
.kicker-lime { color: var(--lime); }

.display {
  font-family: var(--sans);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 8.4vw, 7.4rem);
  line-height: .86;
  letter-spacing: -.035em;
  color: var(--ink);
}
.display em { text-transform: none; letter-spacing: -.02em; font-size: 1.02em; }
.display-wine { color: var(--wine); }
.display-cream { color: var(--cream); }
/* Títulos de sección (H2): todos con el mismo tamaño y estilo */
.sec-title { font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .96; letter-spacing: -.035em; max-width: 14ch; text-wrap: balance; }
.sec-head-center .sec-title { margin-inline: auto; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  --bg: var(--ink); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .98rem; letter-spacing: .01em; white-space: nowrap;
  transition: transform .45s var(--ease-out), background-color .3s, color .3s, box-shadow .45s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -12px rgba(0,0,0,.45); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ink { --bg: var(--ink); --fg: var(--cream); }
.btn-ink:hover { --bg: var(--wine); }
.btn-lime { --bg: var(--lime); --fg: var(--ink); }
.btn-lime:hover { --bg: var(--cream); }
.btn-ghost { --bg: transparent; --fg: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(244,239,230,.6); }
.btn-ghost:hover { --bg: var(--cream); --fg: var(--ink); }
.btn-lg { padding: 1.2rem 2.1rem; font-size: 1.08rem; }

/* =============================================================
   5. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--lime);
  transition: clip-path 1s var(--ease-out), visibility 0s 1s;
  clip-path: inset(0 0 0 0);
  animation: splashSafety .01s 4.5s forwards;
}
.splash-logo { width: min(260px, 50vw); animation: splashIn 1s var(--ease-out) both; }
.splash.is-out { clip-path: inset(0 0 100% 0); visibility: hidden; }
@keyframes splashIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes splashSafety { to { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; } }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background-color .4s, box-shadow .4s, transform .5s var(--ease-out);
}
.nav-inner {
  height: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo { position: relative; display: block; width: 74px; }
.nav-logo img { width: 100%; transition: opacity .35s; }
.nav-logo .logo-dark { position: absolute; inset: 0; opacity: 0; }
.nav-links { display: none; gap: 2.2rem; font-weight: 500; color: var(--cream); }
.nav-links a { position: relative; padding-block: .3rem; transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; padding: .7rem 1.35rem; --bg: var(--lime); --fg: var(--ink); }
.nav-cta:hover { --bg: var(--cream); }

.nav.is-solid { background: var(--cream); box-shadow: 0 1px 0 rgba(26,26,24,.08); }
.nav.is-solid .logo-light { opacity: 0; }
.nav.is-solid .logo-dark { opacity: 1; }
.nav.is-solid .nav-links { color: var(--ink); }
.nav.is-solid .nav-cta { --bg: var(--ink); --fg: var(--cream); }
.nav.is-solid .nav-cta:hover { --bg: var(--wine); }
.nav.is-hidden { transform: translateY(-100%); }

.nav-burger {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--lime); display: grid; place-content: center; gap: 6px;
}
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .4s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--wine);
  display: grid; align-items: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: .4rem; }
.menu a {
  font-weight: 900; text-transform: uppercase; letter-spacing: -.03em;
  font-size: clamp(2.6rem, 13vw, 4.5rem); line-height: 1; color: var(--cream);
  animation: menuIn .7s var(--ease-out) both;
}
.menu a:nth-child(2) { animation-delay: .05s; } .menu a:nth-child(3) { animation-delay: .1s; }
.menu a:nth-child(4) { animation-delay: .15s; } .menu a:nth-child(5) { animation-delay: .2s; color: var(--lime); }
@keyframes menuIn { from { opacity: 0; transform: translateY(30px); } }
body.menu-open .nav-logo .logo-light { opacity: 1; }
body.menu-open .nav { background: transparent; box-shadow: none; }
body.menu-open .nav .logo-dark { opacity: 0; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--cream);
  background: var(--wine-2);
  isolation: isolate;
  overflow: clip;
}
.hero-media { position: absolute; inset: -6% 0 0 0; z-index: -2; will-change: transform; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%;
  animation: heroZoom 2.4s var(--ease-out) both;
}
@keyframes heroZoom { from { transform: scale(1.12); filter: brightness(.4); } to { transform: scale(1); filter: none; } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(40,6,10,.88) 0%, rgba(40,6,10,.55) 42%, rgba(40,6,10,0) 75%),
    linear-gradient(0deg, rgba(30,4,8,.85) 0%, rgba(30,4,8,0) 45%);
}
.hero-content {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) clamp(5rem, 11vh, 8rem);
}
.hero-row { display: flex; flex-direction: column; align-items: flex-start; }
.hero-row .hero-title { min-width: 0; }
@media (min-width: 720px) {
  .hero-row { flex-direction: row; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
  .hero-row .reel-badge { flex: 0 0 auto; margin-bottom: 0; order: 2; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: .5rem 1rem .5rem .8rem; border-radius: 999px;
  background: rgba(244,239,230,.1); box-shadow: inset 0 0 0 1px rgba(244,239,230,.22);
  margin-bottom: 1.6rem;
  animation: fadeUp 1s var(--ease-out) 1s both;
}
@supports (backdrop-filter: blur(8px)) { .eyebrow { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(174,204,63,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(174,204,63,0); } 100% { box-shadow: 0 0 0 0 rgba(174,204,63,0); } }

.hero-title {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.3rem, min(7.2vw, 11svh), 7.2rem);
  line-height: .86; letter-spacing: -.04em;
}
.hero-title .line { display: block; overflow: hidden; padding: .14em .06em .04em 0; margin-top: -.14em; white-space: nowrap; }
.hero-title .line > span { display: inline-block; animation: rise 1.1s var(--ease-out) both; }
.hero-title .line:nth-child(1) > span { animation-delay: .85s; }
.hero-title .line:nth-child(2) > span { animation-delay: .95s; }
.hero-title .line:nth-child(3) > span { animation-delay: 1.05s; }
.hero-title .line-accent { color: var(--lime); }
.hero-title em { font-size: 1.06em; letter-spacing: -.02em; text-transform: none; padding-right: .04em; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-sub {
  max-width: 34rem; margin-top: .8rem;
  font-size: clamp(1.02rem, 1.3vw, 1.2rem); font-weight: 300; color: rgba(244,239,230,.86);
  animation: fadeUp 1s var(--ease-out) 1.25s both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; animation: fadeUp 1s var(--ease-out) 1.4s both; }

.reel-badge {
  position: relative;
  width: clamp(112px, 10.5vw, 156px); aspect-ratio: 1;
  display: grid; place-items: center;
  margin-bottom: 1.6rem;
  animation: fadeUp 1s var(--ease-out) .8s both;
}
.reel-badge > svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.reel-badge text { fill: var(--cream); font: 600 15.5px var(--sans); letter-spacing: .32em; }
.reel-play {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: var(--lime); display: grid; place-items: center;
  transition: transform .5s var(--ease-out), background-color .3s;
}
.reel-play svg { width: 36%; fill: var(--ink); margin-left: 6%; }
.reel-badge:hover .reel-play { transform: scale(1.14); background: var(--cream); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-coords {
  position: absolute; left: var(--gutter); bottom: 1.4rem;
  font-size: .7rem; letter-spacing: .2em; color: rgba(244,239,230,.55);
}

/* =============================================================
   8. Marquee
   ============================================================= */
.marquee {
  background: var(--ink); color: var(--cream);
  overflow: hidden; padding-block: 1.05rem;
  position: relative; z-index: 2;
}
.marquee-track {
  display: flex; width: max-content; align-items: center; gap: 2rem;
  animation: marquee 32s linear infinite;
  font-weight: 800; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}
.marquee-track span { white-space: nowrap; }
.marquee-track span:nth-of-type(even) { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; color: var(--lime); }
.marquee-track i { font-style: normal; color: var(--lime); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =============================================================
   9. Sections
   ============================================================= */
.sec { position: relative; padding-block: clamp(5rem, 11vw, 9.5rem); }
.sec-lime  { background: var(--lime); color: var(--ink); }
.sec-cream { background: var(--cream); color: var(--ink); }
.sec-wine  { background: var(--wine); color: var(--cream); }

/* Ola superior — el color del borde es el mismo de la sección */
.wave-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -47px; height: 48px;
  background: inherit;
  -webkit-mask: var(--wave) center / 100% 100% no-repeat;
          mask: var(--wave) center / 100% 100% no-repeat;
  pointer-events: none;
}

.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head-center { text-align: center; }
.sec-intro { max-width: 36rem; margin-top: 1.5rem; font-size: 1.12rem; color: #3b3b37; }

/* ---------- Proyectos (galería 4:3) ---------- */
.sec-head-split { display: grid; gap: 1.5rem; align-items: end; }
.sec-aside { max-width: 26rem; font-size: 1.02rem; }

.gallery { display: grid; gap: clamp(2rem, 3vw, 2.6rem) clamp(1rem, 2vw, 1.6rem); }

.work { display: flex; flex-direction: column; }
.work-media {
  position: relative; display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--wine);
  isolation: isolate;
  box-shadow: 0 30px 60px -34px rgba(26,26,24,.6);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.work:hover .work-media { transform: translateY(-6px); box-shadow: 0 40px 70px -34px rgba(26,26,24,.7); }
.work-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .5s; }
.work:hover .work-thumb { transform: scale(1.04); }

/* Video de vista previa: recortado para llenar el 4:3 sin barras */
.work-video {
  position: absolute; z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity .6s var(--ease-out);
}
.work-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.work-video.is-playing { opacity: 1; }

.work-top {
  position: absolute; z-index: 2; top: 1rem; left: 1rem; right: 1rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.work-tag { white-space: nowrap; padding: .4rem .8rem; border-radius: 999px; background: var(--lime); color: var(--ink); letter-spacing: .06em; }
.work-live {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .75rem; border-radius: 999px;
  background: rgba(26,26,24,.55); color: var(--cream);
  opacity: 0; transform: translateY(-4px); transition: opacity .4s, transform .4s var(--ease-out);
}
.work-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.work:hover .work-live { opacity: 1; transform: none; }

.work-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(179,20,31,.5), transparent 60%),
    linear-gradient(160deg, var(--wine) 0%, var(--wine-2) 100%);
}
.work-empty::before {
  content: ""; position: absolute; inset: 1rem; border-radius: calc(var(--radius) - 10px);
  border: 1.5px dashed rgba(244,239,230,.22);
}
.work-empty span {
  font-weight: 900; font-size: clamp(4.5rem, 9vw, 7rem); letter-spacing: -.06em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(174,204,63,.55);
}

.work-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.2rem .3rem 0; }
.work-num { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--olive); }
.work-title { margin-top: .15rem; font-size: clamp(1.45rem, 2vw, 1.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.work-meta { margin-top: .35rem; font-size: .92rem; color: #3b3b37; }
.work-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.05rem .7rem 1.2rem; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font-size: .88rem; font-weight: 600; white-space: nowrap;
  transition: background-color .3s, color .3s, transform .45s var(--ease-out);
}
.work-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.work-btn:hover { background: var(--wine); transform: translateY(-2px); }
.work-btn:hover svg { transform: translateX(3px); }
.work-btn.is-soon { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(26,26,24,.35); pointer-events: none; }

/* ---------- Plantilla de caso de estudio (caso.js) ---------- */
.cs-sec { position: relative; padding-block: clamp(5rem, 10vw, 9rem); }
.cs-sec.is-continued { padding-top: clamp(1rem, 3vw, 2.5rem); }
.bg-cream { background: var(--cream); color: var(--ink); }
.bg-wine  { background: var(--wine); color: var(--cream); }
.bg-lime  { background: var(--lime); color: var(--ink); }
.bg-cream .kicker { color: var(--wine); }
.bg-cream .sec-title { color: var(--wine); }
.bg-wine .kicker { color: var(--lime); }
.bg-wine .sec-title { color: var(--cream); }
.bg-lime .kicker, .bg-lime .sec-title { color: var(--ink); }

.cs-text { margin-top: 1.4rem; max-width: 34rem; font-size: 1.08rem; line-height: 1.65; color: #3b3b37; }
.bg-wine .cs-text { color: rgba(244,239,230,.8); }
.cs-text-lg { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.45; color: var(--ink); margin-top: 0; }
.cs-sec-intro { display: grid; gap: 0 clamp(2rem, 6vw, 6rem); align-items: start; margin-bottom: clamp(2.8rem, 6vw, 5rem); }

/* --- Media --- */
.cs-m { position: relative; margin: 0; min-width: 0; }
.cs-m.has-ar { width: min(100%, calc(var(--cap, 82svh) * var(--ar))); }
.cs-frame { position: relative; overflow: hidden; border-radius: 18px; background: rgba(26,26,24,.05); }
.bg-wine .cs-frame { background: rgba(244,239,230,.06); }
.has-ar .cs-frame { aspect-ratio: var(--ar); }
.cs-frame > img, .cs-frame > video, .cs-yt, .cs-yt img, .cs-yt iframe { display: block; width: 100%; }
.has-ar .cs-frame > img, .has-ar .cs-frame > video, .cs-yt, .cs-yt img, .cs-yt iframe, .cs-ph { position: absolute; inset: 0; height: 100%; }
.cs-frame > img, .cs-frame > video, .cs-yt img { object-fit: cover; transition: transform 1.2s var(--ease-out); }
.is-contain .cs-frame > img, .is-contain .cs-frame > video { object-fit: contain; }
.cs-m:hover .cs-frame > img, .cs-m:hover .cs-yt img { transform: scale(1.025); }
.cs-yt iframe { border: 0; z-index: 2; }
.cs-yt-note { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 2rem; text-align: center; background: var(--wine-2); color: var(--cream); }
.cs-yt-note p { max-width: 30rem; line-height: 1.6; }
.cs-yt-note strong { color: var(--lime); }
.cs-yt.is-playing img, .cs-yt.is-playing .cs-play { display: none; }
.cs-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(0deg, rgba(26,26,24,.35), rgba(26,26,24,0) 60%); }
.cs-play span { width: clamp(64px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--lime); transition: transform .5s var(--ease-out), background-color .3s; }
.cs-play svg { width: 34%; fill: var(--ink); margin-left: 6%; }
.cs-play:hover span { transform: scale(1.1); background: var(--cream); }
.cs-cap { margin-top: .7rem; font-size: .85rem; color: var(--gray); }
.bg-wine .cs-cap { color: rgba(244,239,230,.6); }

/* Placeholder neutro */
.cs-ph {
  display: grid; place-content: center; justify-items: center; gap: .4rem; text-align: center; padding: 1rem;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(26,26,24,.035) 14px 15px);
}
.bg-wine .cs-ph { background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(244,239,230,.05) 14px 15px); }
.cs-ph-name { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: clamp(.72rem, 1vw, .9rem); letter-spacing: .06em; color: var(--wine); }
.bg-wine .cs-ph-name { color: var(--lime); }
.cs-ph-info { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }

/* --- 01 Hero --- */
.cs-hero { padding-top: calc(var(--nav-h) + clamp(2rem, 4vw, 3.5rem)); }
.cs-back { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); font-size: .92rem; color: rgba(244,239,230,.75); transition: color .3s, gap .4s var(--ease-out); }
.cs-back svg, .cs-nav-link svg, .cs-next-go svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cs-back:hover { color: var(--lime); gap: .8rem; }
.cs-hero-grid { display: grid; gap: 2rem clamp(2rem, 6vw, 6rem); align-items: end; }
.cs-hero-title { font-size: clamp(2.6rem, 5.4vw, 6.4rem); line-height: .92; overflow-wrap: anywhere; letter-spacing: -.04em; color: var(--cream); animation: fadeUp 1s var(--ease-out) both; }
.cs-hero-desc { max-width: 30rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 300; line-height: 1.5; color: rgba(244,239,230,.86); }
.cs-meta { display: grid; gap: 1.1rem; margin-top: 2rem; }
.cs-meta dt { font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.cs-meta dd { margin-top: .25rem; font-size: 1rem; color: var(--cream); }
.cs-hero-media { margin-top: clamp(3rem, 6vw, 5rem); }
.cs-hero-media .cs-m { margin-inline: auto; --cap: 80svh; }

/* --- 02 El proyecto --- */
.cs-split { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.cs-split-media { display: grid; gap: 1.2rem; }
.cs-split-media.n-2 .cs-m:nth-child(2) { width: min(68%, calc(var(--cap, 82svh) * var(--ar, 1))); margin-left: auto; }

.cs-split-body .cs-text, .cs-sec-intro .cs-text, .cs-idea-top .cs-text, .cs-role-body .cs-text { max-width: 40rem; }
.cs-split-body .cs-text + .cs-text { margin-top: 1.2rem; }
.cs-text + .cs-text { margin-top: 1rem; }
.cs-quote + .cs-text { margin-top: 1.4rem; }

/* --- 03 La idea --- */
.cs-checklist { margin-bottom: clamp(2.8rem, 6vw, 4.5rem); padding-top: 1.8rem; border-top: 1px solid rgba(26,26,24,.14); }
.cs-checklist ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem var(--cs-gap); }
@media (min-width: 720px) { .cs-checklist ul { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; } }
.cs-checklist li { display: flex; align-items: center; gap: .8rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.cs-checklist li span {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lime); color: var(--ink); font-size: .9rem; font-weight: 900;
}
/* Guion en dos columnas */
.cs-script { padding-top: .5rem; }
.cs-script-note { margin-top: -.4rem; margin-bottom: 1.8rem; font-size: .9rem; color: var(--gray); }
.cs-script-cols { column-gap: var(--cs-gap); }
.cs-script-block { break-inside: avoid; margin-bottom: 1.8rem; }
.cs-script-label {
  display: inline-block; margin-bottom: .7rem; padding: .3rem .75rem; border-radius: 999px;
  background: var(--wine); color: var(--cream);
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.cs-script-block p:not(.cs-script-label) { font-size: .92rem; line-height: 1.6; color: #3b3b37; }
.cs-script-block p + p { margin-top: .55rem; }
.cs-script-block strong { color: var(--ink); font-weight: 700; }
.cs-ref { font-weight: 700; color: var(--olive); white-space: nowrap; }
@media (min-width: 720px) { .cs-script-cols { column-count: 2; } }
/* Pop-up del guion */
.cs-modal {
  width: min(1100px, 92vw); max-height: 88vh; margin: auto; padding: 0; border: 0;
  border-radius: 24px; background: var(--cream); color: var(--ink); overflow: hidden;
}
.cs-modal::backdrop { background: rgba(26,26,24,.72); }
@supports (backdrop-filter: blur(6px)) { .cs-modal::backdrop { backdrop-filter: blur(6px); } }
.cs-modal[open] { animation: playerIn .5s var(--ease-out) both; }
.cs-modal-body { max-height: 88vh; overflow-y: auto; padding: clamp(1.8rem, 4vw, 3.2rem); }
.cs-modal-title {
  font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; line-height: .95;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem); color: var(--wine); margin-bottom: .8rem; padding-right: 3.5rem;
}
.cs-modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--lime); color: var(--ink); font-size: 1.7rem; line-height: 1;
  transition: transform .45s var(--ease-out), background-color .3s, color .3s;
}
.cs-modal-close:hover { transform: rotate(90deg); background: var(--ink); color: var(--cream); }

/* Ojo junto a "Guion escrito": línea negra, verde al pasar el cursor */
.cs-eye {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: .1rem;
  border-radius: 50%; color: var(--ink); cursor: pointer;
  transition: color .3s, transform .45s var(--ease-out);
}
.cs-eye svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cs-eye:hover, .cs-eye:focus-visible { color: var(--lime-deep); transform: scale(1.12); }

.cs-block { margin-top: clamp(3.5rem, 7vw, 6rem); }
.cs-block .cs-palette { margin-bottom: 0; margin-top: 1.2rem; }
.cs-idea-top { display: grid; gap: 1rem clamp(2rem, 6vw, 6rem); align-items: start; margin-bottom: clamp(2.8rem, 6vw, 5rem); }
.cs-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.15; color: var(--wine); max-width: 22ch; }
.cs-compose { display: grid; gap: var(--cs-gap); align-items: start; }

/* --- 04 Desarrollo --- */
.cs-flow { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem) var(--cs-gap); align-items: start; }
.cs-note { display: flex; gap: .9rem; margin-top: 1rem; max-width: 30rem; }
.cs-note > span { font-family: var(--serif); font-style: italic; color: var(--olive); font-size: 1rem; line-height: 1.5; }
.cs-note strong { display: block; font-size: 1.05rem; font-weight: 800; }
.cs-note p { font-size: .95rem; color: #4a4a45; margin-top: .15rem; }
.cs-compare { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.cs-compare > div { position: relative; }
.cs-compare-tag { position: absolute; top: .8rem; left: .8rem; padding: .3rem .7rem; border-radius: 999px; background: var(--cream); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* --- 05 Resultado --- */
.cs-rows { display: grid; gap: clamp(1.2rem, 2.4vw, 2rem); }
.cs-row { display: grid; gap: clamp(1.2rem, 2.4vw, 2rem); align-items: start; justify-items: center; }
.cs-row .cs-m { --cap: 84svh; }
.r-vertical { display: flex; flex-wrap: wrap; justify-content: center; }
.r-vertical .cs-m { --cap: 72svh; flex: 0 1 auto; }

/* --- 06 Detalles --- */
.cs-palette { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.cs-palette li { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; }
.cs-palette span { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(26,26,24,.1); }
.cs-palette strong { font-size: .98rem; }
.cs-palette code { font-size: .8rem; color: var(--gray); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.cs-details { display: grid; gap: clamp(2rem, 4vw, 3.5rem) var(--cs-gap); align-items: start; }

/* --- 07 Mi participación --- */
.cs-role { display: grid; gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.cs-disc { display: flex; flex-wrap: wrap; gap: .2rem 0; margin-top: 2rem; }
.cs-disc li { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 800; letter-spacing: -.015em; color: var(--wine); }
.cs-disc li:not(:last-child)::after { content: "·"; margin-inline: .7rem; color: var(--lime-deep); font-weight: 900; }
.cs-decide { display: grid; gap: 2rem var(--cs-gap); margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 2rem; border-top: 1px solid rgba(26,26,24,.14); }
.cs-decide-label { font-size: .92rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); margin-bottom: 1rem; }
.cs-decide ul { display: grid; gap: .7rem; }
.cs-decide li { position: relative; padding-left: 1.3rem; font-size: 1rem; color: #3b3b37; }
.cs-decide li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-deep); }

/* --- Cierre --- */
.cs-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.cs-nav-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; transition: gap .4s var(--ease-out), color .3s; }
.cs-nav-link.is-next { justify-self: end; }
.cs-nav-link:hover { gap: .9rem; color: var(--wine); }
.cs-next { display: grid; gap: 1.6rem clamp(2rem, 5vw, 4rem); align-items: center; margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid rgba(26,26,24,.18); }
.cs-next-media { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: rgba(26,26,24,.08); }
.cs-next-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.cs-next-media .cs-ph { position: absolute; inset: 0; }
.cs-next:hover .cs-next-media img { transform: scale(1.05); }
.cs-next-title { font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; line-height: .9; font-size: clamp(2.6rem, 6.5vw, 6rem); }
.cs-next-go { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.2rem; font-weight: 700; transition: gap .4s var(--ease-out); }
.cs-next:hover .cs-next-go { gap: .9rem; }

.s-completo { --n: 12; --c: 1; } .s-grande { --n: 8; --c: 3; } .s-mediano { --n: 6; --c: 4; } .s-pequeno { --n: 4; --c: 5; }

@media (max-width: 719px) {
  .cs-nav { grid-template-columns: 1fr 1fr; }
  .cs-nav .btn { grid-column: 1 / -1; order: -1; justify-self: start; }
  .cs-split-media.n-2 .cs-m:nth-child(2) { width: min(82%, calc(var(--cap, 82svh) * var(--ar, 1))); }
}
@media (min-width: 720px) {
  .cs-row.r-dos { grid-template-columns: 1fr 1fr; }
  .cs-row.r-tres { grid-template-columns: repeat(3, 1fr); }
  .cs-row.r-mixto { grid-template-columns: 2fr 1fr; }
  .cs-row.r-mixto.is-flip { grid-template-columns: 1fr 2fr; }
  .cs-decide { grid-template-columns: 1fr 1fr; }
  .cs-compose.n-2, .cs-compose.n-3 { grid-template-columns: repeat(12, 1fr); }
  .cs-compose.n-2 .c1 { grid-column: 1 / 8; }
  .cs-compose.n-2 .c2 { grid-column: 8 / 13; margin-top: clamp(3rem, 8vw, 7rem); }
  .cs-compose.n-3 .c1 { grid-column: 1 / 8; grid-row: 1 / 3; }
  .cs-compose.n-3 .c2 { grid-column: 8 / 13; }
  .cs-compose.n-3 .c3 { grid-column: 9 / 13; }
  .cs-compose .cs-m { justify-self: start; }
  .cs-compose .c2, .cs-compose .c3 { justify-self: end; }
  .cs-flow, .cs-details { grid-template-columns: repeat(12, 1fr); grid-auto-flow: row dense; }
  .cs-piece { min-width: 0; }
  .cs-piece .cs-m { margin-inline: auto; }
  .cs-piece.l-izq { grid-column: 1 / span var(--n); }
  .cs-piece.l-der { grid-column: span var(--n) / -1; margin-top: clamp(0rem, 7vw, 7rem); }
  .cs-piece.l-centro { grid-column: var(--c) / span var(--n); }
  .cs-piece.s-completo { grid-column: 1 / -1; margin-top: 0; }
  .cs-piece.no-offset { margin-top: 0; }
  .cs-details .d1 { grid-column: 1 / span 7; }
  .cs-details .d2 { grid-column: span 5 / -1; margin-top: clamp(3rem, 9vw, 8rem); }
  .cs-details .d3 { grid-column: 2 / span 5; }
  .cs-details .d4 { grid-column: span 6 / -1; margin-top: clamp(2rem, 6vw, 5rem); }
  .cs-details .cs-m { margin-inline: auto; }
}
/* Retícula única de 12 columnas para todo el caso de estudio:
   títulos en las columnas 1–5, textos en las columnas 7–12. */
@media (min-width: 960px) {
  .cs-hero-grid, .cs-sec-intro, .cs-idea-top, .cs-split, .cs-role, .cs-next {
    grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cs-gap); align-items: start;
  }
  .cs-hero-grid > :first-child, .cs-sec-intro > :first-child, .cs-idea-top > :first-child,
  .cs-split > :first-child, .cs-role > :first-child { grid-column: 1 / 6; }
  .cs-hero-grid > :nth-child(2), .cs-sec-intro > :nth-child(2), .cs-idea-top > :nth-child(2),
  .cs-split > :nth-child(2), .cs-role > :nth-child(2) { grid-column: 7 / 13; }
  .cs-hero-grid { align-items: end; }
  .cs-next > .cs-next-media { grid-column: 1 / 6; }
  .cs-next > .cs-next-text { grid-column: 7 / 13; }
  .cs-split-text { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .cs-split.is-solo .cs-split-text { position: static; }
  .cs-checklist ul { display: flex; flex-wrap: nowrap; justify-content: space-between; }
  .cs-checklist li { font-size: clamp(1rem, 1.25vw, 1.15rem); }
  .cs-sec-intro > div > .cs-text:first-child, .cs-idea-top > div > :first-child,
  .cs-split-body > .cs-text:first-child { margin-top: 0; }
}
/* ---------- Sobre mí ---------- */
.about { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-photo { position: relative; max-width: 520px; }
.about-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -40px rgba(90,15,22,.55);
}
.sticker {
  position: absolute; right: -14px; top: 12%;
  width: 124px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--lime); color: var(--ink);
  font-family: var(--serif); font-style: italic; font-size: 1.28rem; line-height: 1.05;
  transform: rotate(10deg);
  box-shadow: 0 16px 30px -14px rgba(26,26,24,.5);
  animation: bob 5s var(--ease-soft) infinite alternate;
}
@keyframes bob { to { transform: rotate(-4deg) translateY(-8px); } }
.about-cap { margin-top: .9rem; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); }

.about-text > p { max-width: 38rem; margin-top: 1.2rem; color: #33332f; }
.about-text .lead { font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.4; color: var(--ink); margin-top: 1.8rem; }
.about-text .lead em { color: var(--wine); }

.method { margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1.5px solid rgba(26,26,24,.15); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.method-label { font-size: .92rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); }
.method-label em { letter-spacing: 0; text-transform: none; font-size: 1.05rem; color: #4a4a45; }
.method-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 1.2rem; }
.method-list li {
  padding: 1.1rem 1.2rem 1.2rem; border-radius: 20px; background: var(--white);
  transition: background-color .4s, color .4s, transform .5s var(--ease-out);
}
.method-list li:hover { background: var(--wine); color: var(--cream); transform: translateY(-4px); }
.method-list li:hover p { color: rgba(244,239,230,.8); }
.method-list span { font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--olive); }
.method-list li:hover span { color: var(--lime); }
.method-list strong { display: block; margin-top: .2rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.method-list p { margin-top: .25rem; font-size: .9rem; line-height: 1.4; color: #4a4a45; transition: color .4s; }

/* ---------- Servicios ---------- */
.services { display: grid; gap: clamp(1.2rem, 2vw, 1.6rem); }
.service {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--wine-2);
  box-shadow: inset 0 0 0 1px rgba(244,239,230,.08);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.service:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px rgba(174,204,63,.35), 0 40px 70px -40px rgba(0,0,0,.7); }
.service-media { aspect-ratio: 16 / 9; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease-out); }
.service:hover .service-media img { transform: scale(1.05); }
.service-body { padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; flex: 1; }
.service-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.service-num { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--lime); }
.service-ai {
  padding: .35rem .8rem; border-radius: 999px; white-space: nowrap;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--lime); box-shadow: inset 0 0 0 1.5px rgba(174,204,63,.55);
}
.service h3 {
  margin-top: 1rem; font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.9rem, 3vw, 2.8rem); letter-spacing: -.035em; line-height: .95; color: var(--cream);
}
.service-body > p { margin-top: 1rem; max-width: 32rem; color: rgba(244,239,230,.82); font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.chips li { padding: .45rem .9rem; border-radius: 999px; font-size: .85rem; background: rgba(244,239,230,.1); color: var(--cream); }

.ai-note {
  display: flex; align-items: flex-start; gap: .9rem;
  max-width: 50rem; margin: clamp(2rem, 4vw, 3rem) auto 0;
  font-size: 1rem; line-height: 1.55; color: rgba(244,239,230,.78);
}
.ai-note svg { flex: 0 0 auto; width: 26px; height: 26px; fill: var(--lime); margin-top: .1rem; }
.ai-note strong { color: var(--cream); font-weight: 700; }

.work-cta {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem 2rem;
  padding: clamp(2rem, 4.5vw, 3.4rem);
  border-radius: var(--radius); background: var(--lime); color: var(--ink);
}
.work-cta-title {
  font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; line-height: .9;
  font-size: clamp(2.4rem, 6vw, 5rem);
}
.work-cta p { margin-top: .9rem; font-size: 1.1rem; }
.work-cta p a { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color .3s; }
.work-cta p a:hover { color: var(--wine); }

/* ---------- Método ---------- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step {
  position: relative; padding: 2rem 1.8rem 2.2rem;
  background: var(--white); border-radius: var(--radius);
  transition: transform .6s var(--ease-out), background-color .4s, color .4s;
}
.step:hover { transform: translateY(-8px); background: var(--wine); color: var(--cream); }
.step:hover p { color: rgba(244,239,230,.8); }
.step:hover .step-ico { stroke: var(--lime); }
.step-num { position: absolute; top: 1.6rem; right: 1.8rem; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gray); }
.step-ico { width: 48px; height: 48px; fill: none; stroke: var(--wine); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.step h3 { margin-top: 3.2rem; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.step p { margin-top: .7rem; color: #4a4a45; transition: color .4s; }

.criterio {
  margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius); background: var(--ink); color: var(--cream);
  display: grid; gap: 1.2rem; text-align: center;
}
.criterio-label { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); }
.criterio-letters { display: flex; justify-content: center; gap: clamp(.2rem, 1.2vw, 1rem); }
.criterio-letters span {
  font-weight: 900; font-size: clamp(2.6rem, 9vw, 7rem); line-height: .9; letter-spacing: -.02em;
  transition: color .3s, transform .5s var(--ease-out); cursor: default;
}
.criterio-letters span:hover { color: var(--lime); transform: translateY(-8px); }
.criterio-text { font-size: .92rem; color: rgba(244,239,230,.65); }

/* ---------- Creo en ---------- */
.beliefs { display: grid; gap: 1.2rem; }
.belief {
  position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden;
  background: var(--wine); color: var(--cream); isolation: isolate;
  display: flex; align-items: flex-end;
  transition: transform .6s var(--ease-out);
}
.belief:hover { transform: translateY(-8px); }
.belief img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease-out); }
.belief:hover img { transform: scale(1.06); }
.belief::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(66,10,16,.1) 20%, rgba(66,10,16,.9) 100%); }
.belief-body { padding: 2rem; }
.belief h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; }
.belief p { margin-top: .7rem; color: rgba(244,239,230,.82); }
.belief-ink { background: var(--ink); align-items: center; }
.belief-ink::after { display: none; }
.belief-quote { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--cream) !important; }
.belief-quote em { color: var(--lime); }
.belief-sign { display: block; margin-top: 1.4rem; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }

/* ---------- Contacto ---------- */
.contact { background: var(--ink); color: var(--cream); isolation: isolate; padding-block: clamp(7rem, 14vw, 12rem); }
.contact-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: saturate(1.2); }
.contact-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 90% at 20% 60%, rgba(26,26,24,.4), var(--ink) 90%); }
.contact-sub { margin-top: 1.8rem; max-width: 32rem; font-size: 1.15rem; font-weight: 300; color: rgba(244,239,230,.82); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }
.learn-intro { max-width: 44rem; }
.learn-intro strong { font-weight: 600; color: var(--lime); }

.learn { display: grid; gap: clamp(1.2rem, 2vw, 1.6rem); margin-top: clamp(3rem, 6vw, 4.5rem); }
.learn-card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  border-radius: var(--radius);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.learn-card:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -40px rgba(0,0,0,.8); }
.learn-yt { background: var(--wine); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(244,239,230,.08); }
.learn-skool { background: var(--lime); color: var(--ink); }
.learn-top { display: flex; align-items: center; gap: .9rem; }
.learn-ico { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; }
.learn-yt .learn-ico { background: var(--lime); }
.learn-yt .learn-ico svg { width: 22px; fill: var(--ink); margin-left: 3px; }
.learn-skool .learn-ico { background: var(--ink); }
.learn-skool .learn-ico svg { width: 26px; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; }
.learn-kick { font-size: .9rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.learn-yt .learn-kick { color: var(--lime); }
.learn-card h3 {
  margin-top: 1.6rem; font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem); letter-spacing: -.035em; line-height: .95;
}
.learn-card > p { margin-top: 1rem; max-width: 32rem; font-size: 1.05rem; }
.learn-yt > p { color: rgba(244,239,230,.82); }
.learn-skool .chips li { background: rgba(26,26,24,.1); color: var(--ink); }
.learn-link {
  margin-top: auto; padding-top: 2rem;
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.05rem;
}
.learn-link b { display: inline-block; transition: transform .45s var(--ease-out); }
.learn-card:hover .learn-link b { transform: translateX(6px); }
/* Tarjeta aún sin enlace (Skool) */
.learn-card.is-soon { cursor: default; }
.learn-card.is-soon:hover { transform: none; box-shadow: none; }
.learn-soon {
  align-self: flex-start; padding: .55rem 1.1rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(26,26,24,.35); font-size: .95rem;
}

/* ---------- Colaboraciones ---------- */
.collab-sec { padding-top: clamp(1rem, 3vw, 2.5rem); }
.collab-arrows { display: none; gap: .7rem; }
.arrow {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px rgba(26,26,24,.25);
  transition: background-color .3s, box-shadow .3s, transform .45s var(--ease-out);
}
.arrow svg { width: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.arrow:hover { background: var(--wine); box-shadow: none; transform: scale(1.06); }
.arrow:hover svg { stroke: var(--cream); }

.collab { --v: 1.35; --gap: 1.2rem; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.collab.is-dragging { cursor: grabbing; }
.collab-track { display: flex; gap: var(--gap); will-change: transform; background: var(--cream); }
.collab-item { flex: 0 0 calc((100% - var(--gap) * (var(--v) - 1)) / var(--v)); min-width: 0; text-align: center; }
.collab-media {
  aspect-ratio: 4 / 3; display: grid; grid-template: 100% / 100%; place-items: center;
  transition: transform .4s var(--ease-out);
}
.collab-media img {
  filter: grayscale(100%);
  transition: filter .4s ease, opacity .4s ease;
  -webkit-user-drag: none; pointer-events: none;
}
.collab-item:hover .collab-media { transform: scale(1.03); }
.collab-item:hover .collab-media img { filter: grayscale(0%); }
/* Área invisible idéntica (4:3) para todos: nombres y fechas empiezan a la misma altura.
   Logos: proporción intacta; --lw ajusta cada uno para igualar el peso visual del círculo de las fotos. */
.is-logo .collab-media img {
  width: var(--lw, 60%); height: auto; max-height: 84%;
  object-fit: contain; opacity: .85;
}
.is-logo:hover .collab-media img { opacity: 1; }
/* Fotos: mismo encuadre circular, rostro centrado */
.is-photo .collab-media img { height: 84%; width: auto; max-width: none; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.collab-name { margin-top: .9rem; font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.collab-years { margin-top: .15rem; font-size: .82rem; color: var(--gray); letter-spacing: .02em; }
/* ---------- Ajustes por color de sección ---------- */
/* Sobre mí sobre vino */
.about-sec .about-text .lead { color: var(--cream); }
.about-sec .about-text .lead strong { color: var(--cream); }
.about-sec .about-text .lead em { color: var(--lime); }
.about-sec .about-text > p { color: rgba(244,239,230,.8); }
.about-sec .about-cap { color: rgba(244,239,230,.55); }
.about-sec .about-photo img { box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.about-sec .method { border-top-color: rgba(244,239,230,.18); }
.about-sec .method-label { color: var(--lime); }
.about-sec .method-label em { color: rgba(244,239,230,.7); }
.about-sec .method-list li { background: var(--wine-2); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(244,239,230,.08); }
.about-sec .method-list span { color: var(--lime); }
.about-sec .method-list p { color: rgba(244,239,230,.72); }
.about-sec .method-list li:hover { background: var(--lime); color: var(--ink); box-shadow: none; }
.about-sec .method-list li:hover span { color: var(--wine); }
.about-sec .method-list li:hover p { color: rgba(26,26,24,.75); }

/* Servicios sobre crema */
.services-sec .service { background: var(--wine); box-shadow: 0 30px 60px -36px rgba(90,15,22,.55); }
.services-sec .service:hover { box-shadow: 0 44px 70px -36px rgba(90,15,22,.65); }
.services-sec .ai-note { color: #3b3b37; }
.services-sec .ai-note strong { color: var(--ink); }
.services-sec .ai-note svg { fill: var(--wine); }

/* Aprende sobre vino */
.contact-wine { background: var(--wine); }
.contact-wine .contact-media img { opacity: .22; }
.contact-wine .contact-media::after { background: radial-gradient(80% 90% at 20% 60%, rgba(90,15,22,.35), var(--wine) 90%); }
.contact-wine .learn-yt { background: var(--cream); color: var(--ink); box-shadow: none; }
.contact-wine .learn-yt .learn-ico { background: var(--wine); }
.contact-wine .learn-yt .learn-ico svg { fill: var(--cream); }
.contact-wine .learn-yt .learn-kick { color: var(--wine); }
.contact-wine .learn-yt > p { color: #3b3b37; }
.contact-wine .learn-yt .chips li { background: rgba(90,15,22,.08); color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--white); color: var(--wine); padding-top: clamp(4rem, 7vw, 6rem); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer-logo { width: 150px; }
.footer-brand p { margin-top: 1rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.footer-col { display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.footer-col h2 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.footer-col a { position: relative; transition: color .3s; }
.footer-col a:hover { color: var(--ink); }
.footer-col p { color: var(--gray); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.6rem; border-top: 1px solid rgba(90,15,22,.15);
  font-size: .85rem;
}
.to-top:hover { color: var(--ink); }

/* ---------- Reproductor ---------- */
.player {
  width: min(1100px, 94vw); max-height: 92vh; margin: auto;
  border: 0; border-radius: 22px; padding: 0; overflow: visible;
  background: var(--ink); color: var(--cream);
}
.player::backdrop { background: rgba(26,26,24,.86); }
@supports (backdrop-filter: blur(6px)) { .player::backdrop { backdrop-filter: blur(6px); } }
.player[open] { animation: playerIn .6s var(--ease-out) both; }
@keyframes playerIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.player-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 22px 22px 0 0; overflow: hidden; }
.player.is-vertical { width: min(440px, 92vw); }
.player.is-vertical .player-frame { aspect-ratio: 9 / 16; max-height: 76vh; margin-inline: auto; }
.player-frame video, .player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-empty { height: 100%; display: grid; place-items: center; text-align: center; padding: 2rem; background: linear-gradient(160deg, var(--wine), var(--wine-2)); }
.player-empty strong { display: block; font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.03em; color: var(--lime); }
.player-empty p { margin-top: .6rem; color: rgba(244,239,230,.8); max-width: 26rem; }
.player-info { padding: 1.3rem 1.6rem 1.5rem; }
.player-info h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.player-info p { margin-top: .3rem; color: rgba(244,239,230,.72); }
.player-close {
  position: absolute; top: -18px; right: -18px; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--lime); color: var(--ink); font-size: 1.8rem; line-height: 1;
  transition: transform .45s var(--ease-out);
}
.player-close:hover { transform: rotate(90deg); }

/* =============================================================
   10. Reveal (solo con JS activo)
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   11. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .collab { --v: 2.2; }
}
@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .collab { --v: 3; --gap: 1.5rem; }
  .collab-arrows { display: flex; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .beliefs { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .reel-badge { display: grid; }
}
@media (min-width: 960px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-burger { display: none; }
  .nav-logo { width: 84px; }
  .about { grid-template-columns: 5fr 6fr; }
  .sec-head-split { grid-template-columns: 1fr auto; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .services, .learn { grid-template-columns: 1fr 1fr; }
  .collab { --v: 4; --gap: 1.8rem; }
  .beliefs { grid-template-columns: 1fr 1fr 1fr; }
  .belief { min-height: 520px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; }
  .footer-brand { grid-column: auto; }
}
@media (min-width: 1280px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { min-height: 360px; }
}
@media (max-width: 539px) {
  .sticker { width: 100px; font-size: 1.05rem; right: -6px; }
  .hero-coords { display: none; }
  .hero-media img { object-position: 76% 40%; }
  .hero-title .line { white-space: normal; }
  .hero-shade { background: linear-gradient(0deg, rgba(30,4,8,.92) 0%, rgba(30,4,8,.6) 45%, rgba(30,4,8,.1) 75%); }
  .wave-top::before { height: 28px; top: -27px; }
}

/* =============================================================
   12. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reel-badge > svg { animation: none; }
  .hero-media { will-change: auto; }
}
