/* Tres14 Marketing · #TheMarketingLab · tres14mkt.com */

:root {
  --bg: #080808;
  --surface: #111111;
  --surface-2: #181818;
  --line: #262626;
  --text: #f3f3f3;
  --muted: #9a9a9a;
  --pink: #F20988;
  --lime: #9fec00;
  --grape: #6633cd;
  --lemon: #e8ff02;
  --accent: var(--pink);

  --display: 'Archivo Black', 'Arial Black', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 4px; }

/* Watermark isotipo, fixed */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: url('../assets/img/isotipo.png') no-repeat center / min(70vw, 720px);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(40px, 7.2vw, 88px); }
h2 { font-size: clamp(30px, 4.6vw, 52px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
p { margin: 0 0 1em; }

.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow::before { content: '#'; opacity: .6; margin-right: 2px; }

.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 46ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: #ff2a9e; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn svg { width: 20px; height: 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,8,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav .btn { padding: 10px 18px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 24px;
    transform: translateY(-120%); transition: transform .25s ease;
  }
  .nav.open { transform: none; }
  .nav a { padding: 12px 0; font-size: 18px; width: 100%; }
  .nav .btn { margin-top: 10px; width: auto; }
}

/* Sections */
section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }

/* Hero */
.hero { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero h1 { max-width: 15ch; }
.hero h1 .hl { color: var(--pink); }
.hero .lead { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Showreel */
.reel { margin-top: clamp(48px, 7vw, 88px); }
.reel-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface) center / cover no-repeat;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(242, 9, 136, .35);
}
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(8,8,8,.1), rgba(8,8,8,.55));
  border: 0; cursor: pointer; color: #fff;
}
.reel-play span {
  display: grid; place-items: center;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--pink);
  transition: transform .2s ease;
}
.reel-play:hover span { transform: scale(1.08); }
.reel-play svg { width: 34px; height: 34px; margin-left: 5px; }
.reel-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* Production chain — signature */
.chain { padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.chain ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.chain li {
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  display: grid; gap: 4px;
  position: relative;
}
.chain li:last-child { border-right: 0; }
.chain li::after {
  content: '→'; position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  color: var(--pink); font-weight: 700; background: var(--surface); padding: 0 3px; font-size: 14px;
}
.chain li:last-child::after { content: none; }
.chain small { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .12em; }
.chain strong { font-weight: 600; font-size: 15px; }
@media (max-width: 900px) {
  .chain ol { grid-template-columns: repeat(3, 1fr); }
  .chain li:nth-child(3n) { border-right: 0; }
  .chain li:nth-child(3n)::after { content: none; }
  .chain li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .chain ol { grid-template-columns: repeat(2, 1fr); }
  .chain li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .chain li:nth-child(2n) { border-right: 0; }
  .chain li:nth-child(3n) { border-right: 1px solid var(--line); }
  .chain li:nth-child(2n)::after { content: none; }
  .chain li:nth-child(3n)::after { content: '→'; }
  .chain li:nth-last-child(-n+2) { border-bottom: 0; }
}

/* Nosotros */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-copy p { font-size: clamp(18px, 1.9vw, 21px); }
.about-copy p strong { color: var(--text); }
.about-copy p { color: var(--muted); }
.pillars { display: grid; gap: 14px; }
.pillar {
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.pillar h3 { font-size: 18px; margin-bottom: 6px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }
.pillar--pink { border-left: 4px solid var(--pink); }
.pillar--lime { border-left: 4px solid var(--lime); }
.pillar--grape { border-left: 4px solid var(--grape); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service {
  padding: 28px 26px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 12px; align-content: start;
  transition: border-color .2s ease, transform .2s ease;
}
.service:hover { border-color: var(--pink); transform: translateY(-3px); }
.service .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.service h3 { font-size: 21px; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.cofepris {
  margin-top: 40px; padding: 28px 30px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(242,9,136,.14), rgba(102,51,205,.14));
  border: 1px solid rgba(242,9,136,.35);
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
}
.cofepris .badge {
  font-family: var(--display); font-size: 14px; letter-spacing: .06em;
  padding: 10px 14px; border: 1.5px solid var(--pink); border-radius: 10px; color: var(--pink);
}
.cofepris p { margin: 0; color: var(--text); }
@media (max-width: 560px) { .cofepris { grid-template-columns: 1fr; } }

/* Clientes */
.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.client {
  padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  display: grid; gap: 18px;
}
.client-logo { height: 84px; display: grid; place-items: start; }
.client-logo img { max-height: 84px; width: auto; max-width: 260px; object-fit: contain; }
.client h3 { font-size: 20px; }
.client p { margin: 0; color: var(--muted); font-size: 15px; }
.client .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .clients { grid-template-columns: 1fr; } }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member {
  display: grid; gap: 14px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); padding-bottom: 22px;
  transition: transform .2s ease, border-color .2s ease;
}
.member:hover { transform: translateY(-4px); border-color: var(--member, var(--pink)); }
.member figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface-2); }
.member figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .3s ease; }
.member:hover figure img { filter: none; }
.member .who { padding: 0 20px; display: grid; gap: 2px; }
.member .role { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--member, var(--pink)); }
.member .name { font-weight: 600; font-size: 17px; }
.member .nick { color: var(--muted); font-size: 14px; }
.member .more { padding: 0 20px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .team { grid-template-columns: 1fr; } }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contact-list li { border-top: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list .v { font-size: 18px; font-weight: 500; }
.contact-list .v a:hover { color: var(--pink); }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; font-size: 13px; color: var(--muted); position: relative; z-index: 1; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a:hover { color: var(--text); }

/* Team subpage */
.card-page { min-height: calc(100vh - 72px); display: grid; align-items: center; padding: clamp(48px, 6vw, 96px) 0; }
.card {
  display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--surface);
}
.card figure { margin: 0; height: 100%; min-height: 440px; background: var(--surface-2); }
.card figure img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0; display: grid; gap: 18px; }
.card-body .eyebrow { color: var(--member, var(--pink)); margin: 0; }
.card-body h1 { font-size: clamp(34px, 5vw, 60px); }
.card-body .nick { color: var(--muted); font-size: 18px; margin-top: -8px; }
.card-body .bio { color: var(--muted); font-size: 17px; }
.card-body .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.card-body .back { font-size: 14px; color: var(--muted); }
.card-body .back:hover { color: var(--text); }
@media (max-width: 820px) {
  .card { grid-template-columns: 1fr; }
  .card figure { min-height: 0; aspect-ratio: 4 / 5; }
  .card-body { padding: 28px; }
}

/* Legal page */
.legal { max-width: 760px; padding: clamp(48px, 6vw, 96px) 0; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; font-family: var(--body); font-weight: 700; }
.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal .placeholder { color: #f2a900; font-style: italic; font-weight: 700; }

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