/* ══════════════════════════════════════════
   MOTOGRAPHY650 — Portfolio visual
   Sistema de diseño compartido
   ══════════════════════════════════════════ */

@font-face {
  font-family: 'Marlboro';
  src: url('assets/Marlboro.ttf') format('truetype');
  font-display: swap;
}

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

:root {
  --yellow:    #F7BA00;
  --yellow2:   #FFCC33;
  --charcoal:  #3D3D3D;
  --charcoal2: #2A2A2A;
  --cream:     #F2ECDB;
  --white:     #FFFFFF;
  --black:     #141414;
  --muted:     #8A8477;

  --font-display: 'Marlboro', Georgia, serif;
  --font-body:    'Archivo', -apple-system, sans-serif;

  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--yellow); }

/* ── UTILITIES ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 56px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; display: block; width: 26px; height: 3px; background: var(--yellow); }

.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--yellow);
  padding: 5px 12px;
  border-radius: var(--radius);
}
.tag.tag-dark { background: var(--charcoal); color: var(--yellow); }
.tag.tag-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.55); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  word-spacing: -0.19em;
  color: var(--charcoal);
}

.section-title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--charcoal);
  opacity: 0.72;
  max-width: 560px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  border: none;
}
.btn-primary { background: var(--yellow); color: var(--charcoal); }
.btn-primary:hover { transform: translateY(-2px); background: var(--yellow2); }
.btn-dark { background: var(--charcoal); color: var(--yellow); }
.btn-dark:hover { transform: translateY(-2px); background: var(--charcoal2); }
.btn-outline { background: transparent; border: 1.5px solid var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--yellow); }
.btn-outline-light { background: transparent; border: 1.5px solid rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--charcoal); }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 24px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: rgba(61,61,61,0.14); }
.nav-logo { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 76px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  word-spacing: -0.19em;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--yellow);
  transition: right 0.2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--charcoal); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 201; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--charcoal); transition: all 0.25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 88px; left: 0; right: 0; bottom: 0;
  background: var(--cream);
  padding: 32px 24px;
  z-index: 199;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--charcoal);
  text-decoration: none;
  word-spacing: -0.19em;
}

/* ── PAGE HERO (subpages) ── */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background: var(--charcoal);
  overflow: hidden;
  padding-top: 88px;
}
.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.15) 0%, rgba(20,20,20,0.75) 100%);
}
.page-hero-content { position: relative; z-index: 2; padding-bottom: 64px; width: 100%; }
.page-hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  color: var(--white);
  max-width: 900px;
}
.page-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 520px;
  margin-top: 16px;
  line-height: 1.7;
}

/* ── FOOTER ── */
footer { background: var(--charcoal); color: var(--cream); padding: 56px 0 28px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(242,236,219,0.14);
}
.footer-word { font-family: var(--font-display); font-size: 2rem; color: var(--yellow); word-spacing: -0.19em; }
.footer-channels { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-channels a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.85;
}
.footer-channels a:hover { opacity: 1; color: var(--yellow); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.78rem;
  opacity: 0.6;
}

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ══ HOME ══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--charcoal);
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.68;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.35) 0%, rgba(20,20,20,0.35) 40%, rgba(20,20,20,0.88) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 140px 24px 64px;
  width: 100%;
}
.hero-word {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  color: var(--yellow);
  line-height: 0.92;
  letter-spacing: 0.005em;
  word-spacing: -0.19em;
}
.hero-tagline {
  color: var(--white);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 560px;
  margin-top: 22px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

.split-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.strip-panel {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  text-decoration: none;
}
.strip-panel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.strip-panel:hover img { transform: scale(1.05); }
.strip-panel::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0) 40%, rgba(20,20,20,0.85) 100%);
}
.strip-content { position: relative; z-index: 2; padding: 36px; color: var(--white); }
.strip-content .tag { margin-bottom: 12px; }
.strip-content h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--white); }
.strip-content p { color: rgba(255,255,255,0.82); font-size: 0.92rem; margin-top: 8px; max-width: 360px; }

/* ── HOME: split-strip as the landing hero ── */
.split-strip-home { grid-template-columns: 1fr 1fr; }
.split-strip-home .strip-panel { min-height: 80vh; }
.split-strip-home .strip-panel-wide { grid-column: 1 / -1; min-height: 42vh; }
.split-strip-home .strip-content { padding: 0 32px 72px; max-width: 400px; }
.split-strip-home .strip-content .tag { font-size: 0.78rem; padding: 6px 14px; }
.split-strip-home .strip-content h3 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-top: 6px; }
.split-strip-home .strip-content p { font-size: clamp(0.9rem, 1.1vw, 1rem); max-width: 340px; margin-top: 14px; }
.strip-cta {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Featured photo grid (home) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 8px;
}
.feature-grid a { position: relative; overflow: hidden; border-radius: var(--radius); text-decoration: none; display: block; }
.feature-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.feature-grid a:hover img { transform: scale(1.06); }
.feature-grid .f-big { grid-column: span 2; grid-row: span 2; }

/* ══ GALERÍAS index ══ */
.gallery-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.gallery-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: block;
  aspect-ratio: 4/5;
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0) 45%, rgba(20,20,20,0.88) 100%);
}
.gallery-card-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px; color: var(--white); }
.gallery-card-content .tag { margin-bottom: 12px; }
.gallery-card-content h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--white); }
.gallery-card-content p { color: rgba(255,255,255,0.78); font-size: 0.85rem; margin-top: 6px; }
.gallery-card-soon {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--surface, #E4DCC6);
  border: 1.5px dashed rgba(61,61,61,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}
.gallery-card-soon span { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.8rem; color: var(--muted); }

/* ── PROSE (descripciones largas de proyecto) ── */
.prose { max-width: 720px; }
.prose p { color: var(--charcoal); opacity: 0.85; line-height: 1.85; margin-bottom: 18px; font-size: 1.02rem; }
.prose p:last-child { margin-bottom: 0; }

/* ══ GALERÍA individual — masonry editorial ══ */
.photo-grid {
  column-count: 3;
  column-gap: 8px;
}
.photo-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  background: var(--charcoal);
  margin: 0 0 8px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.photo-grid img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }
.photo-grid figure:hover img { transform: scale(1.03); }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,20,20,0.96);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(242,236,219,0.1);
  border: 1px solid rgba(242,236,219,0.3);
  color: var(--cream);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: background 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--yellow); color: var(--charcoal); border-color: var(--yellow); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-count {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(242,236,219,0.7); font-size: 0.82rem; letter-spacing: 0.06em;
}

/* ══ VIDEOS ══ */
.yt-embed-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden;
  background: var(--charcoal); margin-bottom: 24px; text-decoration: none; display: block;
}
.yt-embed-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-play-lg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(20,20,20,0.25); transition: background 0.2s; }
.yt-embed-wrap:hover .yt-play-lg { background: rgba(20,20,20,0.45); }
.yt-play-lg-btn { width: 76px; height: 76px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 28px rgba(0,0,0,0.4); transition: transform 0.2s; }
.yt-embed-wrap:hover .yt-play-lg-btn { transform: scale(1.08); }
.yt-thumbnails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.yt-thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; text-decoration: none; display: block; background: var(--charcoal); }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.yt-thumb:hover img { transform: scale(1.06); }
.yt-thumb-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(20,20,20,0.28); }
.yt-play { width: 40px; height: 40px; background: var(--yellow); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ══ SOBRE MÍ ══ */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.about-portrait { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { color: var(--charcoal); opacity: 0.85; line-height: 1.85; margin-bottom: 18px; font-size: 1.02rem; }
.about-channels { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.about-channel {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--white); border-radius: var(--radius);
  text-decoration: none; color: var(--charcoal); border: 1px solid rgba(61,61,61,0.12);
  transition: border-color 0.2s, background 0.2s;
}
.about-channel:hover { border-color: var(--yellow); background: var(--yellow); }
.about-channel-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; }
.about-channel-value { font-size: 0.95rem; font-weight: 600; }
.about-channel-arrow { font-family: var(--font-display); font-size: 1.2rem; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo img { height: 48px; }
  .split-strip { grid-template-columns: 1fr; }
  .split-strip-home .strip-panel { min-height: 70vh; }
  .split-strip-home .strip-panel-wide { min-height: 45vh; }
  .split-strip-home .strip-content { padding: 0 28px 48px; }
  .split-strip-home .strip-content h3 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .feature-grid .f-big { grid-column: span 2; grid-row: span 1; }
  .photo-grid { column-count: 2; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-portrait { max-width: 340px; }
  .yt-thumbnails { grid-template-columns: 1fr 1fr; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .lightbox { padding: 16px; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .yt-thumbnails { grid-template-columns: 1fr; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .photo-grid { column-count: 1; }
}
