/* =========================================================
   ALTIVA — Agencia de Modelos
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0f0d10;
  --bg-alt: #17141a;
  --bg-alt-2: #1d1922;
  --line: #2a252e;
  --text: #f3eeea;
  --text-muted: #9c94a0;
  --accent: #ff2451;
  --accent-soft: #ff5470;
  --gold: #c9a15a;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1320px;
  --maxw-wide: 1680px;
  --pad: clamp(16px, 3.4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.wrap-wide {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.bleed {
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

/* ---------- Typography helpers ---------- */

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; }

.display-1 {
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.display-2 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.02;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.lede {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.6;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 13, 16, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease;
}

/* Pages with a full-viewport hero (currently: home) get an overlay header
   that starts transparent on top of the hero image and solidifies on scroll. */
body.has-hero-full .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
body.has-hero-full .site-header.scrolled {
  background: rgba(15, 13, 16, 0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand span { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--text); }

.main-nav a.active { color: var(--text); }

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.nav-cta {
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-cta:hover { border-color: var(--accent); background: rgba(255, 36, 81, 0.08); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .mobile-nav {
    display: none;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    padding: 16px var(--pad);
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 1rem;
  }
  .mobile-nav a.active { color: var(--text); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #100a0d;
}
.btn-primary:hover { background: var(--accent-soft); transform: translateY(-1px); }

.btn-outline {
  border-color: var(--line);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--text-muted); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero (interior pages, no full-bleed image) ---------- */

.hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-tag {
  font-size: 0.95rem;
  color: var(--gold);
  font-style: italic;
  font-family: var(--serif);
}

.hero h1 { margin: 18px 0 26px; }
.hero h1 em { color: var(--accent); font-style: italic; }

.hero-stats {
  display: flex;
  gap: 36px;
  text-align: right;
}
.hero-stats .num { font-family: var(--serif); font-size: 2rem; }
.hero-stats .label { font-size: 0.78rem; color: var(--text-muted); }

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ---------- Hero full-bleed (homepage) ---------- */

.hero-full {
  position: relative;
  height: 100svh;
  min-height: 620px;
  max-height: 980px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 12% 100%, rgba(255,36,81,0.20), transparent 55%),
    radial-gradient(90% 70% at 85% 0%, rgba(201,161,90,0.14), transparent 60%),
    linear-gradient(175deg, #201a24 0%, #120f14 48%, #0b0a0c 100%);
}

.hero-bg::before {
  /* subtle photographic grain, no external image needed */
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,10,12,0.92) 0%, rgba(11,10,12,0.35) 42%, transparent 68%);
}

.hero-mark {
  position: absolute;
  top: 0; right: 0;
  width: min(56vw, 760px);
  height: 100%;
  z-index: -1;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  width: 100%;
  padding: 0 var(--pad) clamp(48px, 7vh, 96px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-full .hero-tag {
  display: inline-block;
  margin-bottom: 20px;
  padding: 7px 16px;
  border: 1px solid rgba(243,238,234,0.25);
  border-radius: 999px;
  font-size: 0.82rem;
  font-family: var(--sans);
  font-style: normal;
  color: var(--text);
}

.hero-full h1 { margin: 0 0 22px; }
.hero-full h1 em { color: var(--accent); font-style: italic; }

.hero-full .lede { color: rgba(243,238,234,0.72); }

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  text-align: right;
}

.hero-scroll {
  position: absolute;
  bottom: 22px;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  color: rgba(243,238,234,0.6);
}
.hero-scroll .line {
  width: 1px;
  height: 30px;
  background: rgba(243,238,234,0.4);
  animation: scrollpulse 2.2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll .line { animation: none; }
}

@media (max-width: 760px) {
  .hero-inner { align-items: flex-start; flex-direction: column; }
  .hero-side { align-items: flex-start; text-align: left; }
  .hero-scroll { display: none; }
}

/* ---------- Section scaffolding ---------- */

section { padding: 72px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.see-all {
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.see-all:hover { border-color: var(--text); }

/* ---------- Placeholder tiles (stand-ins for real photos) ---------- */

.tile-ph {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  transition: transform 0.3s ease;
}

.model-card:hover .tile-ph,
a.tile-ph:hover { transform: translateY(-3px) scale(1.015); }

.tile-ph::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad, linear-gradient(155deg, #3a1620, #17141a 70%));
  z-index: -2;
}

.tile-ph::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 55%);
  z-index: -1;
}

.tile-initial {
  position: absolute;
  top: 14px; left: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  opacity: 0.8;
}

/* palette rotation for placeholders */
.g1 { --grad: linear-gradient(155deg, #4a1224, #17141a 75%); }
.g2 { --grad: linear-gradient(155deg, #3a2a12, #17141a 75%); }
.g3 { --grad: linear-gradient(155deg, #1a2b3a, #17141a 75%); }
.g4 { --grad: linear-gradient(155deg, #2e1a3a, #17141a 75%); }
.g5 { --grad: linear-gradient(155deg, #123a2f, #17141a 75%); }
.g6 { --grad: linear-gradient(155deg, #3a1212, #17141a 75%); }

/* ---------- Model grid ---------- */

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.model-grid.wide { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 980px) { .model-grid, .model-grid.wide { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .model-grid, .model-grid.wide { grid-template-columns: repeat(2, 1fr); } }

.model-card { display: block; }

.model-meta {
  padding: 12px 2px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.model-name { font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
.model-role { font-size: 0.76rem; color: var(--text-muted); text-align: right; }

.badge-new {
  position: absolute;
  top: 14px; right: 16px;
  background: var(--accent);
  color: #100a0d;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  z-index: 1;
}

/* ---------- Latest uploads (mixed video/photo) ---------- */

.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .latest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .latest-grid { grid-template-columns: 1fr; } }

.latest-card { display: block; }

.latest-grid .tile-ph,
.latest-grid .video-thumb {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  transition: transform 0.25s ease;
}
.latest-card:hover .tile-ph,
.latest-card:hover .video-thumb { transform: translateY(-4px); }

.latest-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-video { background: var(--accent); color: #100a0d; }
.tag-photo { background: var(--gold); color: #100a0d; }

.latest-meta { padding: 12px 2px 0; }
.latest-title {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.25;
}
.latest-time { font-size: 0.76rem; color: var(--text-muted); }

/* ---------- Category tiles ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cat-card {
  background: var(--bg);
  padding: 34px 28px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.15s ease;
}
.cat-card:hover { background: var(--bg-alt); }

.cat-card h3 { font-size: 1.5rem; font-style: italic; margin-bottom: 10px; }
.cat-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.cat-count { font-size: 0.78rem; color: var(--gold); margin-top: 18px; }

@media (max-width: 860px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Stats strip ---------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}
.stats-strip .num { font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--accent); }
.stats-strip .label { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; }

@media (max-width: 680px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Quote ---------- */

.quote-block {
  max-width: 780px;
}
.quote-block blockquote {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.25;
}
.quote-cite { color: var(--text-muted); font-size: 0.9rem; }
.quote-cite strong { color: var(--text); font-weight: 600; }

/* ---------- CTA band ---------- */

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-top .brand { display: block; margin-bottom: 12px; }
.footer-top p { color: var(--text-muted); font-size: 0.9rem; max-width: 32ch; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 14px;
}
.footer-col a, .footer-col li { display: block; font-size: 0.92rem; margin-bottom: 10px; color: var(--text-muted); list-style: none; padding: 0; }
.footer-col a:hover { color: var(--text); }

.footer-form { display: flex; gap: 8px; margin-top: 6px; }
.footer-form input {
  flex: 1;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.85rem;
}
.footer-form input::placeholder { color: var(--text-muted); }
.footer-form button {
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Page header (interior pages) ---------- */

.page-head {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-head .lede { margin-top: 16px; }

/* ---------- Filters ---------- */

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-pill {
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--text-muted);
  background: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.filter-pill:hover { color: var(--text); border-color: var(--text-muted); }
.filter-pill.active { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }

/* ---------- Video grid ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.video-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad, linear-gradient(155deg, #3a1620, #17141a 75%));
}
.play-btn {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(243,238,234,0.92);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.video-thumb:hover .play-btn { transform: scale(1.08); }
.play-btn svg { width: 18px; height: 18px; margin-left: 3px; }

.video-duration {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(15,13,16,0.8);
  color: var(--text);
  font-size: 0.72rem;
  padding: 3px 7px;
  border-radius: 3px;
}

.video-card h3 { font-family: var(--serif); font-style: italic; font-size: 1.1rem; margin-top: 12px; }
.video-card .video-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Photo masonry ---------- */

.photo-grid {
  columns: 4 220px;
  column-gap: 18px;
}
.photo-grid .tile-ph {
  break-inside: avoid;
  margin-bottom: 18px;
  width: 100%;
}
.photo-grid .r1 { aspect-ratio: 3/4; }
.photo-grid .r2 { aspect-ratio: 1/1; }
.photo-grid .r3 { aspect-ratio: 4/5; }
.photo-grid .r4 { aspect-ratio: 3/5; }

.photo-cap {
  position: absolute;
  bottom: 12px; left: 14px; right: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.photo-cap strong { color: var(--text); font-weight: 500; display: block; font-family: var(--serif); font-style: italic; font-size: 1rem; }

/* ---------- Model profile modal-ish detail (categorias / modelos extras) ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

.pillar-list { margin-top: 20px; }
.pillar-list li {
  list-style: none;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.pillar-list li:last-child { border-bottom: 1px solid var(--line); }
.pillar-list .p-title { font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.pillar-list .p-desc { color: var(--text-muted); font-size: 0.88rem; max-width: 34ch; text-align: right; }

@media (max-width: 620px) {
  .pillar-list li { flex-direction: column; gap: 6px; }
  .pillar-list .p-desc { text-align: left; }
}

/* ---------- Team grid (about) ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.team-card .tile-ph { aspect-ratio: 1/1; }
.team-card .model-name { font-size: 1.05rem; }

/* ---------- Timeline (about) ---------- */

.timeline { margin-top: 20px; }
.timeline li {
  list-style: none;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .t-year { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.2rem; }
.timeline h3 { font-size: 1.1rem; font-style: italic; margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Contact card (about) ---------- */

.contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 40px;
  border-radius: 6px;
}
.contact-card .row { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.contact-card .row:first-of-type { border-top: none; }
.contact-card .row span:first-child { color: var(--text-muted); }
