/* =============================================================
   Hugo Hernández — marca personal
   1. Tokens · 2. Base · 3. Utilidades · 4. Tipografía
   5. Componentes · 6. Secciones · 7. Efectos · 8. Responsive
   9. Movimiento reducido · 10. Páginas legales
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --bg: #F6F4EF;          /* blanco roto */
  --bg-2: #ECE8E0;        /* crema */
  --ink: #121110;         /* negro cálido */
  --dark: #1B1814;        /* fondo oscuro */
  --muted: #78716A;
  --line: rgba(18, 17, 16, .12);
  --line-light: rgba(246, 244, 239, .18);
  --accent: #A88B62;      /* champán / arena */
  --light: #F6F4EF;

  --serif: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 3.2vw, 2.5rem);
  --max: 1320px;
  --section: clamp(5.5rem, 12vw, 10rem);
  --radius: clamp(14px, 1.6vw, 24px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -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; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: var(--header-h); }

/* 3. Utilidades ------------------------------------------------ */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; padding-inline: var(--gutter); }
.center, .center-head { text-align: center; }
.center-head { max-width: 760px; margin: 0 auto clamp(3rem, 6vw, 4.5rem); }
.center-head .lead { margin-inline: auto; }
.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: 10000; padding: .6rem 1rem; background: var(--ink); color: var(--bg); border-radius: 100px; }
.skip-link:focus { top: 1rem; }

/* 4. Tipografía ------------------------------------------------ */
.eyebrow, .tag, .small-caps {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--muted);
}
.eyebrow.center { display: block; }
.eyebrow-light { color: rgba(246,244,239,.72); }
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1; letter-spacing: -.01em;
  margin-top: 1.1rem;
}
.h2-xl { font-size: clamp(3.2rem, 9vw, 8.2rem); line-height: .92; margin-top: 0; }
.h2 em, .hero-title em, .footer-big em, .band-text em { font-style: italic; }
.lead { font-size: clamp(.98rem, 1.2vw, 1.08rem); color: var(--muted); max-width: 32rem; margin-top: 1.4rem; }
.small-caps { line-height: 1.75; max-width: 22rem; }

.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: inline-block; will-change: transform; }

/* 5. Componentes ----------------------------------------------- */
/* Botones píldora */
.pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  height: 44px; padding: 0 1.25rem; border-radius: 100px;
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease-out), background .45s var(--ease-out), transform .45s var(--ease-out);
}
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--accent); transform: translateY(101%); transition: transform .55s var(--ease-out);
}
.pill-dark { background: var(--ink); color: var(--light); }
.pill-light { background: var(--light); color: var(--ink); }
.pill-full { width: 100%; height: 54px; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transition: background .3s; }
@media (hover: hover) {
  .pill:hover::before { transform: translateY(0); }
  .pill:hover { color: var(--ink); }
  .pill:hover .pill-dot { background: var(--ink); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .45rem 0; position: relative;
}
.link-arrow::after { content: "→"; font-size: .95rem; letter-spacing: 0; transition: transform .5s var(--ease-out); }
.link-arrow::before {
  content: ""; position: absolute; left: 0; right: 1.5rem; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out);
}
@media (hover: hover) {
  .link-arrow:hover::after { transform: translateX(5px); }
  .link-arrow:hover::before { transform: scaleX(1); transform-origin: left; }
}

.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.05rem; transition: background .35s, color .35s, border-color .35s;
}
@media (hover: hover) { .round-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); } }

/* Huecos de relleno (mientras no hay fotos/reels) */
.frame, .placeholder { position: relative; overflow: hidden; }
.frame > img, .frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.placeholder {
  display: grid; place-items: center;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(90% 70% at 85% 95%, rgba(168,139,98,.22), transparent 60%),
    linear-gradient(160deg, #EEEAE2, #E0D9CC);
}
.placeholder-dark {
  background:
    radial-gradient(70% 60% at 50% 35%, rgba(168,139,98,.28), transparent 70%),
    radial-gradient(60% 50% at 15% 90%, rgba(255,255,255,.06), transparent 70%),
    linear-gradient(170deg, #2C261F, #12100D);
}
.placeholder-warm {
  background:
    radial-gradient(60% 70% at 70% 30%, rgba(255,240,215,.22), transparent 70%),
    linear-gradient(165deg, #6E5E4D, #3A3027);
}
.ph-label { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 1.8vw, 1.4rem); color: rgba(18,17,16,.45); text-align: center; padding: 1rem; }
.placeholder-dark .ph-label, .placeholder-warm .ph-label { color: rgba(246,244,239,.38); }

/* Cruces decorativas */
.crosses {
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem var(--gutter) 0; font-size: .85rem; color: var(--muted); line-height: 1;
}
.crosses-dark { padding-inline: 0; }
.crosses-label { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }

/* Cabecera */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 0 var(--gutter);
  transition: background .5s var(--ease-soft), transform .6s var(--ease-out), border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(246, 244, 239, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-left { justify-self: start; }
.header-right { justify-self: end; display: flex; align-items: center; gap: .9rem; }
.wordmark { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: .01em; white-space: nowrap; }
.menu-toggle { padding: 0 1.05rem 0 .95rem; }
.menu-icon { position: relative; width: 14px; height: 10px; }
.menu-icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.menu-icon i:first-child { top: 2px; }
.menu-icon i:last-child { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-icon i:first-child { top: 4.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:last-child { top: 4.5px; transform: rotate(-45deg); }
.menu-word { display: none; }
.header-cta { display: none; }
.lang { display: flex; align-items: center; background: var(--bg-2); border-radius: 100px; padding: 3px; }
.lang-btn { height: 38px; min-width: 38px; padding: 0 .55rem; border-radius: 100px; font-size: .68rem; font-weight: 600; letter-spacing: .1em; color: var(--muted); transition: background .3s, color .3s; }
.lang-btn.is-active { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* Menú a pantalla completa */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; padding: calc(var(--header-h) + 2rem) var(--gutter) 1.6rem;
}
.menu nav { margin: auto 0; }
.menu ul { display: grid; gap: .2rem; }
.menu ul a { display: flex; align-items: baseline; gap: 1rem; font-family: var(--serif); font-size: clamp(2.4rem, 8vw, 5rem); line-height: 1.08; transition: color .3s, padding .5s var(--ease-out); }
.menu-num { font-family: var(--sans); font-size: .7rem; letter-spacing: .1em; color: var(--muted); }
@media (hover: hover) { .menu ul a:hover { color: var(--accent); padding-left: .6rem; } }
.menu-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.menu-foot div { display: flex; gap: 1.4rem; }
body.menu-open { overflow: hidden; }

/* Formulario */
.form { display: grid; gap: 1.5rem; }
.field-row { display: grid; gap: 1.5rem; }
.field { display: grid; gap: .5rem; position: relative; border: 0; }
.field > label, .field legend { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: .7rem 0; outline: none; transition: border-color .4s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input::placeholder, .field textarea::placeholder { color: rgba(18,17,16,.32); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { padding-right: 1.5rem; cursor: pointer; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.checks legend { width: 100%; margin-bottom: .8rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 42px; padding: 0 1.1rem;
  border: 1px solid var(--line); border-radius: 100px; font-size: .86rem; font-weight: 500;
  text-transform: none; letter-spacing: 0; color: var(--ink);
  transition: background .35s, color .35s, border-color .35s;
}
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) { .chip:hover span { border-color: var(--ink); } }
.consent { display: flex; gap: .8rem; align-items: flex-start; font-size: .9rem; color: #3A3530; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--ink); flex-shrink: 0; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.field-error, .form-error { font-size: .8rem; color: #9B3B2B; }
.field.has-error input, .field.has-error textarea { border-color: #9B3B2B; }
.field.has-error .chip span { border-color: rgba(155,59,43,.5); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-spinner { display: none; width: 16px; height: 16px; border: 1px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.is-sending .btn-spinner { display: inline-block; }
.is-sending .pill-full { pointer-events: none; opacity: .8; }

.form-success { text-align: center; padding: 3rem 1rem; outline: none; }
.form-success h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 1.6rem; line-height: 1.1; }
.form-success p { color: var(--muted); margin-top: .8rem; }
.check { width: 76px; height: 76px; margin-inline: auto; fill: none; stroke: var(--accent); stroke-width: 1.2; }
.check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 1s var(--ease-out) forwards; }
.check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .6s .7s var(--ease-out) forwards; }

/* 6. Secciones ------------------------------------------------- */
.section { padding-block: var(--section); }

/* Inicio */
.hero { padding: var(--header-h) var(--gutter) 0; }
.hero-frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  height: calc(100svh - var(--header-h) - 2.6rem); min-height: 540px; max-height: 1100px;
  background: var(--dark); color: var(--light);
}
.hero-media, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media { align-items: end; padding-bottom: 5.5rem; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.45)); pointer-events: none; }
.hero-content {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem var(--gutter);
}
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 12vw, 10.5rem); line-height: .95; letter-spacing: -.02em; margin-top: 1.1rem; }
.hero-tagline { max-width: 30rem; margin-top: 1.4rem; font-size: clamp(.95rem, 1.3vw, 1.08rem); color: rgba(246,244,239,.82); }
.hero-cta { margin-top: 2rem; }
.hero-formats { position: absolute; left: 1.4rem; bottom: 1.3rem; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(246,244,239,.62); }

/* Frase que se enciende */
.statement { padding-block: clamp(6rem, 14vw, 11rem) clamp(4.5rem, 9vw, 7rem); }
.statement-text {
  font-family: var(--serif); font-size: clamp(1.9rem, 4.4vw, 3.9rem); line-height: 1.12; letter-spacing: -.01em;
  text-align: center; max-width: 1100px; margin: 1.8rem auto 0; text-wrap: balance;
}
.statement-text u { text-decoration-thickness: 1px; text-underline-offset: .12em; }
.statement-text .ico { display: inline-block; font-family: var(--sans); font-size: .42em; vertical-align: .55em; color: var(--accent); margin-inline: .08em; }
.statement-text .w { display: inline; transition: opacity .2s linear; }
.facts { display: grid; gap: 1.4rem; max-width: 900px; margin: clamp(3.5rem, 7vw, 5rem) auto 0; padding-top: 1.8rem; border-top: 1px solid var(--line); text-align: center; }
.facts dt { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-family: var(--serif); font-size: 1.45rem; margin-top: .2rem; }

/* Banda de foto */
.band { position: relative; height: clamp(440px, 88vh, 900px); overflow: hidden; display: grid; place-items: center; }
.band-media { position: absolute; inset: -12% 0; }
.band-text { position: relative; font-family: var(--serif); font-size: clamp(2.2rem, 5.5vw, 4.8rem); line-height: 1; color: var(--light); text-align: center; padding: 0 var(--gutter); }

/* Showreel */
.showreel { padding-block: var(--section) 0; }
.showreel-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 88vh;
  border-radius: var(--radius); overflow: hidden; color: var(--light); text-align: left;
}
.showreel-media { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.showreel-media.placeholder { align-items: end; padding-bottom: 2rem; }
.showreel-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showreel-title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(.6rem, 2vw, 1.6rem); pointer-events: none; }
.sr-word { font-family: var(--serif); font-size: clamp(3.4rem, 13vw, 11.5rem); line-height: 1; letter-spacing: -.02em; }
.sr-right { font-style: italic; }
.sr-btn {
  display: grid; place-items: center; flex-shrink: 0;
  width: clamp(64px, 9vw, 128px); height: clamp(40px, 5.4vw, 76px); border-radius: 100px;
  background: var(--light); color: var(--ink); transition: transform .6s var(--ease-out), background .4s;
}
.sr-btn svg { width: 32%; fill: currentColor; }
@media (hover: hover) {
  .showreel-frame:hover .showreel-media { transform: scale(1.03); }
  .showreel-frame:hover .sr-btn { transform: scale(1.12); background: var(--accent); }
}

/* Servicios */
.rail-wrap { position: relative; }
.rail {
  display: flex; gap: clamp(.9rem, 1.6vw, 1.4rem); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter) .5rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.rail.is-dragging * { pointer-events: none; }
.svc { flex: 0 0 min(80vw, 400px); scroll-snap-align: start; display: flex; flex-direction: column; }
.svc-media { aspect-ratio: 4 / 5; border-radius: calc(var(--radius) * .7); }
.svc .tag { margin-top: 1.1rem; }
.svc h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 1.05; margin-top: .35rem; }
.svc p:not(.tag) { color: #4A443D; margin-top: .6rem; font-size: .95rem; }
.svc .link-arrow { margin-top: auto; padding-top: 1.1rem; align-self: flex-start; }
.rail-nav { display: flex; justify-content: flex-end; gap: .6rem; padding: 1.6rem var(--gutter) 0; }

/* Portfolio */
.work-head { display: grid; gap: 1.6rem; align-items: end; margin-bottom: clamp(2.6rem, 6vw, 4.5rem); }
.work-grid { display: grid; gap: 2.4rem clamp(1rem, 2vw, 1.6rem); }
.work-item { position: relative; }
.work-item .frame { aspect-ratio: 4 / 5; border-radius: calc(var(--radius) * .8); transition: transform 1s var(--ease-out), border-radius 1s var(--ease-out); }
.work-open { position: absolute; inset: 0; z-index: 2; width: 100%; }
.work-item figcaption { display: grid; gap: .35rem; margin-top: 1rem; }
.work-name { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.05; }
.work-item .frame video { opacity: 0; transition: opacity .6s; }
.work-item.is-playing .frame video { opacity: 1; }
@media (hover: hover) { .work-item:hover .frame { transform: scale(.98); border-radius: calc(var(--radius) * 1.4); } }

/* Marcas */
.brands { padding-block: clamp(4.5rem, 9vw, 7rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brand-list { display: grid; gap: 2.2rem; margin-top: 2.6rem; text-align: center; }
.brand-list li { display: grid; gap: .35rem; }
.brand-word { font-family: var(--serif); font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.05; transition: color .5s; }
.brand-list small { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (hover: hover) { .brand-list li:hover .brand-word { color: var(--accent); } }

/* Proceso */
.steps { display: grid; border-top: 1px solid var(--line); }
.steps li { padding: 2rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .55rem; }
.step-num { font-size: .68rem; font-weight: 600; letter-spacing: .14em; color: var(--accent); }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.steps p { color: #4A443D; max-width: 22rem; font-size: .95rem; }

/* Contacto */
.contact-card { background: var(--dark); color: var(--light); border-radius: var(--radius); padding: clamp(2rem, 5vw, 5rem) clamp(1.2rem, 5vw, 5rem); }
.contact .lead { color: rgba(246,244,239,.66); }
.contact-grid { display: grid; gap: 3rem; max-width: var(--max); margin-inline: auto; }
.contact-direct { display: grid; gap: .5rem; margin-top: 2.2rem; font-size: .95rem; }
.contact-direct a { opacity: .8; transition: opacity .3s; justify-self: start; border-bottom: 1px solid transparent; }
@media (hover: hover) { .contact-direct a:hover { opacity: 1; border-color: currentColor; } }
.form-wrap { background: var(--bg); color: var(--ink); padding: clamp(1.4rem, 3.5vw, 3rem); border-radius: calc(var(--radius) * .8); }

/* FAQ */
.faq-grid { display: grid; gap: 2.6rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
  font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.25;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .faq-list summary::before {
  content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 1px; background: var(--ink);
  transition: transform .5s var(--ease-out);
}
.faq-list summary::before { transform: rotate(90deg); }
.faq-list details[open] summary::before { transform: rotate(0deg); }
.faq-list details p { color: #4A443D; padding-bottom: 1.5rem; max-width: 40rem; }

/* Pie */
.site-footer { background: var(--bg-2); padding: var(--section) 0 2rem; }
.footer-big { display: block; font-family: var(--serif); font-size: clamp(2.8rem, 9vw, 8rem); line-height: .95; letter-spacing: -.02em; }
.footer-cols { display: grid; gap: 2rem; margin-top: 4.5rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.footer-cols a { display: block; width: fit-content; padding: .15rem 0; }
@media (hover: hover) { .footer-cols a:hover { color: var(--accent); } }
.footer-label { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 4rem; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Visor */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%;
  background: rgba(14,12,11,.96); color: var(--light);
}
.lightbox::backdrop { background: rgba(14,12,11,.6); }
.lightbox[open] { display: grid; place-items: center; animation: fade .4s var(--ease-out); }
.lightbox-body { width: min(92vw, 1200px); height: 88vh; display: grid; place-items: center; }
.lightbox-body video, .lightbox-body img { max-width: 100%; max-height: 88vh; width: auto; height: auto; border-radius: 12px; }
.lightbox-body .placeholder { height: min(80vh, 720px); aspect-ratio: 9/16; border-radius: 16px; }
.lightbox-body .placeholder.is-photo { aspect-ratio: 4/5; }
.lightbox-body .placeholder.is-wide { aspect-ratio: 16/9; height: auto; width: min(92vw, 1100px); }
.lightbox-close { position: absolute; top: 1rem; right: 1.2rem; z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: rgba(246,244,239,.1); font-size: 1.6rem; font-weight: 300; color: var(--light); }

/* Entrada al cargar */
.loader { display: none; }
html.anim .loader {
  position: fixed; inset: 0; z-index: 9000; background: var(--bg);
  display: grid; place-items: center; align-content: center; gap: 1.6rem;
  animation: loaderOut .8s 2.4s var(--ease-out) forwards; /* red de seguridad */
}
.loader-mark { display: flex; font-family: var(--serif); font-size: clamp(3rem, 8vw, 5rem); line-height: 1; overflow: hidden; }
.loader-mark span { display: inline-block; animation: rise .9s var(--ease-out) both; }
.loader-mark span:last-child { font-style: italic; color: var(--accent); animation-delay: .12s; }
.loader-bar { width: 120px; height: 1px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; animation: grow 1.1s .1s var(--ease-soft) both; }
html.anim .loader.is-done { animation: loaderOut .7s var(--ease-out) forwards; }
html.rm .loader { display: none !important; }

/* Cursor */
.cursor { display: none; }
html.has-cursor .cursor {
  display: grid; place-items: center;
  position: fixed; top: 0; left: 0; z-index: 9500; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--ink);
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background .3s, opacity .3s;
}
html.has-cursor .cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(168,139,98,.35); }
html.has-cursor .cursor.is-view { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--accent); }
.cursor-label { color: var(--ink); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: 0; transition: opacity .3s; }
.cursor.is-view .cursor-label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label, html.has-cursor summary, html.has-cursor .rail { cursor: none; }

/* 7. Efectos --------------------------------------------------- */
/* Estados iniciales solo si las animaciones están activas */
html.anim:not(.rm) .ln > span { transform: translateY(105%); }
html.anim [data-lines].is-in .ln > span { transform: none; }
html.anim [data-reveal] { opacity: 0; }
html.anim:not(.rm) [data-reveal] { transform: translateY(28px); }
html.anim:not(.rm) [data-words] .w { opacity: .14; }
html.anim .hero-content > *, html.anim .site-header, html.anim .hero-formats { opacity: 0; }
html.anim .hero-title { opacity: 1; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* 8. Responsive ------------------------------------------------ */
@media (min-width: 540px) {
  .menu-word { display: inline; }
  .field-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .header-cta { display: inline-flex; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-grid .work-item:nth-child(even) { margin-top: 18%; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 0 2.4rem; border-top: 0; }
  .steps li { border-top: 1px solid var(--line); border-bottom: 0; }
  .brand-list { grid-template-columns: repeat(3, 1fr); align-items: start; gap: 2rem; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .showreel-frame { aspect-ratio: 16 / 9; }
}
@media (min-width: 960px) {
  :root { --header-h: 80px; }
  .work-head { grid-template-columns: 1fr auto; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 0 2rem; }
  .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: start; }
  .contact-intro { position: sticky; top: 7rem; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 6rem; }
  .svc { flex-basis: 30vw; max-width: 440px; }
  .rail { padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  .rail-nav { max-width: var(--max); margin-inline: auto; }
}
@media (max-width: 539px) {
  .wordmark { font-size: 1.15rem; }
  .lang-btn { min-width: 34px; height: 34px; }
  .menu-toggle { height: 40px; padding: 0 .85rem; }
}

/* 9. Movimiento reducido: solo se quitan efectos intrusivos ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 10. Páginas legales ------------------------------------------- */
.legal { padding: 8rem 0 6rem; }
.legal .container { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1; margin: 1.2rem 0 2.5rem; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 2.6rem 0 .8rem; }
.legal p, .legal li { color: #3A3530; margin-bottom: .9rem; }
.legal ul { list-style: disc; padding-left: 1.2rem; }
.legal mark { background: #EDE0C8; padding: 0 .25em; }
.legal-back { position: fixed; top: 1.2rem; left: var(--gutter); z-index: 10; }

/* Ajustes */
.field > label.consent { font-size: .9rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: #3A3530; }
.center-head { max-width: 900px; }

/* Tipografía Inter Tight: titulares sin remates, compactos */
.h2, .hero-title, .statement-text, .band-text, .sr-word, .svc h3, .work-name, .brand-word,
.steps h3, .faq-list summary, .footer-big, .menu ul a, .facts dd, .form-success h3,
.loader-mark, .wordmark, .legal h1, .legal h2 { font-weight: 500; letter-spacing: -.035em; }
.hero-title, .h2-xl, .sr-word, .footer-big { letter-spacing: -.05em; }
.statement-text { font-weight: 400; letter-spacing: -.03em; line-height: 1.15; }
.faq-list summary, .facts dd, .steps h3, .svc h3 { letter-spacing: -.02em; }
.wordmark { font-size: clamp(1rem, 1.5vw, 1.2rem); letter-spacing: -.02em; }
.h2 em, .hero-title em, .footer-big em, .band-text em, .brand-word em, .sr-right, .loader-mark span:last-child { font-style: normal; }
.h2 em, .footer-big em { color: var(--accent); }
.hero-title { font-size: clamp(3rem, 10.5vw, 9.5rem); }
.ph-label { font-style: normal; font-size: .9rem; letter-spacing: .02em; }
.wordmark, .sr-word { font-weight: 500; }

/* Servicios con desplazamiento lateral al bajar (fijado) */
.rail-progress { display: none; }
.services.is-pinned { padding-bottom: 0; }
.services.is-pinned .rail-wrap { overflow: hidden; padding-block: 1.5rem 2.5rem; }
.services.is-pinned .rail { overflow: visible; width: max-content; scroll-snap-type: none; padding-bottom: 0; }
.services.is-pinned .svc { flex-basis: min(72vw, 380px); }
.services.is-pinned .rail-nav { display: none; }
.services.is-pinned .rail-progress {
  display: block; height: 1px; background: var(--line); margin: 2rem var(--gutter) 0; overflow: hidden;
}
.services.is-pinned .rail-progress i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
@media (min-width: 960px) {
  .services.is-pinned .svc { flex-basis: min(30vw, 420px); }
  .services.is-pinned .rail-progress { max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: auto; }
}
@media (max-width: 719px) {
  .services.is-pinned .svc-media { aspect-ratio: 1 / 1; }
}
.services.is-pinned + .work { padding-top: calc(var(--section) * .8); }

/* Vídeo de portada: nítido en el centro, desenfocado de fondo (ordenador) */
.hero-media { background: var(--dark); }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video-bg { display: none; }
@media (min-width: 960px) {
  .hero-video-bg { display: block; filter: blur(38px) brightness(.62) saturate(1.1); transform: scale(1.25); }
  .hero-media .hero-video-main { left: 50%; width: auto; aspect-ratio: 9 / 16; transform: translateX(-50%); }
  .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.42)); }
}
.band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.38)); pointer-events: none; }
.band-text { z-index: 1; }
.showreel-media { background: var(--dark); }
.showreel-media .sr-video-bg { filter: blur(36px) brightness(.55); transform: scale(1.25); }
.showreel-media .sr-video-main { left: 50%; width: auto; aspect-ratio: 9 / 16; transform: translateX(-50%); filter: brightness(.82); }
@media (max-width: 719px) { .showreel-media .sr-video-bg { display: none; } .showreel-media .sr-video-main { left: 0; width: 100%; transform: none; } }
/* Más contraste para leer el texto sobre el vídeo */
.hero-shade { background: radial-gradient(70% 55% at 50% 50%, rgba(0,0,0,.38), rgba(0,0,0,.12) 70%), linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.5)); }
.hero-content { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-cta { text-shadow: none; }
@media (min-width: 960px) { .hero-shade { background: radial-gradient(60% 50% at 50% 50%, rgba(0,0,0,.32), transparent 75%), linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.42)); } }
.services.is-pinned + .brands { margin-top: clamp(3rem, 6vw, 5rem); }
.hero + .band { margin-top: clamp(4rem, 8vw, 7rem); }

/* Portada en ordenador: tres vídeos verticales uno al lado del otro */
.hero-row { position: absolute; inset: 0; }
.hero-side { display: none; }
@media (min-width: 960px) {
  .hero-row { display: flex; justify-content: center; gap: 8px; }
  .hero-media .hero-row video {
    position: relative; inset: auto; left: auto; transform: none;
    flex: 0 0 auto; height: 100%; width: auto; aspect-ratio: 9 / 16; object-fit: cover;
  }
  .hero-media .hero-row .hero-side { display: block; filter: brightness(.72) saturate(.95); }
}

/* Portada: vídeo horizontal en ordenador, vertical en móvil */
.hero-media .hero-video-wide { display: none; }
.hero-media .hero-video-main { left: 0; width: 100%; transform: none; aspect-ratio: auto; }
@media (min-width: 960px) {
  .hero-media .hero-video-main { display: none; }
  .hero-media .hero-video-wide { display: block; }
  .hero-media { background: #2a2622 url("assets/img/inicio-ordenador.jpg") center / cover no-repeat; }
}
@media (min-width: 960px) {
  .hero-shade { background: radial-gradient(55% 45% at 50% 50%, rgba(0,0,0,.42), rgba(0,0,0,.12) 80%), linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.45)); }
}

/* Sección UGC */
.ugc { background: var(--bg-2); }
.ugc-points { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; }
.ugc-points li { padding: 2rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .55rem; }
.ugc-num { font-size: .68rem; font-weight: 600; letter-spacing: .14em; color: var(--accent); }
.ugc-points h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; }
.ugc-points p { color: #4A443D; max-width: 26rem; font-size: .95rem; }
.ugc-cta { display: flex; justify-content: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 720px) {
  .ugc-points { grid-template-columns: repeat(3, 1fr); gap: 0 2.4rem; border-top: 0; }
  .ugc-points li { border-top: 1px solid var(--line); border-bottom: 0; }
}

/* Fotos y vídeos dentro de las tarjetas de servicios */
.svc-media { position: relative; overflow: hidden; background: var(--bg-2); }
.svc-media img, .svc-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.svc-media img[src*="story-"] { object-position: 50% 38%; }
@media (hover: hover) { .svc:hover .svc-media img, .svc:hover .svc-media video { transform: scale(1.04); } }

/* Packs: collage de los tres formatos juntos */
.svc-collage { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; background: transparent; }
.svc-collage img { position: relative; inset: auto; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.svc-collage img:first-child { grid-row: 1 / 3; }
.svc-collage img:last-child { object-position: 50% 30%; }
.svc-media img[src*="pack-foto"] { object-position: 50% 55%; }

/* Packs: collage con la foto del coco en grande y los otros 3 formatos al lado */
.svc-collage-4 { grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(3, 1fr); }
.svc-collage-4 img:first-child { grid-row: 1 / 4; object-position: 50% 55%; }
.svc-collage-4 img:last-child { object-position: 50% 32%; }
.svc-collage-4 { grid-template-rows: repeat(3, minmax(0, 1fr)); grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.svc-collage-4 img { min-height: 0; min-width: 0; }
.svc-collage-4 img:first-child { object-position: 55% 72%; }

/* Entrada al cargar: nombre completo */
.loader-mark { gap: .28em; font-size: clamp(2.2rem, 7vw, 4.6rem); letter-spacing: -.04em; padding-bottom: .08em; }
.svc-media video[data-src*="story-"] { object-position: 50% 35%; }

/* Fila de servicios pegada mientras se desplaza (más estable en móviles que fijarla) */
.rail-outer { position: relative; }
.services.is-pinned .rail-wrap { position: sticky; z-index: 1; }
