/* ============================================================
   Producciones La Rinconada — rediseño 2026
   Quicksand + Cormorant Garamond · acento #db443c
   ============================================================ */

:root {
  --bg: #faf9f7;
  --bg-alt: #f1efeb;
  --ink: #161616;
  --ink-soft: #555;
  --muted: #8a8a8a;
  --accent: #db443c;
  --dark: #111111;
  --line: rgba(0, 0, 0, .1);
  --line-light: rgba(255, 255, 255, .14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Quicksand", system-ui, sans-serif;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --pad: clamp(1.25rem, 5vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
::selection { background: var(--accent); color: #fff; }

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

@media (pointer: fine) {
  ::-webkit-scrollbar { width: 11px; }
  ::-webkit-scrollbar-track { background: var(--bg-alt); }
  ::-webkit-scrollbar-thumb { background: #c9c4bb; border-radius: 8px; border: 2px solid var(--bg-alt); }
  ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
}

/* fallback sin JS/CDN: el menú abre con CSS puro */
html:not(.js) .overlay { transition: clip-path .6s var(--ease), visibility .6s; }
html:not(.js) body.menu-open .overlay,
html:not(.js).menu-open .overlay { clip-path: inset(0 0 0 0); visibility: visible; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 1001;
  background: var(--accent); color: #fff; padding: .8rem 1.4rem; border-radius: 4px;
  font-size: .75rem; font-weight: 700; letter-spacing: .15em; transition: top .25s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: none; }
.preloader__panel { position: absolute; top: 0; height: 100%; width: 50.5%; background: var(--dark); }
.preloader__panel--l { left: 0; }
.preloader__panel--r { right: 0; }
.preloader__center { position: relative; z-index: 2; text-align: center; color: #fff; }
.preloader__logo { width: clamp(70px, 10vw, 118px); height: auto; margin: 0 auto 1.2rem; }
.preloader__name { font-size: .72rem; font-weight: 600; letter-spacing: .55em; text-indent: .55em; }
.preloader__name span { color: var(--accent); }
.preloader__count {
  position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 2.2rem);
  font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: rgba(255,255,255,.55);
}
.preloader.is-done { display: none; }

/* ---------- Progress / cursor ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 900;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
}

/* grano de película */
.grain {
  position: fixed; inset: -100px; z-index: 870; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-30px, 18px); }
  40% { transform: translate(22px, -26px); }
  60% { transform: translate(-18px, -32px); }
  80% { transform: translate(28px, 24px); }
}
.cursor, .cursor-dot { display: none; }
@media (pointer: fine) {
  .cursor {
    display: grid; place-items: center; position: fixed; z-index: 950; pointer-events: none;
    width: 44px; height: 44px; border: 1px solid rgba(219, 68, 60, .8); border-radius: 50%;
    top: -22px; left: -22px;
    transition: width .35s var(--ease), height .35s var(--ease), background-color .35s, border-color .35s, opacity .3s;
  }
  .cursor-dot {
    display: block; position: fixed; z-index: 951; pointer-events: none;
    width: 5px; height: 5px; border-radius: 50%; background: var(--accent); top: -2.5px; left: -2.5px;
  }
  .cursor__label {
    font-size: .58rem; font-weight: 700; letter-spacing: .2em; text-indent: .2em;
    color: #fff; opacity: 0; transition: opacity .25s;
  }
  .cursor.is-link { width: 70px; height: 70px; background: rgba(219, 68, 60, .12); }
  .cursor.is-view { width: 86px; height: 86px; background: rgba(219, 68, 60, .92); border-color: transparent; }
  .cursor.is-view .cursor__label { opacity: 1; }
  .cursor.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background .45s var(--ease), box-shadow .45s, padding .45s var(--ease), transform .5s var(--ease);
}
.header.is-hidden { transform: translateY(-110%); }
.header__brand { display: flex; align-items: center; gap: .8rem; position: relative; z-index: 2; }
.header__logo { width: 44px; height: auto; transition: opacity .4s; }
.header__logo--dark { position: absolute; opacity: 0; }
.header__name {
  font-size: .6rem; font-weight: 700; letter-spacing: .42em; line-height: 1.7; color: #fff;
  transition: color .4s;
}
.header__name em { font-style: normal; color: var(--accent); }
.header__nav { display: flex; gap: 2.4rem; }
.header__nav a {
  position: relative; font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: #fff; padding: .3rem 0; transition: color .4s;
}
.header__nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .45s var(--ease);
}
.header__nav a:hover::after, .header__nav a.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }
.header__nav a.is-active { color: var(--accent); }

.header.is-solid { background: rgba(250, 249, 247, .82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding-block: .7rem; }
.header.is-solid .header__logo--dark { opacity: 1; }
.header.is-solid .header__logo--light { opacity: 0; }
.header.is-solid .header__name { color: var(--ink); }
.header.is-solid .header__nav a { color: var(--ink); }
.header.is-solid .header__nav a.is-active { color: var(--accent); }

body.menu-open .header {
  background: transparent; box-shadow: none; backdrop-filter: none; transform: none !important;
}
body.menu-open .header__logo--dark { opacity: 0 !important; }
body.menu-open .header__logo--light { opacity: 1 !important; }
body.menu-open .header__name { color: #fff !important; }
body.menu-open .header__nav { visibility: hidden; }

/* burger */
.burger { display: none; position: relative; z-index: 920; width: 42px; height: 42px; }
.burger span {
  position: absolute; left: 8px; right: 8px; height: 2px; background: #fff;
  transition: transform .4s var(--ease), top .4s var(--ease), background .4s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 25px; }
.header.is-solid .burger span { background: var(--ink); }
body.menu-open .burger span { background: #fff; }
body.menu-open .burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- Overlay menu ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 790; background: var(--dark); color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 3rem;
  padding: 6rem var(--pad) 3rem;
  clip-path: inset(0 0 100% 0); visibility: hidden;
}
.overlay__nav { display: flex; flex-direction: column; gap: .4rem; }
.overlay__nav a {
  display: flex; align-items: baseline; gap: 1.2rem;
  font-size: clamp(2rem, 7vw, 3.6rem); font-weight: 300; letter-spacing: .14em; text-transform: uppercase;
  padding: .35rem 0; transition: color .3s, letter-spacing .5s var(--ease);
}
.overlay__nav a small { font-size: .8rem; color: var(--accent); letter-spacing: .2em; }
.overlay__nav a:hover { color: var(--accent); letter-spacing: .2em; }
.overlay__meta { display: flex; flex-wrap: wrap; gap: 2.5rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.overlay__meta a:hover { color: var(--accent); }
.overlay__social { display: flex; gap: 1.5rem; }
.overlay__social a { letter-spacing: .15em; text-transform: uppercase; font-size: .75rem; font-weight: 600; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; position: relative; overflow: hidden;
  font-size: .72rem; font-weight: 700; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase;
  padding: 1.05rem 2.2rem; border: 1.5px solid transparent; border-radius: 999px;
  transition: color .4s var(--ease), border-color .4s, background-color .4s;
}
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: #c2362f; }
.btn--ghost { border-color: rgba(255,255,255,.65); color: #fff; }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent); }
.btn--full { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 560px; overflow: clip;
  display: grid; place-items: center;
  background: var(--dark); /* nunca blanco mientras cargan las fotos */
}
.hero__slides { position: absolute; inset: -34px; will-change: transform; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transform: scale(1.12);
  will-change: transform, opacity, clip-path;
}
.hero__slide.is-active { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.25) 40%, rgba(10,10,10,.62) 100%);
}
.hero__content { position: relative; z-index: 3; text-align: center; color: #fff; padding: 0 var(--pad); max-width: 1100px; }
.hero__eyebrow {
  font-size: .68rem; font-weight: 600; letter-spacing: .5em; text-indent: .5em; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin-bottom: 2rem;
}
.hero__title { font-weight: 300; line-height: 1.04; }
.hero__line { display: block; }
.hero__line--caps {
  font-size: clamp(1.7rem, 7.2vw, 5.6rem); letter-spacing: .2em; text-indent: .2em; font-weight: 400;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .hero__line--caps { letter-spacing: .12em; text-indent: .12em; }
}
.hero__line--caps .ch { display: inline-block; will-change: transform, opacity; }
.hero__line--serif {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.4rem, 9.5vw, 6.8rem); color: var(--accent);
  margin-top: .4rem; letter-spacing: .02em;
}
.hero__sub { margin-top: 2.2rem; font-size: .92rem; letter-spacing: .12em; color: rgba(255,255,255,.82); }
.hero__cta { margin-top: 2.6rem; display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; }
.hero__dots {
  position: absolute; z-index: 4; left: var(--pad);
  bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex; gap: .35rem;
}
.hero__dots button { width: 38px; height: 24px; position: relative; }
.hero__dots button::before {
  content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 3px; margin-top: -1.5px;
  background: rgba(255,255,255,.32); border-radius: 2px;
}
.hero__dots button::after {
  content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 3px; margin-top: -1.5px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: 0 50%;
}
.hero__dots button.is-active::after { animation: dotfill 5s linear forwards; }
@keyframes dotfill { to { transform: scaleX(1); } }
.hero__scroll {
  position: absolute; z-index: 4; right: var(--pad); bottom: 2.1rem;
  display: flex; align-items: center; gap: .8rem;
  font-size: .58rem; font-weight: 700; letter-spacing: .4em; color: rgba(255,255,255,.75);
}
.hero__scroll span { display: block; width: 1px; height: 52px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.hero__scroll span::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--accent); animation: scrolldrip 2s var(--ease) infinite;
}
@keyframes scrolldrip { 60%, 100% { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--dark); color: #fff; overflow: clip; padding: 1.15rem 0; }
.marquee__track { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.marquee__track span {
  font-size: .85rem; font-weight: 500; letter-spacing: .5em; text-transform: uppercase; padding-right: .5em;
}
.marquee__track i { font-style: normal; color: var(--accent); }

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 10vw, 8.5rem) var(--pad); }
.section__head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section__eyebrow {
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--accent); margin-bottom: .6rem;
}
.section__title {
  font-size: clamp(1.5rem, 4.5vw, 2.6rem); font-weight: 400; letter-spacing: .42em; text-indent: .42em; line-height: 1.3;
  overflow: hidden;
}
.section__title .ch { display: inline-block; will-change: transform; }
[data-words] .wd { display: inline-block; will-change: transform, opacity; }
.section__title--big { letter-spacing: .2em; text-indent: 0; font-size: clamp(2.2rem, 6vw, 4rem); }
.section--dark { background: var(--dark); color: #fff; }

/* ---------- Categorías ---------- */
.cats { background: var(--bg); padding-bottom: clamp(3rem, 7vw, 6rem); }
.cats__hint {
  display: none; text-align: center; margin: -1.5rem 0 1.6rem;
  font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--muted);
}
.cats__grid {
  display: grid; gap: clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: repeat(4, 1fr); max-width: 1500px; margin: 0 auto;
}
.cat { position: relative; display: block; }
.cat__imgwrap { overflow: clip; aspect-ratio: 3 / 4; }
.cat__imgwrap img {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(12%);
  transform: scale(1.02); transition: transform 1s var(--ease), filter .6s;
}
.cat:hover .cat__imgwrap img { transform: scale(1.09); filter: grayscale(0%); }
.cat__body { display: flex; align-items: baseline; gap: .7rem; padding-top: 1.1rem; }
.cat__body h3 { font-size: .95rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.cat__count { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: .95rem; }
.cat__arrow { margin-left: auto; color: var(--accent); transition: transform .45s var(--ease); }
.cat:hover .cat__arrow { transform: translateX(8px); }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--bg-alt); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.filter {
  font-size: .68rem; font-weight: 700; letter-spacing: .25em; text-indent: .25em; text-transform: uppercase;
  padding: .75rem 1.5rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink-soft);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.grid { columns: 3 320px; column-gap: 1.4rem; max-width: 1500px; margin: 0 auto; }
.work {
  position: relative; display: block; break-inside: avoid; margin-bottom: 1.4rem;
  overflow: clip; cursor: pointer; width: 100%; text-align: left; border-radius: 2px;
}
.work.is-off { display: none; }
.work img { width: 100%; transform: scale(1.01); transition: transform 1.1s var(--ease); }
.work::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8,8,8,.78) 100%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.work:hover::after { opacity: 1; }
.work:hover img { transform: scale(1.07); }
.work__meta {
  position: absolute; z-index: 2; left: 1.3rem; right: 1.3rem; bottom: 1.15rem; color: #fff;
  transform: translateY(14px); opacity: 0; transition: transform .55s var(--ease), opacity .45s;
}
.work:hover .work__meta { transform: none; opacity: 1; }
.work__meta h3 { font-size: .92rem; font-weight: 600; letter-spacing: .06em; line-height: 1.45; }
.work__meta p { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-top: .3rem; }
.work__meta p b { color: rgba(255,255,255,.75); font-weight: 500; letter-spacing: .1em; }

/* ---------- Estudio ---------- */
.studio { max-width: 1500px; margin: 0 auto; }
.studio__intro {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-bottom: clamp(3.5rem, 8vw, 7rem);
}
.studio__media { position: sticky; top: 90px; overflow: clip; }
.studio__media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.studio__text .section__title { letter-spacing: .3em; text-indent: 0; margin-bottom: 1.8rem; }
.studio__text .section__eyebrow { margin-bottom: .4rem; }
.studio__lead { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 300; letter-spacing: .06em; margin-bottom: 1.6rem; }
.studio__lead em { font-family: var(--serif); font-style: italic; color: var(--accent); letter-spacing: 0; }
.studio__text p { color: var(--ink-soft); margin-bottom: 1.3rem; }

.quote { position: relative; overflow: clip; margin: 0 calc(-1 * var(--pad)); padding: clamp(5rem, 12vw, 9rem) var(--pad); text-align: center; color: #fff; }
.quote__bg {
  position: absolute; inset: -18% 0; background-size: cover; background-position: center 30%;
  will-change: transform;
}
.quote__bg::after { content: ""; position: absolute; inset: 0; background: rgba(8, 8, 8, .66); }
.quote blockquote { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.quote blockquote p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.7rem, 4.5vw, 3.2rem); line-height: 1.35;
}
.quote cite {
  display: block; margin-top: 1.6rem; font-style: normal;
  font-size: .72rem; font-weight: 700; letter-spacing: .45em; text-transform: uppercase; color: var(--accent);
}

.studio__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(3.5rem, 8vw, 7rem);
}
.studio__col { border-top: 1.5px solid var(--line); padding-top: 1.8rem; }
.studio__num { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--accent); }
.studio__col h4 { font-size: 1rem; font-weight: 600; letter-spacing: .35em; margin: .6rem 0 1.2rem; }
.studio__col p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.studio__cta { text-align: center; margin-top: clamp(3rem, 6vw, 5rem); font-size: 1.05rem; }
.studio__cta a { color: var(--accent); font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* ---------- Contacto ---------- */
.contact__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem); max-width: 1300px; margin: 0 auto;
}
.contact .section__eyebrow { margin-bottom: .4rem; }
.contact .section__title--big { margin-bottom: 1.6rem; }
.contact__intro { color: rgba(255,255,255,.72); max-width: 46ch; margin-bottom: 2.4rem; }
.contact__list { list-style: none; display: grid; gap: 1.5rem; }
.contact__list span {
  display: block; font-size: .62rem; font-weight: 700; letter-spacing: .35em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .35rem;
}
.contact__list a { color: rgba(255,255,255,.88); transition: color .3s; }
.contact__list a:hover { color: var(--accent); }

.contact__form { display: grid; gap: 1.4rem; align-content: start; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--line-light);
  color: #fff; font-family: inherit; font-size: .95rem; padding: 1.1rem 0 .7rem; outline: none;
  transition: border-color .35s; resize: vertical;
}
.field label {
  position: absolute; left: 0; top: 1.05rem; color: rgba(255,255,255,.5); font-size: .9rem;
  pointer-events: none; transition: all .3s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff8a80; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: -.55rem; font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--accent);
}
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .8rem; color: rgba(255,255,255,.65); }
.check input { accent-color: var(--accent); margin-top: .25rem; }
.check a { color: var(--accent); text-decoration: underline; }
.contact__hint { font-size: .72rem; color: rgba(255,255,255,.4); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: #0b0b0b; color: #fff; padding: clamp(3rem, 6vw, 4.5rem) var(--pad) 1.8rem; }
.footer__top {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding-bottom: 2.2rem; border-bottom: 1px solid var(--line-light); max-width: 1500px; margin: 0 auto;
}
.footer__nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer__nav a {
  font-size: .68rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.7); transition: color .3s;
}
.footer__nav a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 1.1rem; }
.footer__social a { color: rgba(255,255,255,.7); transition: color .3s; display: block; }
.footer__social a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.6rem; font-size: .74rem; color: rgba(255,255,255,.45); max-width: 1500px; margin: 0 auto;
}
.footer__bottom a { color: rgba(255,255,255,.65); }
.footer__bottom a:hover { color: var(--accent); }

/* ---------- To top ---------- */
.totop {
  position: fixed; right: 1.4rem; bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); z-index: 700;
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(219, 68, 60, .35);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .4s, transform .4s var(--ease), visibility .4s, background .3s;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: #c2362f; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 960; background: rgba(8, 8, 8, .96);
  display: flex; flex-direction: column; color: #fff;
  opacity: 0; visibility: hidden;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.3rem var(--pad); }
.lightbox__title { font-size: .95rem; font-weight: 600; letter-spacing: .08em; }
.lightbox__cat { font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-top: .25rem; }
.lightbox__close { font-size: 1.15rem; padding: .4rem .7rem; color: rgba(255,255,255,.8); transition: color .3s, transform .4s var(--ease); }
.lightbox__close:hover { color: var(--accent); transform: rotate(90deg); }
.lightbox__stage { flex: 1; display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 0; padding: 0 clamp(.5rem, 3vw, 2.5rem); }
.lightbox__imgwrap { flex: 1; height: 100%; display: grid; place-items: center; min-width: 0; position: relative; }
.lightbox__imgwrap.is-loading::before {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -17px 0 0 -17px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .2); border-top-color: var(--accent);
  animation: lbspin .8s linear infinite;
}
@keyframes lbspin { to { transform: rotate(360deg); } }
.lightbox__imgwrap img { max-width: 100%; max-height: calc(100svh - 170px); object-fit: contain; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.lightbox__nav {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line-light);
  font-size: 1.05rem; color: rgba(255,255,255,.85);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.lightbox__nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__counter { text-align: center; padding: 1.1rem; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: rgba(255,255,255,.6); }

/* ---------- Reveals (solo con JS) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(44px); }
html.js .work { opacity: 0; transform: translateY(40px) scale(.97); }
html.js .cat .cat__imgwrap { clip-path: inset(100% 0 0 0); }
html.js .cat .cat__imgwrap img { transform: scale(1.18); }

/* ---------- Touch: el hover no existe ---------- */
@media (hover: none) {
  .work::after { opacity: 1; }
  .work__meta { opacity: 1; transform: none; }
  .work img { transform: none; }
  .cat__imgwrap img { filter: none; transform: none; }
  .work:active img { transform: scale(1.03); transition-duration: .3s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .header__nav { display: none; }
  .burger { display: block; }
  .studio__intro { grid-template-columns: 1fr; }
  .studio__media { position: static; max-width: 620px; }
  .studio__cols { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .hero__dots { left: 50%; transform: translateX(-50%); }
  .hero__scroll { display: none; }
}

/* móvil: carrusel de categorías con scroll-snap */
@media (max-width: 760px) {
  .cats__hint { display: block; }
  .cats__grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: .9rem; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) .8rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .cats__grid::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 76%; scroll-snap-align: center; }
  .cat__imgwrap { aspect-ratio: 3 / 4; }
  .section { padding-inline: clamp(1.1rem, 5vw, 5rem); }
  .field input, .field textarea { font-size: 1rem; } /* evita zoom iOS */
  .footer__top { flex-direction: column; text-align: center; gap: 1.6rem; }
  .footer__nav { justify-content: center; }
  .footer__bottom { flex-direction: column; text-align: center; gap: .3rem; }
}

@media (max-width: 560px) {
  .section__title { font-size: 1.3rem; letter-spacing: .26em; text-indent: .26em; white-space: nowrap; }
  .section__title--big { font-size: 2rem; letter-spacing: .14em; }
  .preloader__name { font-size: .58rem; letter-spacing: .32em; text-indent: .32em; }
  .hero__eyebrow { font-size: .56rem; letter-spacing: .32em; text-indent: .32em; margin-bottom: 1.5rem; }
  .hero__sub { font-size: .8rem; line-height: 1.9; margin-top: 1.7rem; }
  .hero__cta { margin-top: 2.1rem; flex-direction: column; align-items: center; gap: .8rem; }
  .hero__cta .btn { width: min(78vw, 260px); text-align: center; }
  .header__name { display: none; }
  .header { padding-inline: 1.1rem; }
  .grid { column-gap: 1rem; }
  .work { margin-bottom: 1rem; }
  .work__meta { left: 1rem; right: 1rem; bottom: .9rem; }
  .work__meta h3 { font-size: .84rem; }
  .filters { gap: .4rem; }
  .filter { padding: .65rem 1.1rem; font-size: .62rem; }
  .studio__lead { letter-spacing: .03em; }
  .quote { padding-inline: 1.4rem; }
  .lightbox__bar { padding: 1rem 1.1rem; }
  .lightbox__title { font-size: .82rem; }
  .lightbox__counter { padding: .8rem; font-size: .95rem; }
  .lightbox__nav {
    position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; background: rgba(8, 8, 8, .45); border-color: rgba(255, 255, 255, .25);
  }
  .lightbox__nav--prev { left: .6rem; }
  .lightbox__nav--next { right: .6rem; }
  .lightbox__stage { padding: 0; }
  .lightbox__imgwrap img { max-height: calc(100svh - 140px); }
  .totop { width: 44px; height: 44px; right: 1rem; }
  .footer { padding-bottom: 5rem; }
  .overlay { padding: 5.5rem 1.4rem 2.5rem; gap: 2.2rem; }
  .overlay__meta { gap: 1.4rem; font-size: .8rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal], html.js .work { opacity: 1; transform: none; }
  html.js .cat .cat__imgwrap { clip-path: none; }
  html.js .cat .cat__imgwrap img { transform: none; }
  .hero__slide { transition: opacity .4s; transform: none !important; }
  .hero__scroll span::after, .hero__dots button.is-active::after { animation: none; }
  .grain { animation: none; opacity: .035; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .15s !important; }
}

/* ============================================================
   WordPress: páginas interiores, trabajos, formularios CF7
   ============================================================ */

/* cabecera sólida en páginas sin foto de portada */
body.lr-solid .header { background: rgba(250, 249, 247, .92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
body.lr-solid .header__logo--dark { opacity: 1; }
body.lr-solid .header__logo--light { opacity: 0; }
body.lr-solid .header__name, body.lr-solid .header__nav a { color: var(--ink); }
body.lr-solid .burger span { background: var(--ink); }

/* hero de páginas interiores */
.phero {
  position: relative; min-height: clamp(380px, 62vh, 640px); display: grid; place-items: center;
  overflow: clip; color: #fff; text-align: center; background: var(--dark);
}
.phero__bg { position: absolute; inset: -6% 0; background-size: cover; background-position: center 35%; will-change: transform; }
.phero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,8,.55), rgba(8,8,8,.45) 50%, rgba(8,8,8,.7)); }
.phero__content { position: relative; z-index: 2; padding: 7rem var(--pad) 3.5rem; max-width: 1100px; }
.phero__title {
  font-weight: 400; font-size: clamp(1.6rem, 4.6vw, 3rem); line-height: 1.3;
  letter-spacing: .28em; text-indent: .28em; text-transform: uppercase;
}

.section--tight { padding-bottom: 0; }

/* texto editable */
.prose { max-width: 760px; margin: 0 auto; color: var(--ink-soft); font-size: 1.02rem; }
.prose > * + * { margin-top: 1.2rem; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; margin-top: 2.4rem; }
.prose h2 { font-size: 1.15rem; }
.prose h3 { font-size: 1rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .4rem; }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 1.3rem; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink); }
.prose img, .prose figure { margin-inline: auto; }
.prose .wp-block-image figcaption { font-size: .8rem; text-align: center; color: var(--muted); margin-top: .5rem; }
.prose .alignwide { max-width: 1100px; margin-inline: calc(50% - min(550px, 50vw - var(--pad))); }

/* galería de un trabajo */
.single { max-width: 1500px; margin: 0 auto; }
.single .prose { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.shots { columns: 3 300px; column-gap: 1.1rem; }
.shot { display: block; break-inside: avoid; margin-bottom: 1.1rem; overflow: clip; border-radius: 2px; cursor: zoom-in; }
.shot img { width: 100%; transition: transform 1s var(--ease), filter .6s; }
.shot:hover img { transform: scale(1.04); }
html.js .shot { opacity: 0; transform: translateY(30px); }

.single__nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem;
  margin-top: clamp(3rem, 7vw, 5.5rem); padding-top: 2rem; border-top: 1.5px solid var(--line);
}
.single__nav a { font-size: .9rem; font-weight: 600; letter-spacing: .04em; transition: color .3s; }
.single__nav a:hover { color: var(--accent); }
.single__nav small { display: block; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.single__prev { grid-column: 1; }
.single__all { grid-column: 2; font-size: .7rem !important; letter-spacing: .3em !important; text-transform: uppercase; border: 1.5px solid var(--line); border-radius: 999px; padding: .8rem 1.6rem; }
.single__next { grid-column: 3; text-align: right; }

.empty { text-align: center; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.3rem; }

/* contacto como página propia */
.is-contact-page .contact { padding-top: clamp(8rem, 14vw, 11rem); min-height: 100svh; }

/* 404 */
.nf { min-height: 100svh; display: grid; place-content: center; text-align: center; padding: 8rem var(--pad) 4rem; }
.nf__code { font-family: var(--serif); font-style: italic; font-size: clamp(5rem, 16vw, 10rem); color: var(--accent); line-height: 1; }
.nf__title { font-weight: 400; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; font-size: clamp(1.1rem, 3vw, 1.6rem); margin: 1rem 0; }
.nf__text { color: var(--ink-soft); max-width: 46ch; margin: 0 auto; }
.btn--dark { border-color: var(--ink); color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: #fff; }

/* Contact Form 7 con el estilo de la web */
.contact__form .wpcf7 { width: 100%; }
.contact__form .wpcf7-form { display: grid; gap: 1.4rem; }
.contact__form .wpcf7-form p { margin: 0; color: rgba(255,255,255,.55); font-size: .8rem; letter-spacing: .08em; }
.contact__form .wpcf7-form label { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.contact__form .wpcf7-form-control-wrap { display: block; margin-top: .3rem; }
.contact__form input[type="text"], .contact__form input[type="email"], .contact__form input[type="tel"], .contact__form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--line-light);
  color: #fff; font-family: inherit; font-size: .95rem; padding: .8rem 0 .6rem; outline: none; resize: vertical;
  transition: border-color .35s; border-radius: 0;
}
.contact__form textarea { min-height: 7.5rem; }
.contact__form input:focus, .contact__form textarea:focus { border-color: var(--accent); }
.contact__form .wpcf7-list-item { margin: 0; }
.contact__form .wpcf7-acceptance label, .contact__form .wpcf7-list-item-label { text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 400; color: rgba(255,255,255,.65); }
.contact__form input[type="checkbox"] { accent-color: var(--accent); margin-right: .5rem; }
.contact__form .wpcf7-form a { color: var(--accent); text-decoration: underline; }
.contact__form input[type="submit"] {
  width: 100%; cursor: pointer; font-family: inherit; background: var(--accent); color: #fff; border: 0;
  font-size: .72rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  padding: 1.05rem 2.2rem; border-radius: 999px; transition: background-color .4s;
}
.contact__form input[type="submit"]:hover { background: #c2362f; }
.contact__form .wpcf7-not-valid-tip { color: #ff8a80; font-size: .75rem; margin-top: .3rem; text-transform: none; letter-spacing: 0; }
.contact__form .wpcf7-response-output { margin: 0 !important; border-radius: 6px; font-size: .85rem; color: #fff; }
.contact__form .wpcf7-spinner { margin: .8rem auto 0; display: block; }

@media (max-width: 760px) {
  .single__nav { grid-template-columns: 1fr 1fr; }
  .single__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .contact__form input, .contact__form textarea { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .shot { opacity: 1; transform: none; }
}

/* barra de administración de WordPress (solo con sesión iniciada) */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .header { top: 46px; } }
