:root {
  color-scheme: dark;
  --ink: #f3eee6;
  --paper: #d9d0c3;
  --muted: #aca197;
  --wine: #6f1e2c;
  --wine-bright: #a33a4c;
  --gold: #c5a36a;
  --night: #100d0d;
  --line: rgba(243, 238, 230, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::selection { color: #160e10; background: #e4c486; }

button, a { color: inherit; }
button { font: inherit; }
img { max-width: 100%; }

.gallery-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px clamp(22px, 4.8vw, 76px);
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(10,8,8,.72), transparent);
}

.gallery-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-decoration: none;
}

.gallery-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(10,8,8,.62);
}

.gallery-header nav,
.gallery-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
}

.gallery-header nav a,
.gallery-footer nav a {
  color: rgba(255,255,255,.76);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .25s ease;
}

.gallery-header nav a {
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(8,7,7,.14);
  backdrop-filter: blur(7px);
}

.gallery-header nav a:hover,
.gallery-footer nav a:hover { color: #fff; }

.gallery-header .nav-cta {
  color: #fff;
  border-color: rgba(255,255,255,.48);
}

.gallery-hero {
  position: relative;
  min-height: min(960px, 100svh);
  display: flex;
  align-items: center;
  padding: 138px clamp(22px, 7.5vw, 116px) 90px;
  overflow: hidden;
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
}

.hero-photo-main {
  left: 38%;
  background-image: url('/img/portfolio/boda-pareja-vestido-rojo.webp');
  background-position: 62% 42%;
  background-size: cover;
  filter: saturate(.86) contrast(1.08) brightness(.78);
  transform: scale(1.03);
  animation: hero-breathe 18s ease-in-out infinite alternate;
}

.hero-photo-detail {
  inset: auto 4.5% 6% auto;
  z-index: 2;
  width: clamp(240px, 23vw, 360px);
  height: clamp(134px, 12.8vw, 202px);
  background-image: url('/videos-boda/thumbs/bea-sergio-enlace.jpg');
  background-position: center 42%;
  background-size: cover;
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 32px 80px rgba(0,0,0,.54);
}

.hero-photo-detail::before {
  position: absolute;
  inset: 12px;
  content: "";
  border: 1px solid rgba(255,255,255,.28);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #100d0d 0%, rgba(16,13,13,.98) 24%, rgba(16,13,13,.6) 56%, rgba(16,13,13,.2) 86%),
    linear-gradient(180deg, rgba(16,13,13,.28), transparent 58%, #100d0d 100%),
    radial-gradient(circle at 71% 36%, rgba(116,21,39,.22), transparent 34%);
}

.hero-copy { position: relative; z-index: 3; width: min(680px, 54vw); }

.overline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.overline span { width: 42px; height: 1px; background: currentColor; }

h1, h2 {
  margin: 0;
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .94;
}

h1 { max-width: 720px; font-size: clamp(4rem, 7.8vw, 8.2rem); }
h2 { font-size: clamp(3rem, 5.8vw, 6.5rem); }
h1 em, h2 em { color: #d6b577; font-weight: 400; }

.hero-intro {
  max-width: 580px;
  margin: 32px 0 0;
  color: rgba(243,238,230,.76);
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.6vw, 1.46rem);
  line-height: 1.6;
}

.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 38px; }

.play-featured {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 0;
  color: #fff;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.play-icon,
.film-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 50%;
  background: rgba(19,13,14,.28);
  backdrop-filter: blur(8px);
  transition: transform .3s ease, background .3s ease;
}

.play-icon i,
.film-play i {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
}

.play-featured:hover .play-icon { transform: scale(1.08); background: var(--wine); }
.play-featured small { display: block; margin-bottom: 4px; color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.play-featured strong { font-family: Iowan Old Style, Baskerville, serif; font-size: 1.2rem; font-weight: 400; }

.text-link {
  color: rgba(255,255,255,.76);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link span { margin-left: 9px; color: var(--gold); }

.hero-index {
  position: absolute;
  right: clamp(22px, 4.7vw, 72px);
  top: 48%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.56);
  font-size: .68rem;
  font-weight: 800;
}
.hero-index i { display: block; width: 1px; height: 64px; background: linear-gradient(var(--gold) 33%, rgba(255,255,255,.2) 33%); }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: clamp(22px, 7.5vw, 116px);
  z-index: 3;
  margin: 0;
  color: rgba(255,255,255,.42);
  font-size: .67rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.hero-scroll span { margin-left: 9px; color: var(--gold); }

@keyframes hero-breathe {
  from { transform: scale(1.03); }
  to { transform: scale(1.09) translate3d(-1%, -.6%, 0); }
}

.gallery-intro,
.films-section,
.approach-section,
.gallery-cta,
.gallery-footer {
  width: min(1320px, calc(100% - 44px));
  margin: 0 auto;
}

.gallery-intro {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(60px, 9vw, 150px);
  padding: clamp(100px, 13vw, 190px) 0;
}

.gallery-intro h2 { font-size: clamp(3.4rem, 6vw, 6.8rem); }
.intro-copy { padding-top: 44px; }
.intro-copy p { margin: 0 0 24px; color: var(--muted); font-size: 1.02rem; line-height: 1.85; }
.intro-copy p:first-child { color: var(--paper); font-size: 1.18rem; }

.films-section { padding: 0 0 clamp(110px, 14vw, 190px); }

.films-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 58px;
}

.film-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.film-filters button {
  padding: 9px 13px;
  color: #92877f;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.film-filters button:hover,
.film-filters button.is-active { color: var(--ink); border-color: var(--gold); }

.film-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5.4vw, 80px) clamp(22px, 3vw, 44px);
}

.film-card { min-width: 0; transition: opacity .35s ease, transform .35s ease; }
.film-card.is-hidden { display: none; }
.film-card-wide { grid-column: 1 / -1; }

.film-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #1a1515 var(--poster) var(--poster-position, center) / cover no-repeat;
  cursor: pointer;
  text-align: left;
  isolation: isolate;
}

.film-card-wide .film-poster { aspect-ratio: 2.15 / 1; }

.film-poster::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: inherit;
  filter: saturate(.85) contrast(1.04);
  transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
.film-poster:hover::before { transform: scale(1.045); filter: saturate(1) contrast(1.08); }

.film-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12,9,9,.08) 15%, rgba(12,9,9,.18) 48%, rgba(12,9,9,.92) 100%);
}

.film-number {
  position: absolute;
  top: 20px;
  left: 22px;
  color: rgba(255,255,255,.66);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.film-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  background: rgba(19,13,14,.22);
}
.film-poster:hover .film-play { transform: translate(-50%, -50%) scale(1.09); background: var(--wine); }

.film-label { position: absolute; left: 24px; bottom: 22px; display: flex; flex-direction: column; gap: 5px; }
.film-label small { color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.film-label strong { font-family: Iowan Old Style, Baskerville, serif; font-size: clamp(1.7rem, 3vw, 3.3rem); font-weight: 400; }
.film-card:not(.film-card-wide) .film-label strong { font-size: clamp(1.55rem, 2.4vw, 2.55rem); }

.film-action { position: absolute; right: 24px; bottom: 27px; color: rgba(255,255,255,.72); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.film-action b { margin-left: 8px; color: var(--gold); font-size: 1rem; }
.film-card > p { max-width: 610px; margin: 17px 0 0; color: #948a82; font-family: Iowan Old Style, Baskerville, serif; font-size: 1.02rem; line-height: 1.6; }

.approach-section {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  min-height: 760px;
  margin-bottom: clamp(120px, 15vw, 210px);
  background: #171212;
}

.approach-image {
  position: relative;
  min-height: 620px;
  background: linear-gradient(180deg, transparent 65%, rgba(0,0,0,.66)), url('/img/portfolio/boda-preparativos-vestido.webp') center / cover;
}

.image-caption {
  position: absolute;
  bottom: 22px;
  left: 24px;
  color: rgba(255,255,255,.72);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.approach-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(50px, 6vw, 94px); }
.approach-copy h2 { font-size: clamp(3.1rem, 5.1vw, 5.7rem); }
.approach-list { margin-top: 54px; border-top: 1px solid var(--line); }
.approach-list > div { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.approach-list span { color: var(--gold); font-size: .72rem; font-weight: 800; }
.approach-list p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.approach-list strong { display: block; margin-bottom: 5px; color: var(--ink); font-family: Iowan Old Style, Baskerville, serif; font-size: 1.28rem; font-weight: 400; }

.gallery-cta {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 680px;
  padding: 90px 22px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.gallery-cta::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: url('/img/portfolio/boda-retrato-formal.webp') center 43% / cover;
  filter: saturate(.66) contrast(1.12) brightness(.48);
}
.gallery-cta::after { position: absolute; inset: 0; z-index: -1; content: ""; background: radial-gradient(circle, rgba(56,20,26,.15), rgba(9,7,7,.87)); }
.gallery-cta .overline { justify-content: center; }
.gallery-cta h2 { max-width: 920px; }
.gallery-cta > p:not(.overline) { max-width: 620px; margin: 28px auto 0; color: rgba(255,255,255,.72); line-height: 1.75; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; margin-top: 34px; }
.cta-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.cta-primary { color: #17110e; background: #e0c07f; }
.cta-primary span { margin-left: 12px; font-size: 1rem; }
.cta-secondary { color: #fff; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.18); backdrop-filter: blur(8px); }

.gallery-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 0; }
.gallery-footer > p { color: #80756e; font-size: .68rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }

.video-modal {
  width: min(1180px, calc(100% - 30px));
  max-width: none;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background: #0c0909;
  box-shadow: 0 30px 100px rgba(0,0,0,.7);
}
.video-modal::backdrop { background: rgba(4,3,3,.9); backdrop-filter: blur(12px); }
.video-modal-shell { padding: 18px; }
.modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.modal-heading span { display: block; margin-bottom: 3px; color: var(--gold); font-size: .61rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.modal-heading strong { font-family: Iowan Old Style, Baskerville, serif; font-size: 1.2rem; font-weight: 400; }
.modal-heading button { width: 42px; height: 42px; color: #fff; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.55rem; line-height: 1; }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame video { display: block; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.video-privacy { margin: 12px 0 0; color: #7e7570; font-size: .68rem; line-height: 1.5; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo-main { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

@media (max-width: 900px) {
  .gallery-hero { align-items: flex-end; min-height: 880px; padding-bottom: 116px; }
  .hero-photo-main { left: 0; bottom: 30%; background-position: 63% 34%; }
  .hero-vignette { background: linear-gradient(180deg, rgba(16,13,13,.18) 0%, rgba(16,13,13,.2) 34%, rgba(16,13,13,.92) 63%, #100d0d 100%); }
  .hero-copy { width: min(720px, 100%); }
  .hero-photo-detail { display: none; }
  .hero-index { top: 38%; }
  .gallery-intro { grid-template-columns: 1fr; gap: 20px; }
  .intro-copy { padding-top: 0; max-width: 680px; }
  .approach-section { grid-template-columns: 1fr; }
  .approach-image { min-height: 560px; }
  .gallery-footer { flex-wrap: wrap; }
}

@media (max-width: 680px) {
  .gallery-header { padding: 18px; }
  .gallery-header nav { gap: 6px; }
  .gallery-header nav a { padding: 8px 10px; font-size: .62rem; }
  .gallery-header .nav-cta { display: none; }
  .gallery-hero { min-height: 780px; padding: 110px 18px 86px; }
  .hero-photo-main { bottom: 34%; background-position: 62% 28%; }
  h1 { font-size: clamp(3.7rem, 18vw, 5.2rem); }
  .hero-intro { font-size: 1.05rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 24px; margin-top: 28px; }
  .hero-index { display: none; }
  .hero-scroll { left: 18px; bottom: 24px; }
  .gallery-intro, .films-section, .approach-section, .gallery-cta, .gallery-footer { width: min(100% - 28px, 1320px); }
  .gallery-intro { padding: 92px 0; }
  .gallery-intro h2, .films-heading h2 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .films-heading { align-items: flex-start; flex-direction: column; margin-bottom: 36px; }
  .film-filters { justify-content: flex-start; }
  .film-grid { grid-template-columns: 1fr; }
  .film-card-wide { grid-column: auto; }
  .film-card-wide .film-poster, .film-poster { aspect-ratio: 4 / 5; }
  .film-action { display: none; }
  .film-label { right: 18px; left: 18px; bottom: 18px; }
  .film-label strong, .film-card:not(.film-card-wide) .film-label strong { font-size: 1.7rem; }
  .film-play { width: 62px; height: 62px; }
  .approach-image { min-height: 480px; }
  .approach-copy { padding: 48px 24px; }
  .approach-copy h2 { font-size: clamp(2.9rem, 13vw, 4.1rem); }
  .gallery-cta { min-height: 610px; }
  .gallery-cta h2 { font-size: clamp(3.1rem, 14vw, 4.8rem); }
  .cta-actions { flex-direction: column; width: 100%; max-width: 340px; }
  .gallery-footer > p { width: 100%; order: 3; }
  .gallery-footer nav { gap: 15px; }
  .gallery-footer nav a { font-size: .6rem; }
  .video-modal-shell { padding: 10px; }
}
