/* ==========================================================
   Felipe Reutter — Portfolio (recreado del diseño original)
   Negro + blanco · Montserrat en títulos · fondo de estrellas
   ========================================================== */

:root {
  --ink: #000;
  --paper: #fff;
  --muted: rgba(255,255,255,.74);
  --line: rgba(255,255,255,.32);
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-weight: 400; color: var(--paper); background: var(--ink); line-height: 1.62; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-size: 1.12rem; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Top bar ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: #000; display: flex; align-items: center; justify-content: space-between; padding: 0 1.8rem; height: 66px; border-bottom: 1px solid var(--line); }
.topbar__brand { font-family: var(--display); font-size: 1.05rem; letter-spacing: .05em; font-weight: 500; }
.menu-btn { background: none; border: 0; padding: .4rem; display: flex; }
.menu-btn__icon { display: flex; flex-direction: column; gap: 6px; }
.menu-btn__icon span { width: 26px; height: 3px; background: var(--paper); display: block; }
.menu-btn.open .menu-btn__icon span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn.open .menu-btn__icon span:nth-child(2) { opacity: 0; }
.menu-btn.open .menu-btn__icon span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.dropdown { position: absolute; top: 66px; right: 1.2rem; left: auto; width: 290px; background: #0d0d0d; border: 1px solid var(--line); display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.4rem 1.4rem; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .22s ease; }
.dropdown.open { transform: none; opacity: 1; visibility: visible; }
.dropdown a { font-family: var(--display); font-size: 1.15rem; padding: .42rem 0; }
.dropdown a:hover { color: #bbb; }
.dropdown__close { display: none; position: absolute; top: .8rem; right: 1rem; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; }

/* ---------- Redes fijas derecha ---------- */
.social-rail { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; gap: 1.5rem; padding: 1rem; }
.social-rail a { display: flex; }
.social-rail a svg { width: 30px; height: 30px; }
.social-rail a:hover { opacity: .6; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: flex-end; position: relative; padding: 0 0 13vh 2.4rem; padding-top: 66px; overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 30%, rgba(0,0,0,.85)); }
.hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.hero__name { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: .01em; text-transform: uppercase; }
.hero__watch { background: none; border: 0; color: var(--paper); font-family: var(--display); font-size: 1.5rem; display: flex; align-items: center; gap: 1.1rem; padding: .5rem 0; }
.hero__watch span { font-size: 1.8rem; transition: transform .2s; }
.hero__watch:hover span { transform: translateX(7px); }

/* ---------- Section line ---------- */
.section-line { display: flex; align-items: center; gap: 1.2rem; padding: 0 2rem; margin: 2.6rem 0 2.8rem; }
.section-line::before, .section-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.section-title { font-family: var(--display); font-weight: 300; letter-spacing: .04em; font-size: clamp(1.8rem, 4.5vw, 2.6rem); text-transform: uppercase; padding: 0 1.4rem; }
.connect { margin-top: 3.8rem; }

/* ---------- Featured Work (vídeo de fondo de estrellas) ---------- */
.videos { position: relative; overflow: hidden; padding: 1rem 0 4.5rem; }
.videos-bg, .videos__tint { position: absolute; inset: 0; z-index: 0; }
.videos-bg { width: 100%; height: 100%; object-fit: cover; }
.videos__tint { background: rgba(0,0,0,.14); }
.videos .section-line { position: relative; z-index: 1; }

.player { display: flex; align-items: center; gap: 1.2rem; max-width: 1080px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }
.player__stage { flex: 1; aspect-ratio: 16 / 9; background: #000; border: 1px solid rgba(255,255,255,.5); }
.player__arrow { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%; background: rgba(0,0,0,.4); border: 1.5px solid rgba(255,255,255,.55); color: var(--paper); font-size: 1.9rem; line-height: 1; transition: all .2s; }
.player__arrow:hover { background: var(--paper); color: #000; }

/* Swap en el reproductor */
.swipe { position: relative; width: 100%; height: 100%; background: #000 center / cover no-repeat; cursor: pointer; }
.swipe__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.88); color: #000; border: 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 26px rgba(0,0,0,.45); padding-left: 4px; }

/* Tira de miniaturas (scrolleable, pequeñas, alta calidad) */
.thumbs { display: flex; gap: .55rem; overflow-x: auto; max-width: 1080px; margin: 1.7rem auto 0; padding: 0 2rem .6rem; position: relative; z-index: 1; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: 0 0 110px; aspect-ratio: 16 / 10; background: #000 no-repeat center / cover; border: 2px solid rgba(255,255,255,.35); border-radius: 2px; display: block; }
.thumb.active { border-color: #fff; }
.thumb:hover { border-color: #fff; }

/* Prev / Next */
.reel-ctl { display: flex; justify-content: center; gap: 2.6rem; margin-top: 1.4rem; position: relative; z-index: 1; }
.ctl { background: none; border: 0; color: var(--paper); font-family: var(--display); font-size: 1.25rem; letter-spacing: .06em; display: inline-flex; align-items: center; gap: .6rem; text-transform: uppercase; }
.ctl:hover { color: #bbb; }

/* All videos */
.allvids { display: none; position: relative; z-index: 1; margin: 1.6rem auto 0; background: none; border: 1px solid var(--line); color: var(--paper); font-family: var(--display); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; padding: .85rem 1.8rem; border-radius: 999px; transition: all .2s; }
.allvids:hover { background: #fff; color: #000; }

/* Lista "Todos los vídeos" (negra) */
.vidlist { position: fixed; inset: 0; z-index: 200; display: none; }
.vidlist.open { display: block; }
.vidlist__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.96); }
.vidlist__panel { position: relative; z-index: 1; max-width: 560px; height: 100%; margin: 0 auto; padding: 4.5rem 1.4rem 2.5rem; overflow-y: auto; }
.vidlist__close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: 1px solid var(--line); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem; }
.vidlist__items { display: flex; flex-direction: column; gap: 1.2rem; }
.vidlist__item { display: flex; align-items: center; gap: 1rem; background: none; border: 0; color: var(--paper); text-align: left; padding: 0; }
.vidlist__item-thumb { flex: 0 0 150px; aspect-ratio: 16 / 10; background: #000 center / cover no-repeat; border: 1px solid var(--line); border-radius: 2px; }
.vidlist__item-label { font-family: var(--display); font-size: 1rem; letter-spacing: .03em; }

/* ---------- Photography (scroll) ---------- */
.gallery-section { padding-bottom: 4.5rem; }
.gallery { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.gallery__grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 250px); grid-auto-columns: 190px; gap: .8rem; overflow-x: auto; scroll-behavior: smooth; padding-bottom: .8rem; scrollbar-width: none; }
.gallery__grid::-webkit-scrollbar { display: none; }
.gallery__cell { position: relative; overflow: hidden; background: #0a0a0a; cursor: pointer; }
.gallery__cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__cell:hover img { transform: scale(1.05); }
.gallery__next, .gallery__prev { margin-top: 1.4rem; width: 54px; height: 54px; border-radius: 50%; background: #000; border: 1.5px solid var(--line); color: var(--paper); font-size: 1.3rem; transition: all .2s; }
.gallery__next:hover, .gallery__prev:hover { background: var(--paper); color: #000; }
.gallery__next { float: right; }
.gallery__prev { float: right; margin-right: .8rem; }

/* ---------- About (parallax) ---------- */
.about { padding-bottom: 2rem; }
.about__scene { position: relative; width: 100%; min-height: 580px; display: flex; align-items: center; justify-content: center; background: url('../media/bio-bg.jpg') center center / cover no-repeat fixed; }
.about__scene::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.about__wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 3rem; max-width: 1080px; width: 100%; padding: 3.5rem 2rem; }
.about__shot { flex: 0 0 280px; }
.about__shot img { width: 100%; border: 1px solid rgba(255,255,255,.35); }
.about__text { flex: 1; max-width: 540px; font-size: 1.12rem; }
.about__text p { margin-bottom: 1rem; }
.mail { display: inline-block; margin-top: .5rem; text-decoration: underline; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact { max-width: 780px; margin: 0 auto; padding: 0 2rem 3.5rem; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form input, .form textarea { font-family: var(--font); font-size: 1.1rem; color: #000; background: #fff; border: 1px solid transparent; padding: 1rem 1.1rem; outline: none; }
.form textarea { resize: vertical; }
.form__submit { align-self: flex-start; font-family: var(--display); font-size: 1.05rem; color: #fff; background: #000; border: 1.5px solid var(--paper); padding: .95rem 2.6rem; transition: all .2s; letter-spacing: .04em; text-transform: uppercase; }
.form__submit:hover { background: #fff; color: #000; }
.form__status { min-height: 1.4em; font-size: 1rem; }
.form__status.ok { color: #8fce9e; }
.form__status.err { color: #e08b8b; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 2.6rem 1.6rem; font-size: .84rem; color: var(--muted); letter-spacing: .05em; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 2rem; pointer-events: none; }
.lightbox.open { pointer-events: auto; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.95); }
.lightbox__img { position: relative; max-width: 84vw; max-height: 84vh; object-fit: contain; }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; cursor: pointer; }
.lightbox__close { top: 1.2rem; right: 1.4rem; width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; font-size: 1.7rem; }
.lightbox__nav--prev { left: 1.2rem; }
.lightbox__nav--next { right: 1.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .topbar { padding: 0 1.2rem; height: 56px; }
  .topbar__brand { font-size: .78rem; }
  .dropdown { top: 0; right: 0; left: 0; width: 100%; height: 100vh; background: #000; align-items: center; justify-content: center; gap: 1.1rem; padding: 0; text-align: center; border: none; transform: none; }
  .dropdown.open { transform: none; }
  .dropdown a { font-size: 1.6rem; }
  .dropdown__close { display: block; }
  .social-rail { display: none; }
  .gallery { padding: 0 1.2rem; }
  .gallery__grid { grid-template-rows: repeat(2, 210px); grid-auto-columns: 150px; }
  .player { padding: 0 1rem; gap: .6rem; }
  .player__arrow { width: 42px; height: 42px; font-size: 1.3rem; }
  .thumbs { padding: 0 1.2rem .6rem; }
  .hero { padding-left: 1.2rem; padding-bottom: 10vh; }
  .hero__name { font-size: clamp(1.6rem, 9vw, 2.5rem); }
  .hero__watch { font-size: 1.2rem; }
  .about__scene { background-attachment: scroll; min-height: auto; }
  .about__wrap { flex-direction: column; padding: 2.4rem 1.2rem; }
  .about__shot { flex-basis: auto; width: 72%; }
  .about__text { font-size: 1.04rem; }
  .section-line { padding: 0 1rem; margin: 2rem 0 2.2rem; }
  .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .form__row { grid-template-columns: 1fr; }
  .swipe__imgwrap { display: block; }
  .swipe__play { display: flex; }
  .swipe__iframe { display: none; }
  .swipe.play .swipe__iframe { display: block; }
  .swipe.play .swipe__imgwrap, .swipe.play .swipe__play { display: none; }
  .allvids { display: block; }
}


/* Visor de vídeo a pantalla completa */
.vplay { position: fixed; inset: 0; z-index: 300; display: none; }
.vplay.open { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.vplay__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.97); }
.vplay__frame { position: relative; width: min(1000px, 96vw); aspect-ratio: 16 / 9; background: #000; }
.vplay__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vplay__close { position: absolute; top: 1rem; right: 1.2rem; width: 46px; height: 46px; border-radius: 50%; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 1.2rem; z-index: 2; cursor: pointer; }

/* Reproductor web: el vídeo embebido llena el marco */
.player__stage iframe { width: 100%; height: 100%; border: 0; display: block; }
