/* =========================================================
   Kevin Bahamondez — Fotografía & Audiovisual
   Estilos globales. Cada página cambia de tema con una clase
   en <body>: .theme-home · .theme-boda · .theme-av
   ========================================================= */

:root {
  --ink: #111110;
  --ink-soft: #2a2926;
  --bone: #f2ede4;
  --bone-soft: #e6dfd2;
  --muted: #8a857c;
  --accent: #c8643b;

  --bg: var(--ink);
  --fg: var(--bone);
  --fg-muted: #a39e94;
  --line: rgba(242, 237, 228, 0.14);
  --card: #1a1917;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-boda {
  --bg: #f4efe7;
  --fg: #1c1a17;
  --fg-muted: #6f685e;
  --line: rgba(28, 26, 23, 0.14);
  --card: #ebe4d8;
  --accent: #a4532f;
}

.theme-av {
  --bg: #0b0b0b;
  --fg: #f1f0ec;
  --fg-muted: #8f8d87;
  --line: rgba(241, 240, 236, 0.12);
  --card: #151514;
  --accent: #ff5a1f;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--accent); }

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.h-section em { font-style: italic; }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 52ch;
  text-wrap: pretty;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  display: inline-flex; align-items: baseline;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: var(--fg);
}
/* La "K" se dibuja en SVG para que sus brazos se plieguen con el scroll */
.kmark {
  width: 0.76em; height: 0.72em;
  margin-right: -0.03em;
  overflow: hidden;
  fill: currentColor;
  align-self: baseline;
  transform: translateY(0.005em);
}
.kmark-arm { fill: none; stroke: currentColor; stroke-width: 14.5; stroke-linejoin: miter; stroke-miterlimit: 10; }
.logo-dot { color: var(--accent); margin-left: 0.02em; }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  font-size: 14px;
  color: var(--fg-muted);
  transition: color 0.2s;
  position: relative;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
}
.nav .btn { color: var(--fg); }

.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; }
.menu-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--fg);
  margin: 5px auto; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.3s var(--ease);
  }
  .nav a { font-size: 22px; font-family: var(--serif); padding: 10px 0; color: var(--fg); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 12px; font-family: var(--sans); font-size: 15px; }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .menu-open .site-header { background: var(--bg); }
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { border-color: var(--fg); }
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn svg { width: 16px; height: 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.2s, gap 0.25s var(--ease);
}
.link-arrow:hover { border-color: var(--fg); gap: 12px; }

/* ---------- Secciones genéricas ---------- */

.section { padding-block: clamp(80px, 12vw, 160px); }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head .lead { margin: 0; justify-self: end; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .lead { justify-self: start; }
}

.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--radius);
}
.img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

/* ---------- Revelado al hacer scroll ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* =========================================================
   HOME
   ========================================================= */

.bracket {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0;
}

/* Pantalla de carga estilo contador */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: #0d0d0d; color: #fff;
  display: grid; place-items: center;
  transition: transform 0.9s var(--ease) 0.1s;
}
.loader-bar {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 50%;
  transform: translateY(-120%);
  display: flex; align-items: center; gap: 20px;
  padding: 8px; border: 1px solid rgba(255,255,255,0.14); border-radius: 8px;
  font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em;
}
.loader-pill { width: 22px; height: 44px; border-radius: 5px; background: #fff; flex: none; }
.loader-right { margin-left: auto; padding-right: 20px; }
.loader-count {
  font-size: clamp(120px, 22vw, 320px); font-weight: 500; letter-spacing: -0.06em;
  line-height: 1; margin-top: 18vh; font-variant-numeric: tabular-nums;
}
.loader.is-done { transform: translateY(-100%); }
.no-loader .loader { display: none; }
@media (max-width: 640px) { .loader-right { display: none; } }

/* Portada */
.omo-hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  background: #0d0d0d;
}
.omo-hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 35%;
  transform: scale(1.08);
  transition: transform 2.4s var(--ease);
}
.is-ready .omo-hero-img { transform: scale(1); }
.omo-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0.1) 42%, rgba(0,0,0,0.88) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 45%, transparent 70%),
    radial-gradient(ellipse at 62% 35%, transparent 30%, rgba(0,0,0,0.35) 100%);
}
.omo-hero-inner { padding-top: 120px; padding-bottom: clamp(28px, 4vw, 48px); width: 100%; }
.omo-hero .bracket { color: rgba(255,255,255,0.75); }
.omo-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(54px, 11.5vw, 196px);
  line-height: 0.86;
  letter-spacing: -0.055em;
  margin: 18px 0 clamp(28px, 4vw, 48px) -0.04em;
}
.omo-hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 24px clamp(24px, 4vw, 64px);
  align-items: end;
  border-top: 1px solid rgba(255,255,255,0.22);
  padding-top: 20px;
}
.omo-bio { margin: 0; max-width: 46ch; font-size: 16px; color: rgba(255,255,255,0.82); text-wrap: pretty; }
.omo-links { list-style: none; margin: 0; padding: 0; }
.omo-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.22);
  font-size: 18px; font-weight: 500;
  position: relative;
}
.omo-links a::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0;
  background: #fff; transition: width 0.6s var(--ease);
}
.omo-links a:hover::after { width: 100%; }
.omo-tag {
  font-size: 13px; font-weight: 600; color: #fff; background: var(--accent);
  padding: 5px 10px; border-radius: 6px;
  transition: transform 0.3s var(--ease);
}
.omo-links a:hover .omo-tag { transform: translateX(-4px); }
.omo-meta { margin: 0; display: grid; gap: 10px; text-align: right; }
.omo-meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.omo-meta dd { margin: 0; font-size: 15px; font-weight: 500; }

.hero-in { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 0.09s + 0.1s); }
.is-ready .hero-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .omo-hero-foot { grid-template-columns: 1fr; }
  .omo-meta { text-align: left; grid-auto-flow: column; justify-content: start; gap: 32px; }
}

/* Marcas */
.brands {
  border-bottom: 1px solid var(--line);
  padding-block: 28px;
  overflow: hidden;
}
.brands-inner { display: flex; align-items: center; gap: 32px; }
.brands-label { flex: none; }
.marquee {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.brand {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  opacity: 0.5;
  white-space: nowrap;
  transition: opacity 0.2s;
}
a.brand:hover, .brand:hover { opacity: 1; }
.brand img { height: 28px; width: auto; filter: grayscale(1) brightness(2); }

@media (max-width: 640px) {
  .brands-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .marquee { width: 100%; }
}

/* Elegí tu camino — tarjetas holográficas */
.paths {
  padding-block: clamp(80px, 10vw, 140px);
  background: radial-gradient(ellipse at 50% 70%, #17181b 0%, var(--bg) 60%);
}
.paths-head { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); display: grid; gap: 16px; justify-items: center; }

.holo-grid {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(24px, 5vw, 72px);
  perspective: 1200px;
}
.holo {
  --mx: 50%; --my: 50%;       /* posición del cursor en la tarjeta */
  --rx: 0deg; --ry: 0deg;     /* inclinación */
  --near: 0;                  /* 0 = lejos, 1 = cursor encima */
  --hue: 0deg;
  display: block;
  width: min(360px, 100%);
  aspect-ratio: 5 / 7;
  color: #f4f4f5;
  border-radius: 18px;
  outline-offset: 6px;
}
.holo-card {
  position: relative;
  width: 100%; height: 100%;
  border-radius: inherit;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 50% 0%, #25262a 0%, #16171a 55%, #111214 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.09) inset,
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 30px 60px -20px rgba(0,0,0,0.8),
    0 12px 24px -12px rgba(0,0,0,0.6);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  will-change: transform;
}
.holo.is-active .holo-card { transition: transform 0.08s linear; }
/* ruido de grano sutil */
.holo-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* Capa iridiscente: se recorta con el grabado (máscara SVG) + un círculo que sigue al cursor */
.holo-foil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(calc(115deg + var(--hue)),
      #ff7ac6 0%, #a78bfa 14%, #60a5fa 28%, #5eead4 42%, #bef264 56%, #fde68a 70%, #fb923c 84%, #ff7ac6 100%);
  background-size: 260% 260%;
  background-position: var(--mx) var(--my);
  mix-blend-mode: color-dodge;
  opacity: calc(0.15 + var(--near) * 0.95);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  transition: opacity 0.4s;
}
.holo-foil--engrave {
  -webkit-mask-image: var(--engrave), radial-gradient(circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,0.5) calc(var(--near) * 30%), transparent calc(12% + var(--near) * 48%));
  mask-image: var(--engrave), radial-gradient(circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,0.5) calc(var(--near) * 30%), transparent calc(12% + var(--near) * 48%));
  -webkit-mask-size: 100% 100%, 100% 100%;
  mask-size: 100% 100%, 100% 100%;
}
.holo-foil--emblem {
  -webkit-mask-image: var(--emblem), linear-gradient(#000, #000);
  mask-image: var(--emblem), linear-gradient(#000, #000);
  -webkit-mask-size: 100% 100%, 100% 100%;
  mask-size: 100% 100%, 100% 100%;
  opacity: calc(var(--near) * 1.1);
  filter: saturate(1.3);
}
/* difracción: líneas finísimas que brillan con el ángulo */
.holo-diffraction {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    repeating-linear-gradient(calc(62deg + var(--hue) * 0.4), rgba(255,255,255,0.0) 0 2px, rgba(255,255,255,0.07) 2px 3px),
    linear-gradient(calc(110deg + var(--hue)), transparent 30%, rgba(160,200,255,0.18) 45%, rgba(255,170,230,0.18) 55%, transparent 70%);
  background-size: auto, 250% 250%;
  background-position: 0 0, var(--mx) var(--my);
  mix-blend-mode: screen;
  opacity: calc(var(--near) * 0.9);
}
.holo-outline {
  position: absolute; left: 50%; top: 44%; z-index: 2;
  width: 62%; transform: translate(-50%, -50%);
  fill: none; stroke: rgba(255,255,255,0.42); stroke-width: 0.5;
  stroke-linejoin: round; stroke-linecap: round;
  overflow: visible;
}
.holo-glare {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.06) 22%, transparent 48%);
  mix-blend-mode: overlay;
  opacity: var(--near);
}
.holo-ui {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 22px 18px;
  transform: translateZ(30px);
}
.holo-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.holo-plus { font-size: 20px; line-height: 0.8; color: rgba(255,255,255,0.5); font-weight: 300; }
.holo-bottom h3 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -0.03em; }
.holo-bottom p { margin: 2px 0 26px; font-size: 13px; color: rgba(255,255,255,0.5); }
.holo-foot {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.holo:hover .holo-card, .holo:focus-visible .holo-card {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.14) inset,
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 50px 90px -30px rgba(0,0,0,0.9),
    0 0 80px -30px rgba(170,150,255,0.35);
}
.holo-hint {
  text-align: center; margin: 40px 0 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-muted); opacity: 0.6;
}
@media (hover: none) { .holo-hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .holo { --near: 0.55 !important; --rx: 0deg !important; --ry: 0deg !important; }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 8vw, 96px) 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 64px;
}
.footer-top .h-section { font-size: clamp(40px, 5vw, 72px); }
.footer-top h4 { margin: 0 0 14px; font-weight: 400; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-top a { color: var(--fg-muted); transition: color 0.2s; }
.footer-top a:hover { color: var(--fg); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--fg-muted);
}
@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}

/* =========================================================
   Hero interior (Boda y Audiovisual)
   ========================================================= */

.page-hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.page-hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.08);
  opacity: 0.001;
  transition: transform 2.2s var(--ease), opacity 1.2s var(--ease);
}
.is-ready .page-hero > img { transform: scale(1); opacity: 1; }
.page-hero { background: #1c1a17; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.65) 100%);
}
.page-hero .wrap { padding-bottom: clamp(40px, 6vw, 80px); padding-top: 140px; }
.page-hero .eyebrow { color: rgba(255,255,255,0.75); }
.page-hero .display { font-size: clamp(64px, 11vw, 180px); margin-top: 16px; }
.page-hero .display em { color: inherit; }
.page-hero-foot {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; flex-wrap: wrap; margin-top: 32px;
}
.page-hero-foot p { margin: 0; max-width: 44ch; color: rgba(255,255,255,0.85); font-size: 17px; }
.page-hero .site-header { color: #fff; }

/* Header sobre imagen: texto blanco hasta hacer scroll */
.on-image .site-header:not(.is-scrolled) { --fg: #fff; --fg-muted: rgba(255,255,255,0.75); --line: rgba(255,255,255,0.3); color: #fff; }

/* Sub-navegación de secciones */
.subnav {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.subnav .wrap {
  display: flex; gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 12px;
}
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--fg-muted);
  transition: background 0.2s, color 0.2s;
}
.subnav a:hover { color: var(--fg); }
.subnav a.is-active { background: var(--fg); color: var(--bg); }
.subnav a.subnav-cta { margin-left: auto; border: 1px solid var(--line); color: var(--fg); }

section[id] { scroll-margin-top: 130px; }

/* =========================================================
   BODA
   ========================================================= */

/* Cómo trabajo: línea de tiempo de cobertura */
.coverage { margin-bottom: clamp(56px, 7vw, 96px); }
.coverage-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.seg {
  position: relative;
  flex: var(--h, 1) 1 0;
  min-width: 132px;          /* evita que se corten los textos en los bloques de 1 h */
  padding: 16px 14px 14px;
  border-radius: 6px;
  background: var(--card);
  min-height: 132px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 12px;
}
.seg-h { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 48px); line-height: 1; }
.seg-name { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.35; }
.seg-pk { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.seg-pk span { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-muted); }
.seg--all { background: var(--fg); color: var(--bg); }
.seg--all .seg-pk span { border-color: color-mix(in srgb, var(--bg) 30%, transparent); color: color-mix(in srgb, var(--bg) 75%, transparent); }
.coverage-legend { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; color: var(--fg-muted); }
@media (max-width: 820px) {
  .seg { flex: 1 1 calc(50% - 3px); min-height: 110px; }
  .seg:last-child { flex-basis: 100%; }
}

.delivery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-bottom: clamp(56px, 7vw, 96px);
}
.delivery > div { padding: 28px 28px 0 0; }
.delivery > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.delivery-when { font-family: var(--serif); font-style: italic; font-size: clamp(36px, 4vw, 56px); line-height: 1; color: var(--accent); }
.delivery h3 { font-size: 18px; font-weight: 500; margin: 18px 0 8px; }
.delivery p { margin: 0; color: var(--fg-muted); font-size: 15px; }
@media (max-width: 820px) {
  .delivery { grid-template-columns: 1fr; }
  .delivery > div, .delivery > div + div { padding: 24px 0; border-left: 0; }
  .delivery > div + div { border-top: 1px solid var(--line); }
}

.wcc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 80px); align-items: center;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.wcc .img-frame { aspect-ratio: 4 / 3; }
.wcc h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 56px); line-height: 1; margin: 12px 0 16px; }
.wcc p { color: var(--fg-muted); margin: 0 0 20px; max-width: 48ch; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
@media (max-width: 820px) { .wcc { grid-template-columns: 1fr; } }

.terms {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.term { background: var(--card); border-radius: 6px; padding: 28px; }
.term h3 { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 18px; color: var(--fg-muted); }
.term-big { font-family: var(--serif); font-size: 44px; line-height: 1; }
.term-big small { font-family: var(--sans); font-size: 14px; color: var(--fg-muted); display: block; margin-top: 6px; }
.term p { margin: 0; font-size: 15px; color: var(--fg-muted); }
.term-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .terms { grid-template-columns: 1fr; } }

.photo-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin-top: clamp(56px, 7vw, 96px);
}
.photo-strip .img-frame { aspect-ratio: 4 / 5; }
@media (max-width: 820px) {
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip .img-frame:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}

/* Paquetes */
.packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.package {
  display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  background: var(--card);
  border-radius: 6px;
  border: 1px solid transparent;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.package:hover { border-color: var(--line); transform: translateY(-4px); }
.package--featured { background: var(--fg); color: var(--bg); }
.package--featured .package-price small,
.package--featured .package-desc,
.package--featured li { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.package.package--featured li::before { background: currentColor; }
.package--featured .btn { background: var(--bg); color: var(--fg); border-color: var(--bg); }
.package--featured .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.package-tag {
  min-height: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.package-tag .badge {
  font-size: 10px; padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: #fff; letter-spacing: 0.1em;
}
.package h3 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; margin: 28px 0 8px; }
.package-desc { color: var(--fg-muted); font-size: 15px; margin: 0 0 28px; }
.package-price { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 28px; font-variant-numeric: tabular-nums; }
.package-price small { display: block; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--fg-muted); }
.package ul { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 12px; font-size: 15px; }
.package li { position: relative; padding-left: 20px; color: var(--fg-muted); }
.package li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 8px; height: 1px; background: var(--fg);
}
.package .btn { margin-top: auto; justify-content: center; width: 100%; }
.packages-note { margin-top: 24px; font-size: 14px; color: var(--fg-muted); }
/* Tablet: los 3 paquetes en una fila, más compactos */
@media (min-width: 700px) and (max-width: 1000px) {
  .packages { gap: 10px; }
  .package { padding: 24px 18px; }
  .package h3 { font-size: 34px; margin-top: 18px; }
  .package-tag { font-size: 10px; letter-spacing: 0.08em; }
  .package-tag .badge { font-size: 9px; padding: 3px 8px; }
  .package-desc { font-size: 13px; margin-bottom: 18px; min-height: 2.8em; }
  .package-price { font-size: 21px; margin-bottom: 20px; }
  .package ul { font-size: 13px; gap: 9px; margin-bottom: 24px; }
  .package li { padding-left: 14px; }
  .package li::before { width: 6px; }
  .package .btn { height: 40px; padding: 0 10px; font-size: 13px; }
}
/* Celular: uno debajo del otro */
@media (max-width: 699px) { .packages { grid-template-columns: 1fr; max-width: 560px; } }

/* Testimonios */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.testimonial { margin: 0; display: flex; flex-direction: column; }
.testimonial .img-frame { aspect-ratio: 1; margin-bottom: 24px; }
.testimonial:hover .img-frame img { transform: scale(1.04); }
.testimonial blockquote {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  text-wrap: pretty;
}
.testimonial blockquote.is-pending { font-family: var(--sans); font-size: 15px; color: var(--fg-muted); border: 1px dashed var(--line); border-radius: 6px; padding: 16px; }
.testimonial figcaption { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.testimonial figcaption strong { font-weight: 500; font-size: 17px; }
.testimonial figcaption a, .testimonial figcaption span { font-size: 13px; color: var(--fg-muted); }
.testimonial figcaption a:hover { color: var(--fg); }
.img-pending { display: grid; place-items: center; text-align: center; padding: 24px; font-size: 14px; color: var(--fg-muted); border: 1px dashed var(--line); background: transparent; }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; gap: 56px; max-width: 520px; } }

/* Consultar fecha */
.inquiry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
}
.inquiry-aside .lead { margin-top: 24px; }
.inquiry-contact { margin-top: 40px; display: grid; gap: 12px; font-size: 15px; }
.inquiry-contact a { display: inline-flex; gap: 10px; align-items: center; color: var(--fg-muted); transition: color 0.2s; }
.inquiry-contact a:hover { color: var(--fg); }
.inquiry-contact svg { width: 18px; height: 18px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0 12px;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 24px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fg); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--fg-muted) 70%, transparent); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.form-hint { font-size: 13px; color: var(--fg-muted); }
@media (max-width: 900px) { .inquiry { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* =========================================================
   AUDIOVISUAL
   ========================================================= */

.av-hero {
  padding-top: 132px;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.av-hero-top {
  display: flex; justify-content: space-between; align-items: end;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.av-hero .display { font-size: clamp(56px, 10vw, 168px); }
.av-hero .lead { margin: 0; }

.reel {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.reel > img, .reel > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease), opacity 0.4s;
}
.reel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
}
.reel:hover > img { transform: scale(1.02); }
.reel-play {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
}
.reel-play span {
  display: grid; place-items: center;
  width: clamp(80px, 10vw, 128px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  transition: transform 0.4s var(--ease);
}
.reel-play:hover span { transform: scale(1.08); }
.reel-play svg { width: 28%; height: 28%; margin-left: 6%; }
.reel-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; gap: 16px;
  padding: clamp(16px, 2vw, 28px);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  pointer-events: none;
}
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.reel.is-playing .reel-play, .reel.is-playing .reel-meta { display: none; }

/* Grid de marcas */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.brand-cell {
  display: grid; place-items: center;
  aspect-ratio: 16 / 9;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px;
  text-align: center;
  transition: background 0.3s;
}
.brand-cell:hover { background: var(--card); }
.brand-cell .brand { opacity: 0.6; }
.brand-cell:hover .brand { opacity: 1; }
@media (max-width: 820px) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Servicios */
.services-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: clamp(64px, 8vw, 112px);
}
.services-index a {
  display: grid; gap: 40px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  transition: border-color 0.3s;
}
.services-index a:hover { border-color: var(--accent); }
.services-index .eyebrow { color: var(--accent); }
.services-index strong { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; }
@media (max-width: 820px) { .services-index { grid-template-columns: 1fr 1fr; gap: 24px 16px; } }

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.service-info { position: sticky; top: 160px; align-self: start; }
.service-num { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--accent); }
.service-info h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 76px); line-height: 0.95; letter-spacing: -0.02em; margin: 16px 0 20px; }
.service-info p { color: var(--fg-muted); margin: 0 0 28px; max-width: 44ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-muted); }

.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.work { display: grid; gap: 12px; }
.work--wide { grid-column: 1 / -1; }
.work .img-frame { aspect-ratio: 4 / 5; }
.work--wide .img-frame { aspect-ratio: 16 / 9; }
.work:hover .img-frame img { transform: scale(1.04); }
.work-caption { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.work-caption span { color: var(--fg-muted); }

/* Comparador antes/después (colorización) */
.compare {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  --pos: 50%;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; background: #fff; transform: translateX(-1px);
  pointer-events: none;
}
.compare-handle::after {
  content: "⟷"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: #111;
  display: grid; place-items: center; font-size: 18px;
}
.compare-label {
  position: absolute; top: 14px; z-index: 1;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,0.55); color: #fff;
}
.compare-label--l { left: 14px; }
.compare-label--r { right: 14px; }
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}

/* Tarjetas de motion */
.motion-card { position: relative; }
.motion-card .img-frame::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(80, 120, 255, 0.45), transparent 50%);
  mix-blend-mode: screen;
  animation: drift 9s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(-6%, -4%) scale(1); }
  to { transform: translate(6%, 4%) scale(1.15); }
}

@media (max-width: 900px) {
  .service { grid-template-columns: minmax(0, 1fr); }
  .service-info { position: static; }
}

/* CTA final audiovisual */
.cta-band { text-align: center; }
.cta-band .h-section { font-size: clamp(48px, 9vw, 144px); margin: 20px auto 40px; max-width: 14ch; }
.cta-band .h-section em { color: var(--accent); }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Accesibilidad */
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tabla comparativa de paquetes */
.compare-table { width: 100%; border-collapse: collapse; margin-top: clamp(40px, 5vw, 64px); font-size: 15px; }
.compare-table th, .compare-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; padding-left: 0; }
.compare-table thead th { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); border-bottom: 2px solid var(--line); }
.compare-table .yes { color: var(--accent); font-size: 18px; }
.compare-table .no { color: var(--fg-muted); opacity: 0.5; }
.package-usd { display: block; font-size: 13px; font-weight: 400; color: var(--fg-muted); margin-top: 2px; }
.package--featured .package-usd { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.brand-sub { display: block; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--fg-muted); margin-top: 4px; }
.brand-grid .brand { font-size: clamp(17px, 1.6vw, 22px); }

/* Transición suave entre páginas (navegadores compatibles; el resto navega normal) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 0.35s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in 0.6s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* =========================================================
   Galería de bodas + visor
   ========================================================= */
.gallery { columns: 3; column-gap: 12px; }
.g-item {
  position: relative; display: block; width: 100%;
  margin: 0 0 12px; padding: 0;
  break-inside: avoid;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
}
.g-item img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter 0.6s var(--ease); }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 40px 16px 14px;
  font-size: 13px; color: rgba(255,255,255,0.8); text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.g-cap strong { font-family: var(--serif); font-weight: 400; font-size: 22px; color: #fff; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.03); }
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }
@media (hover: none) { .g-cap { opacity: 1; transform: none; padding-top: 28px; } .g-cap strong { font-size: 18px; } }
@media (max-width: 1000px) { .gallery { columns: 2; } }
@media (max-width: 480px) { .gallery { column-gap: 8px; } .g-item { margin-bottom: 8px; } .g-cap { padding: 22px 10px 8px; font-size: 11px; flex-direction: column; gap: 0; } .g-cap strong { font-size: 15px; } }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(10, 9, 8, 0.96); color: #fff;
}
.lightbox::backdrop { background: rgba(10, 9, 8, 0.96); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in 0.35s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; padding: 64px 72px 24px; max-width: 100%; }
.lightbox img {
  max-width: calc(100vw - 144px); max-height: calc(100dvh - 140px);
  width: auto; height: auto; object-fit: contain; border-radius: 2px;
  transition: opacity 0.25s;
}
.lightbox img.is-loading { opacity: 0.35; }
.lightbox figcaption { display: flex; gap: 20px; font-size: 14px; color: rgba(255,255,255,0.75); }
.lb-count { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.5); }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; color: #fff;
  background: rgba(255,255,255,0.08); transition: background 0.2s;
}
.lb-btn:hover { background: rgba(255,255,255,0.2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox figure { padding: 64px 8px 88px; }
  .lightbox img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 170px); }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}

/* Logos de marcas (SVG en blanco) */
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { width: auto; max-width: none; filter: none; }
.marquee-track { align-items: center; gap: 72px; }
.brand-cell { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
.brand-cell .brand-logo img { max-width: 70%; margin-inline: auto; object-fit: contain; }
.brand-cell .brand-logo { justify-content: center; width: 100%; opacity: 0.6; transition: opacity 0.3s; }
.brand-cell:hover .brand-logo { opacity: 1; }
.brand-cell .brand-sub { margin: 0; }
@media (max-width: 640px) {
  .marquee-track { gap: 48px; }
  .marquee .brand-logo { zoom: 0.8; }
}

/* Punto de la "i" en naranja: se usa una "ı" sin punto y se dibuja un cuadrado encima */
.idot { position: relative; }
.idot::after {
  content: "";
  position: absolute;
  left: calc(50% + 0.027em);
  top: var(--idot-top, 0.286em);
  width: var(--idot-size, 0.132em);
  height: var(--idot-size, 0.11em);
  background: var(--accent);
  transform: translateX(-50%);
}

/* ---------- Más naranja en el Inicio ---------- */
.theme-home { --accent: #ff5a1f; }   /* mismo naranja que el logo y las piezas de Instagram */
.theme-home .h-section em { color: var(--accent); }
.omo-hero .bracket, .theme-home .brands-label, .theme-home .paths-head .bracket, .theme-home .footer-top .bracket { color: var(--accent); }
.omo-links a::after { background: var(--accent); height: 2px; bottom: -1px; }
.omo-links a:hover .omo-tag { background: #fff; color: #111; }
.omo-hero-foot { border-top-color: rgba(255,90,31,0.55); }
.theme-home .nav a[aria-current="page"]::after { background: var(--accent); height: 2px; }
.theme-home .nav .btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-home .brand:hover { opacity: 1; }
.theme-home .loader-pill { background: var(--accent); }
.theme-home .holo-hint { color: var(--accent); opacity: 0.8; }
.theme-home .link-arrow { border-bottom-color: var(--accent); }
.theme-home .footer-top a:hover { color: var(--accent); }
.theme-home .holo-plus { color: var(--accent); }
.theme-home .holo-foot span:first-child { color: var(--accent); }

/* Primera sección después del menú de secciones: menos aire arriba */
.subnav + .section { padding-top: clamp(56px, 7vw, 96px); }

/* Inicio en celular: la foto arriba (se ve la cara) y el texto debajo */
@media (max-width: 700px) {
  .omo-hero { display: block; min-height: 0; }
  .omo-hero-img {
    position: relative; inset: auto; z-index: 0;
    display: block; width: 100%; height: 64svh;
    object-position: 60% 30%;
  }
  .omo-hero::after {
    inset: 0 0 auto 0; height: 64svh; z-index: 1;
    background:
      linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 60%, #0d0d0d 100%);
  }
  .omo-hero-inner { position: relative; z-index: 2; margin-top: -84px; padding-top: 0; }
}

/* Menú en celular: misma tipografía que el logo y botón de contacto con aire */
@media (max-width: 820px) {
  .nav { gap: 2px; padding-top: 16px; }
  .nav a {
    font-family: var(--sans); font-weight: 600;
    font-size: 30px; letter-spacing: -0.04em; line-height: 1.1;
    padding: 10px 0;
  }
  .nav a[aria-current="page"] { color: var(--accent); }
  .nav .btn {
    margin-top: 18px; height: 52px; padding: 0 28px;
    justify-content: center; align-self: stretch;
    font-size: 16px; font-weight: 600; letter-spacing: 0;
    background: var(--accent); border-color: var(--accent); color: #fff;
  }
}

/* Con el menú abierto el encabezado deja de estar "sobre la foto": usa los colores de la página */
.theme-boda.menu-open .site-header { --fg: #1c1a17; --fg-muted: #6f685e; --line: rgba(28,26,23,.14); color: #1c1a17; }
.theme-home.menu-open .site-header,
.theme-av.menu-open .site-header { --fg: #f4f4f2; color: #f4f4f2; }

/* ---------- Botón de contacto flotante (siempre visible) ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px 0 18px;
  border-radius: 999px;
  background: #ff5a1f; color: #fff;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s;
}
.fab svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.fab:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -10px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.2); }
.fab:active { transform: scale(0.96); }
.menu-open .fab, .lightbox[open] ~ .fab { opacity: 0; pointer-events: none; }
body:has(.lightbox[open]) .fab { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); height: 50px; padding: 0 18px 0 15px; font-size: 14px; }
}
/* que el pie de página no quede tapado por el botón */
.site-footer { padding-bottom: 96px; }

/* Botón "Consultar fecha" de la portada de Bodas: naranja sobre la foto */
.page-hero .btn--solid { background: #ff5a1f; border-color: #ff5a1f; color: #fff; }
.page-hero .btn--solid:hover { background: #fff; border-color: #fff; color: #1c1a17; }

/* Audiovisual: menos aire entre la barra del logo y el título */
.av-hero { padding-top: 104px; }
@media (max-width: 640px) { .av-hero { padding-top: 96px; } }

/* "Consultar fecha →" del menú de secciones: siempre legible, también cuando estás en esa sección */
.subnav a.subnav-cta { border-color: #ff5a1f; color: #ff5a1f; font-weight: 500; }
.subnav a.subnav-cta:hover { background: #ff5a1f; color: #fff; }
.subnav a.subnav-cta.is-active { background: #ff5a1f; border-color: #ff5a1f; color: #fff; }
/* Más contraste en la tarjeta destacada (Plus) */
.package--featured li, .package--featured .package-desc { color: rgba(244, 239, 231, 0.86); }
.package--featured .package-usd { color: rgba(244, 239, 231, 0.7); }

/* ---------- Testimonios en carrusel (pasa solo, lento) ---------- */
.t-carousel {
  overflow: hidden;
  margin-inline: calc(var(--gutter) * -1);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.t-track {
  display: flex; gap: 20px; width: max-content;
  padding-inline: var(--gutter);
  animation: t-scroll var(--t-dur, 70s) linear infinite;
}
.t-carousel:hover .t-track, .t-carousel:focus-within .t-track { animation-play-state: paused; }
@keyframes t-scroll { to { transform: translateX(calc(-50% - 10px)); } }
.t-track .testimonial {
  flex: none; width: 340px;
  background: var(--card); border-radius: 8px; padding: 14px 14px 18px;
}
.t-track .testimonial .img-frame { aspect-ratio: 4 / 3; margin-bottom: 18px; border-radius: 4px; }
.t-track .testimonial blockquote { font-size: 19px; line-height: 1.3; margin: 0 6px 18px; }
.t-track .testimonial figcaption { margin: auto 6px 0; padding-top: 12px; }
.t-track .testimonial figcaption strong { font-size: 15px; }
.t-track .testimonial figcaption a { font-size: 12px; }
@media (max-width: 640px) {
  .t-track .testimonial { width: 272px; }
  .t-track .testimonial blockquote { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .t-carousel { overflow-x: auto; }
  .t-track { animation: none; }
}

/* =========================================================
   Página legal (términos y privacidad)
   ========================================================= */
.legal { padding: 140px 0 80px; }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal-toc { position: sticky; top: 110px; font-size: 14px; }
.legal-toc ol { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.legal-toc ol ol { margin: 10px 0 0 12px; gap: 6px; border-left: 1px solid var(--line); padding-left: 14px; }
.legal-toc > ol > li > a { font-weight: 600; }
.legal-toc a { color: var(--fg-muted); transition: color .2s; }
.legal-toc a:hover { color: var(--accent); }
.legal-body { max-width: 720px; }
.legal-body .h-section { margin: 14px 0 24px; }
.legal-body .h-section em { color: var(--accent); }
.legal-section { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.legal-section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.5vw, 60px); line-height: 1; letter-spacing: -.02em; margin: 0 0 12px; }
.legal-section h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 40px 0 12px; scroll-margin-top: 100px; }
.legal-section p, .legal-section li { font-size: 16.5px; line-height: 1.7; color: #3d3934; }
.legal-section ul { padding-left: 20px; display: grid; gap: 8px; margin: 0; }
.legal-section li::marker { color: var(--accent); }
.legal-section a, .legal-contact a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-note { margin-top: 20px; padding: 18px 20px; background: var(--card); border-radius: 6px; font-size: 14.5px !important; }
.legal-contact { margin-top: 64px; padding: 28px; background: var(--card); border-radius: 8px; }
.legal-contact p { margin: 8px 0 0; line-height: 1.7; }
section[id].legal-section { scroll-margin-top: 100px; }
@media (max-width: 860px) {
  .legal { padding-top: 110px; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; background: var(--card); border-radius: 8px; padding: 20px; }
}
/* enlaces legales en los pies de página */
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form-privacy { flex-basis: 100%; }
.form-privacy a { text-decoration: underline; text-underline-offset: 3px; }

/* Título de la portada: K del logo + cuadrado naranja al final */
.kmark-arm-static { fill: none; stroke: currentColor; stroke-width: 14.5; stroke-linejoin: miter; stroke-miterlimit: 10; }
.omo-title .kmark--title { width: 0.76em; height: 0.71em; margin-left: 0.08em; margin-right: -0.1em; vertical-align: baseline; transform: none; }
.omo-title .tdot {
  display: inline-block;
  width: 0.1em; height: 0.1em;   /* mismo alto que la barra inferior de la "z" */
  margin-left: 0.075em;
  background: #ff5a1f;
  vertical-align: baseline;
}

/* Portada: foto un poco más arriba para que se vea mejor la cara */
.omo-hero-img { inset: -9% 0 auto 0; height: 109%; }
@media (max-width: 700px) { .omo-hero-img { inset: auto; height: 64svh; object-position: 60% 22%; } }

/* Dirección: fotos horizontales (no recortar en vertical) */
.work-grid--land .work .img-frame { aspect-ratio: 3 / 2; }
.work-grid--land .work--wide .img-frame { aspect-ratio: 4 / 3; }
@media (max-width: 560px) { .work-grid--land { grid-template-columns: 1fr; } }

/* Comparadores verticales (9:16) — Campaña TFTS */
.compare--vert { aspect-ratio: 9 / 16; }
.compare--vert .compare-label { font-size: 10px; padding: 4px 8px; }

/* Dirección de fotografía: fotogramas por proyecto (filas justificadas, cada still en su formato) */
.stills { display: grid; gap: clamp(28px, 4vw, 44px); }
.stills-head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.stills-head strong { font-size: 17px; font-weight: 500; }
.stills-head span { font-size: 14px; color: var(--fg-muted); }
.stills-head .stills-count { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.stills-row { display: flex; flex-wrap: wrap; gap: 8px; }
.still {
  flex: var(--ar) 1 calc(var(--ar) * 170px);
  aspect-ratio: var(--ar);
  padding: 0; border: 0; background: #000; cursor: zoom-in;
  border-radius: 6px; overflow: hidden; position: relative;
}
.still img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease), opacity 0.4s; }
.still:hover img, .still:focus-visible img { transform: scale(1.04); }
@media (max-width: 560px) {
  .stills-row { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .stills-row::-webkit-scrollbar { display: none; }
  .still { flex: 0 0 auto; height: 200px; width: auto; scroll-snap-align: start; }
}
/* filas justificadas: misma altura, ancho según formato */
.stills-project .stills-row + .stills-row { margin-top: 8px; }
@media (min-width: 561px) {
  .stills-row { flex-wrap: nowrap; }
  .still { flex: var(--ar) 1 0; min-width: 0; }
}
/* Misma jerarquía en todos los proyectos: grilla de 2 columnas, todos los fotogramas del mismo ancho */
@media (min-width: 561px) {
  .stills-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
  .still { width: 100%; aspect-ratio: var(--ar); }
}

/* Motion graphics: GIFs del Motion Reel + capturas */
.motion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 8px; }
.motion-clip { margin: 0; }
.motion-frame { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #111; }
.motion-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.motion-shots { margin-top: clamp(28px, 4vw, 44px); }
@media (max-width: 560px) { .motion-grid { grid-template-columns: 1fr; } }
.motion-clip .work-caption { margin-top: 10px; }
.motion-clip--wide { grid-column: 1 / -1; }

/* Motion: carrusel chico de capturas debajo de los GIFs */
.motion-caps { margin-top: clamp(28px, 4vw, 44px); }
.caps-wrap { position: relative; }
.caps-track {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 2px;
}
.caps-track::-webkit-scrollbar { display: none; }
.caps-track .cap { flex: 0 0 clamp(150px, 22%, 210px); aspect-ratio: 16 / 9; height: auto; max-height: none; scroll-snap-align: start; }
.caps-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(10, 9, 8, 0.72); color: #fff; font-size: 15px;
  backdrop-filter: blur(6px); transition: opacity 0.3s, background 0.3s;
}
.caps-nav:hover { background: var(--accent); }
.caps-prev { left: 8px; } .caps-next { right: 8px; }
.caps-nav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 560px) { .caps-nav { display: none; } .caps-track { margin-right: -16px; padding-right: 16px; } }

/* Mobile: los carruseles horizontales no deben ensanchar la columna de la grilla */
.service > *, .stills, .stills-project, .stills-row, .motion-caps, .caps-wrap, .caps-track, .motion-grid, .work-grid { min-width: 0; }

/* Testimonios: flechas */
.t-track.is-js { animation: none; will-change: transform; }
.t-controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.t-nav {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--fg);
  font-size: 17px; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.t-nav:hover, .t-nav:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 640px) { .t-controls { justify-content: center; } }

/* Audiovisual: marcas en una fila horizontal antes de contacto, nombre al pasar el mouse */
.brands-row-section { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.brands-row-section .eyebrow { margin-bottom: clamp(24px, 3vw, 36px); }
.brands-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(14px, 2vw, 28px);
}
.brand-chip {
  position: relative; flex: 0 1 auto; min-width: 0;
  display: grid; place-items: center; height: 56px; padding: 0 2px;
  opacity: 0.55; transition: opacity 0.3s;
  outline: none;
}
.brand-chip img { height: 30px; width: auto; max-width: 100%; object-fit: contain; }
.brand-chip:hover, .brand-chip:focus-visible { opacity: 1; }
.brand-chip::after {
  content: attr(data-name);
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translate(-50%, 6px); white-space: nowrap; pointer-events: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: var(--accent); color: #fff;
  opacity: 0; transition: opacity 0.25s, transform 0.25s;
}
.brand-chip:hover::after, .brand-chip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.brand-chip:first-child::after { left: 0; transform: translate(0, 6px); }
.brand-chip:first-child:hover::after, .brand-chip:first-child:focus-visible::after { transform: none; }
.brand-chip:last-child::after { left: auto; right: 0; transform: translate(0, 6px); }
.brand-chip:last-child:hover::after, .brand-chip:last-child:focus-visible::after { transform: none; }
@media (max-width: 900px) {
  .brands-row { overflow-x: auto; justify-content: flex-start; gap: 32px; padding-top: 40px; margin-top: -40px; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scrollbar-width: none; }
  .brands-row::-webkit-scrollbar { display: none; }
  .brand-chip { flex: none; }
}
/* ajustes: logos parejos y nombre debajo (no pisa el título) */
.brand-chip img { height: 28px; max-width: 104px; }
.brand-chip img[src*="dyamanto"] { height: 22px; }
.brand-chip img[src*="brakesa"], .brand-chip img[src*="apple"], .brand-chip img[src*="warner"] { height: 32px; }
.brand-chip::after { bottom: auto; top: calc(100% + 4px); transform: translate(-50%, -6px); }
.brand-chip:first-child::after, .brand-chip:last-child::after { transform: translate(0, -6px); }
.brands-row-section .eyebrow { margin-bottom: 18px; }
@media (max-width: 900px) {
  .brands-row { padding-top: 0; margin-top: 0; padding-bottom: 40px; margin-bottom: -40px; }
}

/* Inicio: nombre de la marca al pasar el mouse sobre el logo del marquee */
.brands { padding-bottom: 34px; }
.marquee { padding-block: 6px 34px; margin-block: -6px -34px; }
.brand-tip { position: relative; outline: none; }
.brand-tip:focus-visible { opacity: 1; }
.brand-tip::after {
  content: attr(data-name);
  position: absolute; top: calc(100% + 4px); left: 50%;
  transform: translate(-50%, -6px); white-space: nowrap; pointer-events: none;
  font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--accent); color: #fff;
  opacity: 0; transition: opacity 0.25s, transform 0.25s;
}
.brand-tip:hover::after, .brand-tip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* Portada: línea "Fundador de Brakesa Studios" debajo del nombre */
.omo-title { margin-bottom: clamp(14px, 2vw, 22px); }
.omo-founder {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 clamp(28px, 4vw, 44px);
  font-family: var(--mono); font-size: clamp(11px, 1vw, 13px); letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.omo-founder img { height: 20px; width: auto; flex: none; }
.omo-founder a { color: #fff; border-bottom: 1px solid var(--accent); padding-bottom: 1px; transition: color 0.25s; }
.omo-founder a:hover { color: var(--accent); }
/* Audiovisual: portada sin reel, con "Fundador de Brakesa Studios" */
.av-founder { margin: clamp(18px, 2.5vw, 28px) 0 0; color: var(--fg-muted); }
.av-founder a { color: var(--fg); }
.av-hero { padding-bottom: clamp(32px, 5vw, 64px); }
.av-hero .av-hero-top { margin-bottom: 0; }
.av-hero + #servicios { padding-top: clamp(24px, 4vw, 56px); }
