/* 24 VIBES — colores y tipografías tomados del manual de marca */
:root {
  --ink: #0d1822;
  --navy: #1b3044;
  --navy-2: #24405a;
  --orange: #f59a3d;
  --burnt: #d06b32;
  --teal: #43a5af;
  --cream: #e4decb;
  --muted: #9aa9b6;
  --line: rgba(228, 222, 203, 0.14);
  --title: "Bebas Neue", "Arial Narrow", sans-serif;
  --display: "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--title); font-weight: 400; line-height: 0.94; margin: 0; text-transform: uppercase; letter-spacing: 0.02em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--orange);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.tc { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--muted); }

/* grano de película */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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)'/%3E%3C/svg%3E");
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(13, 24, 34, 0.82); backdrop-filter: blur(12px); border-color: var(--line); }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); font-family: var(--display); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; }
.nav__links a:not(.btn) { position: relative; padding: 6px 0; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--orange); transition: right 0.25s; }
.nav__links a:not(.btn):hover::after, .nav__links a[aria-current="page"]::after { right: 0; }
.nav__group { position: relative; }
.nav__group-btn { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 6px 0; cursor: pointer; display: flex; align-items: center; gap: 7px; }
.nav__group-btn::after { content: ""; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; }
.nav__menu { position: absolute; top: 100%; left: -18px; min-width: 170px; padding: 12px 18px; background: rgba(13, 24, 34, 0.97); border: 1px solid var(--line); border-radius: 6px; display: none; flex-direction: column; align-items: flex-start; gap: 6px; }
.nav__group:hover .nav__menu, .nav__group:focus-within .nav__menu, .nav__group.is-open .nav__menu { display: flex; }
.nav__toggle { display: none; background: none; border: 0; color: var(--cream); padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: transform 0.25s, opacity 0.25s; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--orange);
  background: var(--orange); color: var(--ink); cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); background: transparent; color: var(--orange); }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--cream); color: var(--cream); }
.btn--sm { padding: 9px 18px; font-size: 0.72rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 110px; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 55% at 78% 38%, rgba(245, 154, 61, 0.22), transparent 70%),
  radial-gradient(50% 60% at 10% 90%, rgba(67, 165, 175, 0.2), transparent 70%),
  linear-gradient(180deg, #132435 0%, var(--ink) 100%); }
.hero__bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.hero__bg.has-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 24, 34, 0.5), var(--ink)); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(3.4rem, 8.2vw, 8rem); margin: 20px 0 24px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__lead { max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.15rem); color: #c9d1d6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* logo con el sol de la marca */
.mark { position: relative; width: min(100%, 520px); margin-left: auto; }
.mark::before {
  content: ""; position: absolute; left: -6%; top: 0; width: 41%; aspect-ratio: 1; border-radius: 50%;
  background: var(--orange); z-index: -1; animation: sun 9s ease-in-out infinite alternate;
  box-shadow: 0 0 120px rgba(245, 154, 61, 0.45);
}
@keyframes sun { to { transform: translateY(-10px) scale(1.04); } }

.hero__meta { position: absolute; left: 0; right: 0; bottom: 78px; }
.hero__meta .wrap { display: flex; justify-content: space-between; gap: 16px; }
.rec { display: inline-flex; align-items: center; gap: 8px; }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.waves { position: absolute; left: 0; bottom: 0; width: 200%; height: 60px; z-index: -1; color: var(--teal); opacity: 0.55; animation: drift 18s linear infinite; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- Cinta ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--navy); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: drift 32s linear infinite; font-family: var(--title); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; align-items: center; }
.marquee__track span::after { content: "●"; color: var(--orange); margin-left: 40px; font-size: 0.6em; vertical-align: middle; }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 11vw, 150px) 0; }
.section--navy { background: var(--navy); }
.section--cream { background: var(--cream); color: var(--navy); }
.section--cream .eyebrow { color: var(--burnt); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 60px; align-items: end; margin-bottom: clamp(36px, 5vw, 70px); }
.section__head h2 { font-size: clamp(2.8rem, 7vw, 6.2rem); margin-top: 16px; }
.section__head p { max-width: 50ch; color: var(--muted); }
.section--cream .section__head p { color: #4b5d6d; }

/* servicios */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 90px 1fr 1.1fr; gap: 20px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding 0.3s, color 0.3s; }
.service:hover { padding-left: 18px; color: var(--orange); }
.service h3 { font-size: clamp(1.7rem, 3.6vw, 3rem); }
.service p { color: var(--muted); max-width: 48ch; }

/* trabajo */
.work { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.work > * { grid-column: span 6; }
.work > *:first-child { grid-column: span 12; }
.card { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--ink); border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; font: inherit; width: 100%; }
.work > *:first-child.card { aspect-ratio: 21 / 9; }
.card video, .card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.card:hover video, .card:hover img { transform: scale(1.04); }
.card__info { position: absolute; inset: auto 0 0 0; padding: 40px 22px 18px; background: linear-gradient(transparent, rgba(13, 24, 34, 0.9)); display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.card__info h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); }
.card__info span { font-family: var(--display); font-weight: 700; letter-spacing: 0.2em; font-size: 0.75rem; text-transform: uppercase; color: var(--orange); }
.card__play { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 68px; height: 68px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; opacity: 0; scale: 0.8; transition: opacity 0.25s, scale 0.25s; }
.card:hover .card__play, .card:focus-visible .card__play { opacity: 1; scale: 1; }
.card__play::before { content: ""; border-left: 18px solid var(--ink); border-block: 11px solid transparent; margin-left: 5px; }

/* espacios reservados mientras llega el material */
.slate { display: grid; place-items: center; text-align: center; cursor: default; border: 1px dashed var(--line);
  background: repeating-linear-gradient(135deg, rgba(228, 222, 203, 0.035) 0 14px, transparent 14px 28px), var(--ink); }
.slate b { font-family: var(--display); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: clamp(1.1rem, 2vw, 1.6rem); display: block; }
.section--cream .slate { background: repeating-linear-gradient(135deg, rgba(27, 48, 68, 0.06) 0 14px, transparent 14px 28px), #d9d2bc; border-color: rgba(27, 48, 68, 0.25); }
.section--cream .slate .tc { color: #4b5d6d; }

/* video destacado de bodas, centrado sobre las fotos */
.feature { max-width: 1040px; margin: 0 auto clamp(20px, 3vw, 36px); }
.feature video, .feature iframe { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 0; border-radius: 6px; background: var(--ink); }
.feature .card__play { opacity: 1; scale: 1; }
.lightbox iframe { width: min(1400px, calc(100vw - 32px)); max-height: calc(100svh - 120px); aspect-ratio: 16 / 9; border: 0; border-radius: 4px; }

/* fotografía */
.photos { columns: 3 260px; column-gap: 16px; }
.photos > * { break-inside: avoid; margin: 0 0 16px; width: 100%; border-radius: 6px; overflow: hidden; display: block; border: 0; padding: 0; background: none; cursor: zoom-in; }
.photos img { width: 100%; height: auto; transition: transform 0.6s, filter 0.4s; }
.photos > *:hover img { transform: scale(1.03); }
.photos .slate { cursor: default; display: grid; }

/* social */
.social-cta { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.social-cta h2 { font-size: clamp(2.4rem, 7vw, 6rem); }
.social-cta h2 a { color: var(--orange); }
.social-cta h2 a:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }

.profile { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 44px; }
.profile__avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; padding: 16px; flex: none; }
.profile h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); }
.profile p { color: var(--muted); }
.profile .btn { margin-left: auto; }
/* 6 columnas: las piezas verticales ocupan 2 (tres por fila) y las horizontales "cine" ocupan 3 (dos por fila) */
.feed { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.feed > * { grid-column: span 2; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; position: relative; display: block; }
.feed > .is-cine { grid-column: span 3; aspect-ratio: 16 / 9; }
.feed > .is-h { grid-column: span 3; aspect-ratio: 3 / 2; }
.feed > .is-wide { grid-column: span 4; aspect-ratio: 8 / 5; }
.feed > .is-video { grid-column: 1 / -1; aspect-ratio: 16 / 9; cursor: pointer; }
.feed .card__play { opacity: 1; scale: 1; }
.feed > button { border: 0; padding: 0; background: none; cursor: zoom-in; }
.more { text-align: center; margin-top: clamp(24px, 4vw, 44px); }
.feed .slate { display: grid; }
.feed > .feed__title { grid-column: 1 / -1; aspect-ratio: auto; overflow: visible; text-align: center; font-size: clamp(2.2rem, 6vw, 4.4rem); padding: clamp(28px, 5vw, 60px) 0 clamp(12px, 2vw, 22px); }
.feed > .feed__title:first-child { padding-top: 0; }
.feed__title::after { content: ""; display: block; width: 48px; height: 3px; background: var(--orange); margin: 14px auto 0; }
.feed img, .feed video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.feed > button:hover img { transform: scale(1.05); }
.page-top { padding-top: 140px; }

/* pie */
.footer { padding: clamp(60px, 9vw, 120px) 0 36px; border-top: 1px solid var(--line); }
.footer h2 { font-size: clamp(2.8rem, 10vw, 9rem); }
.footer h2 em { font-style: normal; color: var(--orange); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.footer__row img { height: 54px; width: auto; }

/* visor */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 14, 20, 0.95); display: none; place-items: center; padding: 60px 16px; }
.lightbox.is-open { display: grid; }
.lightbox img, .lightbox video { max-width: min(1400px, 100%); max-height: calc(100svh - 120px); border-radius: 4px; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--cream); font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 14px; }
.lightbox button:hover { color: var(--orange); }
.lightbox [data-close] { top: 8px; right: 12px; }
.lightbox [data-prev] { left: 6px; top: 50%; translate: 0 -50%; }
.lightbox [data-next] { right: 6px; top: 50%; translate: 0 -50%; }

/* aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s, transform 0.8s; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero__grid, .section__head, .social-cta { grid-template-columns: 1fr; }
  .mark { order: -1; margin: 0 0 10px 6%; width: min(62%, 300px); }
  .service { grid-template-columns: 50px 1fr; }
  .service p { grid-column: 2; }
  .work > * { grid-column: span 12; }
  .work > *:first-child.card { aspect-ratio: 16 / 9; }
  .hero__meta { bottom: 70px; }
  .profile .btn { margin-left: 0; }
  .nav__toggle { display: block; position: relative; z-index: 2; }
  .nav__links { position: fixed; inset: 0; background: var(--ink); flex-direction: column; justify-content: center; font-size: 1.6rem; gap: 28px; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  /* en el celular el submenú se muestra siempre abierto, bajo su rótulo */
  .nav__group { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .nav__group-btn { pointer-events: none; color: var(--muted); font-size: 0.85rem; padding: 0; }
  .nav__group-btn::after { display: none; }
  .nav__menu { position: static; display: flex; flex-direction: row; gap: 28px; background: none; border: 0; padding: 0; min-width: 0; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-8px) rotate(-45deg); }
  .nav__logo { position: relative; z-index: 2; }
}
@media (max-width: 520px) {
  .feed { gap: 4px; }
  .lightbox [data-prev], .lightbox [data-next] { top: auto; bottom: 6px; translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
