/* ==========================================================================
   Boya Films — estilos
   Paleta: asfalto, concreto, tiza y ámbar de boya de señalización.
   ========================================================================== */

:root {
  --asphalt: #181A1F;
  --concrete: #22252B;
  --slab: #353941;
  --chalk: #EDE9E0;
  --smoke: #A7ABB3;
  --buoy: #F2A81D;

  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1280px;
  --bar-h: 64px;
  --r-sm: 6px;
  --r-lg: 12px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--asphalt);
  color: var(--chalk);
  font: 400 1rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--buoy); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--buoy); color: var(--asphalt);
  padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 600;
}
.skip:focus { top: 1rem; }

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

.display {
  font-family: var(--f-display);
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.005em;
}

.h2 { font-size: clamp(3rem, 9vw, 7rem); }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  max-width: 34em;
}

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

.section { padding-block: clamp(4.5rem, 10vw, 9rem); }
.section--tight { padding-top: 0; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 .95rem/1 var(--f-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--buoy); color: var(--asphalt); }
.btn--primary:hover { background: var(--chalk); }
.btn--ghost { border-color: var(--slab); color: var(--chalk); background: transparent; }
.btn--ghost:hover { border-color: var(--chalk); }

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

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--bar-h);
  background: var(--asphalt);
}
.site-header__inner {
  height: 100%;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--f-display); font-stretch: 62%; font-weight: 800;
  font-size: 1.9rem; line-height: 1; text-transform: uppercase;
  text-decoration: none;
}
.brand__dot {
  width: .5em; height: .5em; border-radius: 50%; background: var(--buoy);
  margin-inline: .08em;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--chalk); }
.nav a:not(.btn):hover { color: var(--buoy); }
.nav .btn { padding: .7rem 1.2rem; }

.nav-toggle {
  display: none;
  background: transparent; color: var(--chalk);
  border: 1px solid var(--slab); border-radius: 999px;
  padding: .55rem 1.1rem; font: 500 .9rem/1 var(--f-body); cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed; inset: var(--bar-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--asphalt);
    padding: .5rem var(--gutter) 1.5rem;
    border-top: 1px solid var(--slab);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--concrete); font-size: 1.1rem; }
  .nav .nav__cta { margin-top: 1.25rem; padding: 1rem; }
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  padding-top: var(--bar-h);
  display: grid; grid-template-rows: 1fr auto;
  background: var(--asphalt);
}

.hero__stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter);
  background:
    radial-gradient(ellipse at 78% 18%, rgba(242,168,29,.20), transparent 55%),
    radial-gradient(ellipse at 8% 100%, rgba(95,122,153,.18), transparent 55%),
    var(--concrete);
}

.hero__stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(24,26,31,.92), rgba(24,26,31,.15) 65%);
}

.hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; opacity: .55;
}

.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero__content {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 2rem 4rem;
}

.hero__title { font-size: clamp(5rem, 24vw, 21rem); line-height: .8; }

.hero__aside { max-width: 26rem; padding-bottom: .5rem; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.hero__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem var(--gutter);
  background: var(--asphalt);
  font-size: .85rem; color: var(--smoke);
}

.rec { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; letter-spacing: .04em; color: var(--chalk); }
.rec__dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--buoy); animation: pulse 2s ease-in-out infinite; }
.rec__time { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--smoke); letter-spacing: .06em; }

@keyframes pulse { 50% { opacity: .25; } }

/* ---------- Trabajos ---------- */

.section__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .55rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--slab); background: transparent; color: var(--smoke);
  font: 500 .9rem/1 var(--f-body); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--chalk); border-color: var(--smoke); }
.chip[aria-pressed="true"] { background: var(--chalk); color: var(--asphalt); border-color: var(--chalk); }

.work {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 1.5vw, 1.25rem);
}

.card {
  position: relative; isolation: isolate; overflow: hidden;
  display: block; width: 100%; padding: 0; border: 0;
  border-radius: var(--r-sm);
  aspect-ratio: 16 / 10;
  background: var(--concrete); color: var(--chalk);
  text-align: left; font: inherit; text-decoration: none;
}
button.card, a.card { cursor: pointer; }
.card--feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 100%; }

.card__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 80% 15%, rgba(242,168,29,.22), transparent 55%),
    linear-gradient(135deg, var(--g1, #33291a), var(--g2, #181A1F));
}
.card__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
button.card:hover .card__img, a.card:hover .card__img { transform: scale(1.04); }

.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(24,26,31,.9), rgba(24,26,31,0) 55%);
}

.card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(.9rem, 2vw, 1.5rem); }
.card__title { font-weight: 600; font-size: 1.1rem; line-height: 1.25; }
.card--feature .card__title {
  font-family: var(--f-display); font-stretch: 62%; font-weight: 800;
  text-transform: uppercase; font-size: clamp(2rem, 4.5vw, 3.75rem); line-height: .95;
}
.card__meta { margin-top: .3rem; font-size: .88rem; color: var(--smoke); }

.card__play {
  position: absolute; top: .9rem; right: .9rem;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--buoy); color: var(--asphalt);
  transition: background-color .2s, transform .2s;
}
.card__play svg { width: 1rem; height: 1rem; margin-left: .12rem; }
button.card:hover .card__play, button.card:focus-visible .card__play { background: var(--chalk); transform: scale(1.08); }

.work__more { margin-top: 1.75rem; color: var(--smoke); }
.work__more a { color: var(--chalk); text-underline-offset: .2em; }
.work__more a:hover { color: var(--buoy); }

@media (max-width: 900px) {
  .work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--feature { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 560px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .card--feature { grid-column: auto; }
}

/* ---------- Servicios ---------- */

.services { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.services__intro { position: sticky; top: calc(var(--bar-h) + 2rem); }
.services__intro .lead { margin-top: 1.5rem; color: var(--smoke); }
.services__intro .h2, .contact__text .h2 { font-size: clamp(2.5rem, 5.2vw, 4.75rem); overflow-wrap: break-word; }
.services__intro, .contact__text, .services__list, .form { min-width: 0; }

.service {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem;
  padding-block: 1.5rem; border-top: 1px solid var(--slab);
}
.service:last-child { border-bottom: 1px solid var(--slab); }
.service__name { font-size: clamp(1.9rem, 3.4vw, 2.9rem); transition: color .2s; }
.service:hover .service__name { color: var(--buoy); }
.service p { color: var(--smoke); max-width: 32em; }

@media (min-width: 700px) {
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; align-items: baseline; }
}
@media (max-width: 900px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .services__intro { position: static; }
}

/* ---------- Cultura ---------- */

.section--culture { background: var(--concrete); }
.culture { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.culture__text .h2 { font-size: clamp(2.75rem, 7.5vw, 6rem); }
.culture__text .lead { margin-top: 2rem; }
.culture__text p + p { margin-top: 1rem; color: var(--smoke); max-width: 34em; }

.culture__viz {
  display: flex; align-items: flex-end; gap: 6px;
  height: clamp(160px, 28vw, 320px);
}
.culture__viz i {
  flex: 1; height: calc(var(--h, 50) * 1%);
  background: var(--buoy); border-radius: 3px 3px 0 0;
  transform-origin: bottom;
}
.culture__viz:hover i { animation: eq .9s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -70ms); }

@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

@media (max-width: 820px) { .culture { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Nosotros ---------- */

.about { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.about__text { max-width: 46rem; }
.about__text .lead { margin-top: 1.75rem; }
.about__text p + p { margin-top: 1rem; color: var(--smoke); max-width: 34em; }

.process__title { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.25rem; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { counter-increment: step; border-top: 1px solid var(--slab); padding-top: 1rem; display: grid; gap: .35rem; align-content: start; }
.step::before {
  content: counter(step);
  font-family: var(--f-display); font-stretch: 62%; font-weight: 800;
  font-size: 3rem; line-height: 1; color: var(--buoy);
}
.step strong { font-weight: 600; }
.step span { color: var(--smoke); font-size: .95rem; }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contacto ---------- */

.section--contact { background: var(--concrete); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__text .lead { margin-top: 1.5rem; color: var(--smoke); }
.contact__links { margin-top: 2rem; display: grid; gap: .9rem; justify-items: start; }
.contact__wa { display: flex; flex-wrap: wrap; gap: .75rem; }
.contact__links a:not(.btn) { color: var(--chalk); text-underline-offset: .2em; }
.contact__links a:not(.btn):hover { color: var(--buoy); }

.form {
  display: grid; gap: 1.1rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--asphalt); border-radius: var(--r-lg);
}
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field label { font-size: .9rem; font-weight: 500; }

.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem;
  background: var(--concrete); color: var(--chalk);
  border: 1px solid var(--slab); border-radius: var(--r-sm);
  font: inherit; line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--smoke); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--buoy); outline-offset: 1px; border-color: var(--buoy); }
.field input::placeholder { color: #70757e; }
.field input[type="date"] { color-scheme: dark; }
.field select { color-scheme: dark; }

.field__hint { margin-top: -.4rem; font-size: .85rem; color: var(--smoke); }

.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__submit { justify-self: start; padding: 1rem 1.9rem; }
.form__submit[disabled] { opacity: .6; cursor: wait; }

.form__status { min-height: 1.5rem; font-size: .95rem; }
.form__status.is-ok { color: var(--chalk); }
.form__status.is-error { color: #ff9b8a; }
.form__status a { color: inherit; text-underline-offset: .2em; }

@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */

.site-footer { padding-block: 3rem; border-top: 1px solid var(--slab); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.brand--footer { font-size: 1.6rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.site-footer__links a { color: var(--smoke); text-decoration: none; }
.site-footer__links a:hover { color: var(--buoy); }
.site-footer__copy { width: 100%; font-size: .85rem; color: var(--smoke); }

/* ---------- Reproductor ---------- */

.player { width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; background: transparent; color: var(--chalk); }
.player::backdrop { background: rgba(10, 11, 13, .88); }
.player__close {
  display: block; margin: 0 0 .75rem auto;
  padding: .55rem 1.1rem; border-radius: 999px;
  background: var(--chalk); color: var(--asphalt); border: 0;
  font: 600 .9rem/1 var(--f-body); cursor: pointer;
}
.player__frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-sm); overflow: hidden; }
.player__frame iframe { width: 100%; height: 100%; border: 0; }
.player__frame--vertical { aspect-ratio: 9 / 16; height: min(78vh, 740px); margin-inline: auto; }

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
