/* Tipografía del logo. Poné los archivos en assets/fonts/ (ver LEEME.md). */
@font-face {
  font-family: "LazyDog";
  src: url("assets/fonts/LazyDog.woff2") format("woff2"),
       url("assets/fonts/LazyDog.otf") format("opentype"),
       url("assets/fonts/LazyDog.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-logo: "LazyDog", "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --paper: #FFFFFF;
  --ink: #011154;         /* azul de la marca */
  --mist: #5A64A0;        /* texto secundario */
  --tint: #ECEEF8;        /* fondos de portadas vacías */
  --line: rgba(1, 17, 84, .18);
  --deep: #011154;        /* base de la portada y del visor */
  --accent: #F100E0;      /* fucsia de la marca: solo acentos */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --font: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.viewer :focus-visible { outline-color: #fff; }

/* ---------- barra ---------- */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1.1rem var(--gutter);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}
.bar-nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.bar-nav a { text-decoration: none; font-size: .95rem; }
.bar-nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- portada ---------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(5rem, 8vw, 6rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
}
/* El reel se muestra entero, sin recortar, con margen blanco a los lados (JS ajusta la proporción). */
.hero-frame {
  --ratio: 1.3333;
  width: 90%;
  margin: 0 auto;
}
.hero-reel {
  aspect-ratio: var(--ratio);
  width: 100%;
  background: var(--tint);
  overflow: hidden;
}
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
/* En pantallas grandes el cuadro es más panorámico (16:9) para que entre todo en una pantalla; en celular queda 4:3. */
@media (min-width: 48rem) { .hero-reel { aspect-ratio: 16 / 9; } }
.hero-copy { margin-top: clamp(1.25rem, 3vw, 2rem); text-align: left; animation: enter 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-title { width: clamp(9.5rem, 34%, 22rem); max-width: 100%; margin: 0; }
.hero-tag { margin-top: 1rem; max-width: 26rem; }
.hero-title img { width: 100%; height: auto; }
@keyframes enter {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: none; }
}

/* ---------- pelis ---------- */
.films { padding: clamp(5rem, 12vw, 9rem) var(--gutter) clamp(3rem, 8vw, 6rem); }
.films-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* oculto a la vista, lo leen los lectores de pantalla */

.film-list { border-top: 1px solid var(--line); }
.film { border-bottom: 1px solid var(--line); }

.film-btn {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: .25rem 2rem;
  width: 100%;
  padding: clamp(1.1rem, 2.6vw, 2rem) 0;
  cursor: pointer;
  transition: opacity .25s ease;
}
.film-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.film-btn[aria-disabled="true"] { cursor: default; }

.film-name {
  font-size: clamp(2rem, 6.4vw, 6.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
  transition: color .2s ease;
}
.film-meta { color: var(--mist); text-align: right; white-space: nowrap; }

@media (hover: hover) and (min-width: 56rem) {
  .film-list:has(.film-btn:hover) .film-btn:not(:hover) { opacity: .32; }
  .film-btn:hover .film-name,
  .film-btn:focus-visible .film-name { color: var(--accent); }
}
@media (hover: none), (max-width: 55.99rem) {
  .film-meta { text-align: left; grid-column: 1 / -1; }
  .film-btn { grid-template-columns: 1fr; }
}

/* desplegable con los videos de cada boda */
.film-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2, .7, .2, 1); }
.film-panel.is-open { grid-template-rows: 1fr; }
.film-panel-inner { overflow: hidden; min-height: 0; }
.film-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, 13rem);
  gap: 1rem 1.25rem;
  padding: .25rem 0 clamp(1.5rem, 3vw, 2.25rem);
}
.vid { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; }
.vid:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.vid[aria-disabled="true"] { cursor: default; }
.vid-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--tint); overflow: hidden; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vid-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  z-index: 1;
  transition: background .2s ease;
}
.vid-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: .75rem;
  height: .85rem;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateX(.12rem);
  z-index: 2;
}
.vid-title { display: block; margin-top: .5rem; font-size: .95rem; transition: color .2s ease; }
@media (hover: hover) {
  .vid:not([aria-disabled="true"]):hover .vid-title { color: var(--accent); }
  .vid:not([aria-disabled="true"]):hover .vid-thumb img { transform: scale(1.03); }
  .vid:not([aria-disabled="true"]):hover .vid-thumb::before { background: var(--accent); }
  .vid:not([aria-disabled="true"]):hover .vid-thumb::after { background: #fff; }
}

@media (max-width: 40rem) { .film-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }

/* ---------- visor ---------- */
.viewer {
  width: min(100vw, 1600px);
  max-width: 100vw;
  max-height: 100svh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.viewer::backdrop { background: rgba(0, 6, 38, .96); }
.viewer[open] { display: grid; place-items: center; min-height: 100svh; }
.viewer-frame {
  width: min(94vw, calc((100svh - 6rem) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
}
.viewer-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.viewer-close {
  all: unset;
  position: fixed;
  top: 1.1rem;
  right: var(--gutter);
  z-index: 2;
  cursor: pointer;
  padding: .4rem .2rem;
}
.viewer-close:hover { text-decoration: underline; text-underline-offset: 5px; }


/* ---------- sobre mí ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  border-top: 1px solid var(--line);
}
.about-photo { aspect-ratio: 4 / 5; background: var(--tint); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo.is-empty img { display: none; }
.about-text { max-width: 36rem; }
.about-text h2 {
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.04em;
  margin-bottom: 1.75rem;
}
.about-text p + p { margin-top: 1.1rem; }
.about-text p { color: rgba(1, 17, 84, .88); }

@media (max-width: 47.99rem) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 11rem; }
}

/* ---------- contacto ---------- */
.contact {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
}
.contact-title {
  font-size: clamp(2.6rem, 9vw, 8rem);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.05em;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem clamp(1.5rem, 4vw, 3rem);
  max-width: 54rem;
}
.field { display: grid; gap: .4rem; }
.field-wide { grid-column: 1 / -1; }
.field label { color: var(--mist); font-size: .95rem; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: .5rem 0 .65rem;
  resize: vertical;
  transition: border-color .2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(1, 17, 84, .38); }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input:focus-visible,
.field textarea:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-bottom-color: #C23B22; }

.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.btn {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: 0;
  padding: .95rem 1.75rem;
  cursor: pointer;
  transition: background .2s ease;
}
.btn:hover { background: var(--accent); color: var(--ink); }
a.btn { display: inline-block; text-decoration: none; line-height: 1.6; }
.btn:disabled { opacity: .5; cursor: progress; }
.form-status { color: var(--mist); }

.contact-alt { margin-top: 2.5rem; color: var(--mist); }
.contact-alt a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }

@media (max-width: 40rem) {
  .form { grid-template-columns: 1fr; }
}

.brochure { padding: 0 var(--gutter) clamp(3rem, 7vw, 5rem); }
/* botón secundario: contorno, para distinguirlo de "Enviar consulta" */
.brochure .btn { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); transition: background .2s ease, box-shadow .2s ease; }
.brochure .btn:hover { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }

/* ---------- pie ---------- */
.foot {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem var(--gutter) 2rem;
  color: var(--mist);
  font-size: .9rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy { animation: none; }
  .film-btn, .btn, .bar, .field input, .field textarea { transition: none; }
}
