/* =========================================================================
   DISFRAME — estilos
   Colores y tipografías en :root, para cambiarlos en un solo sitio.
   ========================================================================= */

:root {
  --negro: #0b0d0c;
  --blanco: #ffffff;
  --gris: #8a8a8a;
  --fondo-claro: #ffffff;
  --fondo-oscuro: #0a120f; /* verde casi negro, como las páginas de vídeo del PDF */

  --font-logo: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-base: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 3.5vw, 48px);
  --header-h: clamp(64px, 9vw, 104px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
  min-height: 100%;
  font-family: var(--font-base);
  font-weight: 700;
  background: var(--fondo-oscuro);
  color: var(--blanco);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* "clip" no convierte el body en una caja con scroll propio */
}
body.light { background: var(--fondo-claro); color: var(--negro); }

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

/* ---------- Logo ---------- */
.logo {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  white-space: nowrap;
}
.logo .dis { -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.2px currentColor; }
.logo img { height: 1em; width: auto; }

/* ---------- Cabecera ---------- */
.header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
}
.header .logo { justify-self: start; }
.header.no-logo .logo { visibility: hidden; }

.nav { display: flex; gap: clamp(28px, 11vw, 160px); }
.nav a, .link {
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
  font-size: clamp(13px, 1.25vw, 16px);
  letter-spacing: -0.01em;
}
.nav a[aria-current="page"] { text-decoration-thickness: 3px; }
.home-btn { justify-self: end; display: grid; place-items: center; width: 32px; height: 32px; }
.home-btn svg { width: 26px; height: 26px; }
.header.no-home .home-btn { visibility: hidden; }

/* ---------- Vista a pantalla completa con foto de fondo ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: #111;
  color: var(--blanco);
}
.hero > .bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: zoom 14s var(--ease) both;
}
.hero::after { /* degradado para que se lea el texto */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.35), transparent 22%),
    linear-gradient(to top, rgba(0,0,0,.45), transparent 35%),
    linear-gradient(to right, rgba(0,0,0,.35), transparent 45%);
  pointer-events: none;
}
@keyframes zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero .menu {
  position: absolute; z-index: 5;
  left: var(--gutter);
  bottom: clamp(40px, 9vh, 96px);
  list-style: none;
  display: flex; flex-direction: column;
  gap: clamp(6px, 1.2vh, 14px);
}
.hero .menu a {
  font-size: clamp(20px, 2.6vw, 34px);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 2px;
  letter-spacing: -0.02em;
  display: inline-block;
  transition: transform .35s var(--ease), opacity .35s;
  opacity: 0; animation: up .6s var(--ease) forwards;
}
.hero .menu a:hover { transform: translateX(10px); }
.hero .menu li:nth-child(1) a { animation-delay: .10s; }
.hero .menu li:nth-child(2) a { animation-delay: .16s; }
.hero .menu li:nth-child(3) a { animation-delay: .22s; }
.hero .menu li:nth-child(4) a { animation-delay: .28s; }
.hero .menu li:nth-child(5) a { animation-delay: .34s; }
.hero .menu li:nth-child(6) a { animation-delay: .40s; }
.hero .menu li:nth-child(7) a { animation-delay: .46s; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Etiquetas de esquina (cliente / sesión) */
.corner {
  position: absolute; z-index: 5;
  bottom: clamp(20px, 4vh, 40px);
  font-size: clamp(14px, 1.5vw, 19px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.corner.left { left: var(--gutter); }
.corner.right { right: var(--gutter); text-align: right; }
.ig-link { display: inline-flex; align-items: center; gap: .45em; color: inherit; text-decoration: none; transition: opacity .2s; }
.ig-link svg { width: 1.05em; height: 1.05em; flex: none; }
.ig-link:hover { opacity: .7; }
.ig-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
.home .logo-bottom {
  position: absolute; z-index: 5;
  left: var(--gutter); bottom: clamp(20px, 4vh, 40px);
  font-size: clamp(44px, 7vw, 92px);
}

/* Botón "VER FOTOS" y flecha de la portada de cada sesión */
.see-photos {
  position: absolute; z-index: 6;
  left: 50%; bottom: clamp(20px, 4vh, 40px);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: clamp(12px, 1.1vw, 14px);
  letter-spacing: .18em;
  color: var(--blanco);
  text-decoration: none;
  padding: 8px 12px;
}

/* Página de fotos: la galería ocupa la pantalla, centrada en vertical */
.gallery-wrap.photos-page {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--header-h) + 8px);
  padding-bottom: clamp(24px, 4vh, 40px);
}
.photos-page .slider figure { height: min(64vh, 700px); }
.photos-page.is-grid { justify-content: flex-start; }
.gallery-labels a { text-decoration: none; }
.gallery-labels a:hover { text-decoration: underline; }
.see-photos { flex-direction: row; gap: 8px; }
.see-photos svg { width: 18px; height: 18px; animation: bob-arrow 1.8s ease-in-out infinite; }
.see-photos:hover { text-decoration: underline; text-underline-offset: .3em; }
@keyframes bob-arrow { 50% { transform: translateX(4px); } }

.scroll-hint {
  position: absolute; z-index: 5; left: 50%; bottom: 18px;
  transform: translateX(-50%);
  font-size: 11px; letter-spacing: .2em; opacity: .7;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 5px); } }

/* ---------- Galerías ---------- */
.gallery-wrap {
  background: var(--fondo-claro);
  color: var(--negro);
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(72px, 9vw, 110px);
}

/* Slider: fila de fotos con flechas */
.slider {
  display: flex;
  gap: clamp(16px, 4vw, 64px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 var(--gutter);
  scrollbar-width: none;
  cursor: grab;
  outline: none;
}
.slider::-webkit-scrollbar { display: none; }
.slider.dragging { cursor: grabbing; user-select: none; }
.slider.dragging img { pointer-events: none; }
.slider figure {
  flex: 0 0 auto;
  height: min(68vh, 640px);
}
.slider img {
  height: 100%; width: auto;
  object-fit: cover;
  -webkit-user-drag: none;
}

/* Barra fina que indica cuánto queda de galería */
.progress {
  margin: clamp(24px, 3vw, 36px) var(--gutter) 0;
  height: 2px;
  background: rgba(0, 0, 0, .1);
}
.progress span {
  display: block; height: 100%; width: 8%;
  background: var(--negro);
  transition: width .15s linear;
}

.arrow {
  position: absolute; z-index: 6; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  transition: opacity .2s, transform .2s;
}
.arrow svg { width: 22px; height: 22px; }
.arrow.prev { left: calc(var(--gutter) - 10px); }
.arrow.next { right: calc(var(--gutter) - 10px); }
.arrow:hover { transform: translateY(-50%) scale(1.15); }
.arrow[disabled] { opacity: .15; pointer-events: none; }

/* Grid: cuadrícula de 3 columnas (Polarnova) */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 5vw, 72px) clamp(16px, 4vw, 56px);
  padding: 0 clamp(16px, 7vw, 120px);
}
.grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; cursor: zoom-in; }

.gallery-labels {
  display: flex; justify-content: space-between;
  padding: clamp(32px, 5vw, 56px) var(--gutter) 0;
  font-size: clamp(14px, 1.5vw, 19px);
  text-transform: uppercase;
}

figure img, .grid img {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
figure img.loaded, .grid img.loaded { opacity: 1; transform: none; }

/* ---------- Visor (lightbox) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5, 6, 6, .96);
  display: none; place-items: center;
  color: var(--blanco);
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox .close { position: absolute; top: 18px; right: var(--gutter); font-size: 13px; letter-spacing: .1em; text-decoration: underline; }
.lightbox .count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 12px; opacity: .7; }

/* ---------- Vídeo ---------- */
.stage {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 8px) calc(var(--gutter) + 56px) 96px;
}
.player {
  width: min(100%, 1100px, calc((100svh - var(--header-h) - 120px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  overflow: hidden;
}
.player > iframe, .player > video, .player > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.player > video { object-fit: contain; } /* el vídeo se ve entero, sin recortes */
/* Vídeo vertical suelto (p. ej. el reel de Copao) */
.player.vertical {
  aspect-ratio: 9 / 16;
  width: auto;
  height: calc(100svh - var(--header-h) - 120px);
  max-width: 100%;
}
.player .soon, .reel .soon {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 12px; letter-spacing: .25em;
  background: rgba(0,0,0,.35);
  color: #fff;
  text-align: center;
}
.stage .corner { position: absolute; }
.stage .arrow { color: currentColor; }

/* Reels verticales (redes sociales) */
.reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 5vw, 64px);
  width: min(100%, 980px);
}
.reel {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #e9e7e4;
  overflow: hidden;
}
.reel > video, .reel > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.reel .soon { background: transparent; color: var(--gris); }

/* ---------- Sobre mí ---------- */
.about {
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 32px) var(--gutter) 64px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  color: var(--negro);
}
.about img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.about h1 { font-size: clamp(18px, 1.8vw, 22px); margin-bottom: 18px; letter-spacing: -0.01em; }
.about p {
  font-weight: 400;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.55;
  text-align: justify;
  hyphens: auto;
  margin-bottom: 1.2em;
  max-width: 62ch;
}
.about .logo { margin-top: 24px; color: var(--negro); }
.contact { margin-top: 40px; }
.contact h2 { font-size: clamp(16px, 1.5vw, 19px); margin-bottom: 26px; }
.contact a {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; margin-bottom: 20px;
  font-size: clamp(15px, 1.3vw, 18px);
  width: fit-content;
}
.contact a:hover span { text-decoration: underline; }
.contact svg { width: 30px; height: 30px; flex: none; }

/* ---------- Transición entre vistas ---------- */
#app { animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  .header {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    height: auto;
    padding-top: 16px;
    row-gap: 14px;
  }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 0; }
  .home-btn { grid-column: 2; grid-row: 1; }
  .header.no-logo { grid-template-columns: 1fr; }
  .header.no-logo .logo, .header.no-logo .home-btn { display: none; }
  .header.no-logo .nav { grid-row: 1; }
  :root { --header-h: 104px; }

  .slider figure, .photos-page .slider figure { height: 58vh; }
  .slider img { max-width: 78vw; } /* así asoma la siguiente foto e invita a deslizar */
  .grid { grid-template-columns: repeat(2, 1fr); padding: 0 var(--gutter); }

  .stage { padding: calc(var(--header-h) + 8px) var(--gutter) 88px; }
  .stage .arrow { top: auto; bottom: 22px; transform: none; }
  .stage .arrow.prev { left: 50%; margin-left: -50px; }
  .stage .arrow.next { right: 50%; margin-right: -50px; }
  .stage .arrow:hover { transform: none; }
  .stage .corner { bottom: 60px; }
  .player { width: 100%; }
  .reels { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .reel { scroll-snap-align: center; }

  .about { grid-template-columns: 1fr; }
  .about img { max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  figure img, .grid img { opacity: 1; transform: none; }
}
