/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #1B2A22;
  color: #F1ECDA;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

:root {
  --dark:   #1B2A22;
  --dark2:  #223429;
  --cream:  #F1ECDA;
  --mid:    #7C9081;
  --dim:    #33473C;
  --acc:    #B8955A;
  --line:   rgba(241,236,218,.08);
  --max:    1100px;
}

/* ── REVEAL ── */
.r { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.r.on { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }

/* ─────────────────────────────
   NAV
───────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 58px;
  background: rgba(27,42,34,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.n-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 15px;
  letter-spacing: -.01em; color: var(--cream);
  text-transform: lowercase;
}
.n-links { display: flex; gap: 32px; list-style: none; }
.n-links a {
  font-size: 13px; color: var(--mid);
  transition: color .2s;
}
.n-links a:hover { color: var(--cream); }
.n-cta {
  font-size: 13px; font-weight: 500;
  text-transform: lowercase;
  background: var(--acc); color: var(--dark);
  padding: 8px 18px; border-radius: 100px;
  transition: opacity .2s;
}
.n-cta:hover { opacity: .85; }
.n-right { display: flex; align-items: center; gap: 14px; }
.n-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 0;
}
.n-burger span {
  display: block; width: 20px; height: 2px; background: var(--cream);
  transition: transform .2s, opacity .2s;
}
.n-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.n-burger.open span:nth-child(2) { opacity: 0; }
.n-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 620px) {
  nav { padding: 0 20px; }
  .n-burger { display: flex; }
  .n-links {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 58px; left: 0; right: 0;
    background: rgba(27,42,34,.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .n-links.open { max-height: 320px; }
  .n-links li { border-top: 1px solid var(--line); }
  .n-links a { display: block; padding: 16px 20px; font-size: 14px; }
}

/* ─────────────────────────────
   HERO
───────────────────────────── */
.hero {
  display: flex; flex-direction: column; justify-content: center;
  padding: 150px 48px 64px;
  position: relative;
}

/* subtle noise */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1.hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(52px, 9vw, 108px);
  line-height: .96;
  letter-spacing: -.03em;
  color: var(--cream);
  max-width: 900px;
  text-transform: lowercase;
}
.hero-disciplines {
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--mid);
  letter-spacing: -.005em;
  margin-top: 18px;
}

.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 52px; flex-wrap: wrap; gap: 24px;
}
.hero-sub {
  font-size: 15px; color: var(--mid); line-height: 1.7;
  max-width: 360px;
}
.hero-actions { display: flex; gap: 10px; }
.btn-w {
  font-size: 14px; font-weight: 500;
  background: var(--cream); color: var(--dark);
  padding: 12px 24px; border-radius: 100px;
  transition: background .2s;
}
.btn-w:hover { background: #fff; }
.btn-o {
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--dim); color: var(--mid);
  padding: 12px 24px; border-radius: 100px;
  transition: border-color .2s, color .2s;
}
.btn-o:hover { border-color: var(--mid); color: var(--cream); }

@media (max-width: 620px) {
  .hero { padding: 100px 20px 48px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
}

/* ─────────────────────────────
   RULE DIVIDER
───────────────────────────── */
.rule { height: 1px; background: var(--line); }

/* ─────────────────────────────
   SECCIÓN GENÉRICA
───────────────────────────── */
.s {
  max-width: var(--max); margin: 0 auto;
  padding: 56px 48px;
}
.s-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.s-tag {
  font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: lowercase;
  color: var(--mid);
}
.s-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: -.01em; color: var(--cream);
  text-transform: lowercase;
}
@media (max-width: 620px) { .s { padding: 44px 20px; } }

/* ─────────────────────────────
   SHOWREEL
───────────────────────────── */
.showreel-video { width: 100%; aspect-ratio: 16/9; max-height: 520px; border-radius: 8px; display: block; object-fit: cover; }

/* ─────────────────────────────
   TRABAJO / TARJETAS DE PROYECTO
───────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.wc {
  display: block;
  border-radius: 8px; overflow: hidden;
  background: var(--dark2);
  border: 1px solid var(--line);
  transition: transform .2s, border-color .2s;
}
.wc:hover, .wc:focus-visible { transform: scale(1.02); border-color: var(--dim); }
.wc:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.wc img, .wc-video {
  width: 100%; aspect-ratio: 16/10;
  object-fit: contain; background: var(--dark2);
  display: block;
  filter: brightness(.92);
  transition: filter .2s;
}
.wc:hover img, .wc:hover .wc-video { filter: brightness(1); }
.wc-body { padding: 16px 18px 20px; }
.wc-type {
  font-size: 10px; font-weight: 500; letter-spacing: .1em;
  text-transform: lowercase; color: var(--mid); margin-bottom: 5px;
}
.wc-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  color: var(--cream); text-transform: lowercase;
}
.wc-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--acc); margin-top: 10px;
  transition: gap .2s;
}
.wc:hover .wc-link { gap: 10px; }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }

/* ─────────────────────────────
   GALERÍAS (libro de prompts, proceso)
───────────────────────────── */
.s-intro {
  font-size: 15px; color: var(--mid); line-height: 1.7;
  max-width: 640px; margin-bottom: 40px;
}
.lp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.lp-item img {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover; border-radius: 8px;
  display: block;
  filter: brightness(.92);
  transition: filter .3s, transform .2s;
}
.lp-item:hover img { filter: brightness(1); transform: translateY(-3px); }
.lp-cap {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 10px;
}
.lp-num { font-size: 12px; color: var(--acc); font-weight: 500; }
.lp-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--cream);
  text-transform: lowercase;
}
@media (max-width: 800px) { .lp-grid { grid-template-columns: 1fr 1fr; } }

/* proceso: misma imagen, sin numerar, 3 columnas */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.proc-item img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: contain; background: var(--dark2);
  border-radius: 8px;
  display: block;
  filter: brightness(.92);
  transition: filter .3s, transform .2s;
}
.proc-item:hover img { filter: brightness(1); transform: translateY(-3px); }
.proc-item .lp-title { display: block; margin-top: 10px; }
@media (max-width: 700px) { .proc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .proc-grid { grid-template-columns: 1fr; } }

/* ─────────────────────────────
   SERVICIOS
───────────────────────────── */
.serv-list { display: flex; flex-direction: column; }
.sv {
  display: grid; grid-template-columns: 40px 1fr;
  gap: 24px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.sv:first-child { border-top: 1px solid var(--line); }
.sv-n { font-size: 12px; color: var(--acc); padding-top: 4px; font-weight: 500; }
.sv h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px; font-weight: 600;
  letter-spacing: -.01em; color: var(--cream);
  margin-bottom: 6px;
  text-transform: lowercase;
}
.sv p { font-size: 14px; color: var(--mid); line-height: 1.7; max-width: 520px; text-transform: lowercase; }
@media (max-width: 500px) { .sv { grid-template-columns: 28px 1fr; gap: 14px; } }

/* ─────────────────────────────
   SOBRE MÍ
───────────────────────────── */
.about-text {
  font-size: 20px; line-height: 1.65;
  color: rgba(240,237,232,.6);
  font-weight: 400;
  max-width: 640px;
}
.about-text strong { color: var(--cream); font-weight: 500; }
@media (max-width: 680px) {
  .about-text { font-size: 17px; }
}
.tl-list { display: flex; flex-direction: column; margin-top: 32px; }
.tl {
  display: grid; grid-template-columns: 40px 1fr;
  gap: 24px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.tl:first-child { border-top: 1px solid var(--line); }
.tl-n { font-size: 12px; color: var(--acc); padding-top: 3px; font-weight: 500; }
.tl h4 {
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 600;
  letter-spacing: -.01em; color: var(--cream);
  margin-bottom: 4px;
  text-transform: lowercase;
}
.tl p { font-size: 14px; color: var(--mid); line-height: 1.65; max-width: 560px; }
@media (max-width: 500px) { .tl { grid-template-columns: 28px 1fr; gap: 14px; } }

/* ─────────────────────────────
   PROCESO
───────────────────────────── */
.proc-list { display: flex; flex-direction: column; }
.pr {
  display: grid; grid-template-columns: 40px 1fr;
  gap: 24px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.pr:first-child { border-top: 1px solid var(--line); }
.pr-n { font-size: 12px; color: var(--acc); padding-top: 3px; font-weight: 500; }
.pr h4 {
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 600;
  letter-spacing: -.01em; color: var(--cream);
  margin-bottom: 4px;
  text-transform: lowercase;
}
.pr p { font-size: 14px; color: var(--mid); line-height: 1.65; max-width: 560px; text-transform: lowercase; }

/* ─────────────────────────────
   CONTACTO
───────────────────────────── */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.ct-left h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -.025em; line-height: 1; color: var(--cream);
  margin-bottom: 16px;
  text-transform: lowercase;
}
.ct-left p { font-size: 15px; color: var(--mid); line-height: 1.7; max-width: 360px; }
.ct-form { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; max-width: 420px; }
.ct-form[hidden] { display: none; }
.ct-field label {
  display: block; font-size: 10px; font-weight: 500; letter-spacing: .12em;
  text-transform: lowercase; color: var(--mid); margin-bottom: 8px;
}
.ct-field input, .ct-field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  color: var(--cream); font-family: 'Inter', sans-serif; font-size: 15px; padding: 8px 0 10px;
  outline: none; resize: vertical; transition: border-color .2s;
}
.ct-field input:focus, .ct-field textarea:focus { border-color: var(--acc); }
.ct-field textarea { min-height: 90px; }
.ct-submit {
  margin-top: 4px; background: var(--acc); color: var(--dark); border: none;
  padding: 14px; border-radius: 100px; font-size: 14px; font-weight: 500;
  font-family: 'Inter', sans-serif; cursor: pointer; transition: opacity .2s;
}
.ct-submit:hover { opacity: .85; }
.ct-confirm { font-size: 15px; color: var(--cream); line-height: 1.7; margin-top: 36px; max-width: 360px; }
.ct-right { display: flex; flex-direction: column; gap: 0; }
.ct-item {
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.ct-item:first-child { border-top: 1px solid var(--line); }
.ct-label {
  font-size: 10px; font-weight: 500; letter-spacing: .12em;
  text-transform: lowercase; color: var(--mid); margin-bottom: 8px;
}
.ct-val {
  font-family: 'Inter', sans-serif;
  font-size: 22px; font-weight: 600; letter-spacing: -.01em;
  color: var(--cream); display: block;
  transition: color .2s;
}
.ct-val:hover { color: var(--acc); }
@media (max-width: 680px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ─────────────────────────────
   FOOTER
───────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 24px 48px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--dim);
}
@media (max-width: 500px) {
  footer { flex-direction: column; gap: 4px; padding: 24px 20px; }
}

/* ─────────────────────────────
   PÁGINA DE PROYECTO (plantilla reutilizable)
───────────────────────────── */
.pd-head {
  max-width: var(--max); margin: 0 auto;
  padding: 150px 48px 0;
}
.pd-cats {
  font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: lowercase;
  color: var(--mid); margin-bottom: 16px;
}
.pd-media-wrap {
  max-width: var(--max); margin: 40px auto 0; padding: 0 48px;
}
.pd-sec {
  max-width: var(--max); margin: 0 auto;
  padding: 44px 48px;
}
.pd-sec .s-head { margin-bottom: 28px; padding-bottom: 16px; }
@media (max-width: 620px) { .pd-sec { padding: 36px 20px; } }
.pd-media-wrap video, .pd-media-wrap img {
  width: 100%; max-height: 78vh; object-fit: contain;
  background: #000; border-radius: 8px; display: block; margin: 0 auto;
}
.pd-meta-wrap {
  max-width: var(--max); margin: 20px auto 0; padding: 0 48px;
}
.pd-meta {
  font-size: 13px; color: var(--mid); letter-spacing: .02em;
}
.pd-role-line {
  font-size: 15px; color: var(--mid); line-height: 1.6;
}
.pd-videos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.pd-videos video {
  width: 100%; aspect-ratio: 16/9; object-fit: contain;
  border-radius: 8px; display: block; background: var(--dark2);
}
.pd-videos video.vertical { aspect-ratio: 9/16; }
@media (max-width: 700px) { .pd-videos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .pd-videos { grid-template-columns: 1fr; } }
.pd-back {
  display: inline-block; margin: 8px 0 0 48px;
  font-size: 14px; color: var(--mid); transition: color .2s;
}
.pd-back:hover { color: var(--cream); }
@media (max-width: 620px) {
  .pd-head { padding-top: 100px; }
  .pd-media-wrap { padding: 0 20px; }
  .pd-meta-wrap { padding: 0 20px; }
  .pd-back { margin-left: 20px; }
}
