/* ──────────────────────────────────────────────────────────────────────────
   Manuel Hernández — En medio de la mitad
   Tokens y reset
   ────────────────────────────────────────────────────────────────────────── */
:root {
  --ink: #111111;
  --ink-70: rgba(17,17,17,0.72);
  --ink-50: rgba(17,17,17,0.50);
  --ink-30: rgba(17,17,17,0.28);
  --ink-12: rgba(17,17,17,0.12);
  --paper: #fafaf8;
  --paper-warm: #f4f2ec;
  --rule: rgba(17,17,17,0.14);
  --ink-dark: #0e0e0d;
  --paper-dark: #f4f2ec;
  --font: "Inter", "Söhne", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "kern";
  /* Sticky footer: el footer queda al fondo del viewport en páginas
     con poco contenido (Inicio, Contacto) sin afectar a páginas largas. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
img { -webkit-user-drag: none; user-select: none; max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

@keyframes mh-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mh-rise    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Reveal on scroll */
.mh-reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.mh-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mh-reveal { opacity: 1; transform: none; transition: none; }
}

/* ──────────────────────────────────────────────────────────────────────────
   NAV
   ────────────────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 56px 22px;
  border-bottom: 0.5px solid var(--rule);
}
.nav__brand {
  font-size: 15;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink-50);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .3s ease, border-color .3s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ──────────────────────────────────────────────────────────────────────────
   Tipografía utilitaria
   ────────────────────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.eyebrow--wide { letter-spacing: 0.22em; }
.eyebrow--inv { color: rgba(244,242,236,0.5); letter-spacing: 0.2em; }

.h2 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 24px 0 0;
  line-height: 1.1;
}
.h2--m { font-size: 36px; margin: 0; }
.dim { color: var(--ink-50); }

.cta-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-70);
  text-decoration: none;
  align-self: flex-start;
  margin-top: 40px;
}
.cta-line__rule {
  width: 28px; height: 1px; background: var(--ink); display: inline-block;
  transition: width .3s ease;
}
.cta-line:hover .cta-line__rule { width: 40px; }
.cta-line--ink { color: var(--ink); letter-spacing: 0.14em; }

/* ──────────────────────────────────────────────────────────────────────────
   Section host
   ────────────────────────────────────────────────────────────────────────── */
.section { background: var(--paper); color: var(--ink); }

/* ──────────────────────────────────────────────────────────────────────────
   HOME
   ────────────────────────────────────────────────────────────────────────── */
.home {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 720px;
}
.home__col { padding: 110px 64px 96px; }
.home__col--text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.home__col--art {
  background: var(--paper-warm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.home__title {
  font-size: 88px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 38px 0 0;
  text-wrap: balance;
}
.home__quote {
  margin-top: 56px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-70);
  max-width: 380px;
  font-style: italic;
}
.home__author {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-50);
}

/* Rotator (HeroRotator) */
.rotator {
  width: 100%;
  height: 460px;
  position: relative;
}
.rotator__stage {
  position: relative;
  width: 100%;
  height: 100%;
}
.rotator__slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 40px;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.rotator__slide.is-active { opacity: 1; }
.rotator__slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.25);
}
.rotator__captions {
  position: absolute;
  left: 0; right: 0;
  bottom: -54px;
  text-align: center;
  font-family: var(--font);
  height: 44px;
}
.rotator__caption {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  font-size: 12px;
  color: var(--ink-70);
  letter-spacing: 0.04em;
}
.rotator__caption.is-active { opacity: 1; }
.rotator__caption-title {
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ──────────────────────────────────────────────────────────────────────────
   PRESENTACIÓN
   ────────────────────────────────────────────────────────────────────────── */
.presentacion {
  padding: 72px 56px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
}
.presentacion__lede {
  margin-top: 32px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-70);
  max-width: 360px;
}
.dl {
  margin: 0;
  font-size: 12px;
  color: var(--ink-70);
  display: grid;
  grid-template-columns: 88px 1fr;
  row-gap: 10px;
  column-gap: 12px;
}
.dl dt { color: var(--ink-50); letter-spacing: 0.08em; margin: 0; }
.dl dd { margin: 0; }
.dl--rule {
  margin-top: 48px;
  border-top: 0.5px solid var(--rule);
  padding-top: 24px;
}
.dl--big {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  grid-template-columns: 108px 1fr;
  row-gap: 18px;
  column-gap: 16px;
  padding-top: 28px;
}
.dl--big dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: center;
}
.dl--big dd a {
  text-decoration: none;
  border-bottom: 0.5px solid var(--ink-30);
  padding-bottom: 2px;
  transition: border-color .25s ease;
}
.dl--big dd a:hover { border-bottom-color: var(--ink); }

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #1a1a18;
  overflow: hidden;
  text-decoration: none;
}
.poster__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity .5s ease, transform 4s ease;
}
.poster:hover .poster__bg { opacity: 0.75; transform: scale(1.02); }
.poster__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.poster__play > div {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(244,242,236,0.85);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s ease, border-color .3s ease;
}
.poster:hover .poster__play > div {
  background: rgba(244,242,236,0.08);
  border-color: rgba(244,242,236,1);
}
.poster__triangle {
  width: 0; height: 0;
  margin-left: 4px;
  border-left: 12px solid #f4f2ec;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.poster__timecode {
  position: absolute;
  left: 20px; bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,242,236,0.75);
}
.poster__meta {
  margin-top: 16px;
  font-size: 11px;
  color: var(--ink-50);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
}

/* ──────────────────────────────────────────────────────────────────────────
   GALERÍA
   ────────────────────────────────────────────────────────────────────────── */
.galeria__head {
  padding: 56px 56px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.galeria__count {
  font-size: 12px;
  color: var(--ink-50);
  letter-spacing: 0.06em;
}
.galeria {
  padding: 24px 56px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.galeria__col { display: flex; flex-direction: column; gap: 36px; }
.figura { margin: 0; cursor: zoom-in; }
.figura__wrap {
  background: var(--paper-warm);
  padding: 18px;
  display: flex;
  justify-content: center;
  transition: transform .4s ease, box-shadow .4s ease;
  will-change: transform, box-shadow;
}
.figura:hover .figura__wrap {
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.18);
  transform: translateY(-2px);
}
.figura__wrap img { width: 100%; height: auto; }
.figura__cap {
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-70);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.figura__cap-title { font-style: italic; color: var(--ink); }
.figura__cap-size { flex: 0 0 auto; }

/* ──────────────────────────────────────────────────────────────────────────
   LIGHTBOX
   ────────────────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink-dark);
  color: var(--paper-dark);
  font-family: var(--font);
  display: flex; flex-direction: column;
  animation: mh-fade-in .4s ease;
}
.lightbox[hidden] { display: none; }
.lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  border-bottom: 0.5px solid rgba(244,242,236,0.1);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.lightbox__counter { color: rgba(244,242,236,0.55); }
.lightbox__title-bar {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lightbox__close {
  background: transparent;
  border: 0;
  color: var(--paper-dark);
  cursor: pointer;
  width: 22px; height: 22px;
  position: relative;
  padding: 0;
}
.lightbox__close span {
  position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid currentColor;
}
.lightbox__close span:nth-child(1) { transform: rotate(45deg); }
.lightbox__close span:nth-child(2) { transform: rotate(-45deg); }
.lightbox__main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: 0;
}
.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
  min-height: 0;
}
.lightbox__img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,0.8);
  animation: mh-fade-in .5s ease;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: rgba(244,242,236,0.85);
  font-size: 28px;
  cursor: pointer;
  padding: 8px 14px;
  transition: color .25s ease;
}
.lightbox__nav:hover { color: #fff; }
.lightbox__nav--prev { left: 28px; }
.lightbox__nav--next { right: 28px; }
.lightbox__aside {
  border-left: 0.5px solid rgba(244,242,236,0.1);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.lightbox__title {
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  margin: 16px 0 0;
  letter-spacing: -0.01em;
  line-height: 1.15;
  animation: mh-fade-in .5s ease;
}
.lightbox__dl {
  margin-top: 36px;
  font-size: 12px;
  color: rgba(244,242,236,0.7);
  display: grid;
  grid-template-columns: 92px 1fr;
  row-gap: 12px;
  column-gap: 12px;
}
.lightbox__dl dt {
  color: rgba(244,242,236,0.45);
  letter-spacing: 0.06em;
  margin: 0;
}
.lightbox__dl dd { margin: 0; }
.lightbox__hint {
  font-size: 11px;
  color: rgba(244,242,236,0.4);
  letter-spacing: 0.06em;
}
.lightbox__hint b { color: var(--paper-dark); font-weight: 400; }

/* ──────────────────────────────────────────────────────────────────────────
   CONTACTO
   ────────────────────────────────────────────────────────────────────────── */
.contacto {
  padding: 72px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contacto__social {
  margin-top: 48px;
  display: flex;
  gap: 22px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.contacto__social a {
  text-decoration: none;
  border-bottom: 0.5px solid var(--ink-30);
  padding-bottom: 3px;
  transition: border-color .25s ease, color .25s ease;
}
.contacto__social a:hover {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.form {
  background: var(--paper-warm);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.field input,
.field textarea {
  border: 0;
  border-bottom: 0.5px solid var(--ink-30);
  background: transparent;
  resize: none;
  padding: 6px 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease;
}
.field input:focus,
.field textarea:focus { border-bottom-color: var(--ink); }
.btn-ink {
  margin-top: 12px;
  align-self: flex-start;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 14px 24px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font);
  cursor: pointer;
  transition: background .25s ease;
}
.btn-ink:hover { background: #000; }
.btn-ink[disabled] { opacity: 0.55; cursor: progress; }

/* Honeypot: visualmente oculto pero accesible al DOM */
.field-honey {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form__msg {
  margin: 6px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-70);
  min-height: 1.4em;
}
.form__msg.is-ok    { color: #166534; }   /* verde sobrio */
.form__msg.is-error { color: #991b1b; }   /* rojo sobrio */

/* ──────────────────────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────────────────────── */
.footer {
  padding: 28px 56px 22px;          /* mismo padding que .nav */
  border-top: 0.5px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  color: var(--ink-50);
  letter-spacing: 0.04em;
  margin-top: auto;                 /* empuja el footer al fondo del viewport */
}
.footer__right { display: flex; gap: 18px; }

/* ──────────────────────────────────────────────────────────────────────────
   VIDEO MODAL (YouTube embed)
   ────────────────────────────────────────────────────────────────────────── */
.video-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(14,14,13,0.96);
  display: flex; align-items: center; justify-content: center;
  padding: 56px;
  animation: mh-fade-in .35s ease;
}
.video-modal[hidden] { display: none; }
.video-modal__frame {
  position: relative;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,0.8);
  animation: mh-rise .5s ease;
}
.video-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-modal__close {
  position: absolute;
  top: 24px; right: 28px;
  width: 28px; height: 28px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--paper-dark);
}
.video-modal__close span {
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px solid currentColor;
}
.video-modal__close span:nth-child(1) { transform: rotate(45deg); }
.video-modal__close span:nth-child(2) { transform: rotate(-45deg); }
.video-modal__close:hover { color: #fff; }

/* poster meta como links */
.poster__meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 0.5px solid transparent;
  transition: border-color .25s ease, color .25s ease;
}
.poster__meta a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink-30);
}

/* ──────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────────────────── */

/* Tablet 720–1080px: padding lateral reducido, galería 2 columnas */
@media (max-width: 1080px) {
  .nav { padding: 24px 32px 18px; }
  .home__col { padding: 80px 32px 72px; }
  .home__title { font-size: 72px; }
  .presentacion,
  .contacto { padding: 56px 32px; gap: 48px; }
  .galeria__head { padding: 48px 32px 20px; }
  .galeria { padding: 20px 32px 56px; grid-template-columns: 1fr 1fr; gap: 28px; }
  .galeria__col { gap: 28px; }
  .footer { padding: 24px 32px 18px; }
}

/* Mobile <720px: una sola columna en todas las secciones */
@media (max-width: 720px) {
  .nav {
    padding: 18px 22px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 12px; }

  .home { grid-template-columns: 1fr; min-height: 0; }
  .home__col { padding: 56px 22px 40px; }
  .home__col--art { padding: 24px 22px 88px; }
  .home__title { font-size: 56px; }
  .home__quote { font-size: 14px; max-width: none; }
  .rotator { height: 360px; }
  .rotator__captions { bottom: -64px; }

  .presentacion,
  .contacto {
    grid-template-columns: 1fr;
    padding: 48px 22px;
    gap: 40px;
  }
  .h2 { font-size: 32px; }
  .h2--m { font-size: 28px; }

  .galeria__head { padding: 40px 22px 16px; }
  .galeria { padding: 16px 22px 48px; grid-template-columns: 1fr; gap: 28px; }

  .form { padding: 28px 22px; }

  .footer {
    padding: 18px 22px 14px;
    flex-direction: column;
    gap: 8px;
  }
  .footer__right { gap: 10px; }

  /* Lightbox: aside debajo en móvil */
  .lightbox__head { padding: 16px 18px; font-size: 11px; }
  .lightbox__title-bar { display: none; }
  .lightbox__main {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  .lightbox__stage { padding: 24px 18px; }
  .lightbox__nav { font-size: 24px; padding: 6px 10px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__aside {
    border-left: 0;
    border-top: 0.5px solid rgba(244,242,236,0.1);
    padding: 22px 18px;
  }
  .lightbox__title { font-size: 22px; }
  .lightbox__dl { margin-top: 18px; }

  .video-modal { padding: 18px; }
  .video-modal__close { top: 12px; right: 14px; }
}
