/* ════════════════════════════════════════════
   NEON STUDIO — design system
   Canvas: deep navy · Accent: warm amber
   Type: Playfair Display (display) · DM Sans (body/labels)
   ════════════════════════════════════════════ */
:root {
  --bg: #1B2030;
  --bg-raise: #232a3d;
  --line: rgba(245, 237, 228, 0.09);
  --line-strong: rgba(245, 237, 228, 0.16);
  --text: #F5EDE4;
  --muted: #8B8FA3;
  --accent: #E8913A;
  --accent-soft: #F2A468;
  --dark: #10111d;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--dark); }
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Typography primitives ── */
.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--accent { color: var(--accent); }
.serif { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--accent-soft); letter-spacing: 0; }

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
}
.title-lg {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 34em; }
.lead strong, .body-text strong { color: var(--text); font-weight: 500; }
.body-text { color: var(--muted); max-width: 38em; }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ══════════ NAV ══════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(27, 32, 48, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity 0.3s; }
.nav.scrolled::before { opacity: 1; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.03em; text-decoration: none;
}
.logo-accent { color: var(--accent); font-weight: 500; letter-spacing: 0.14em; font-size: 0.7em; text-transform: uppercase; margin-left: 2px; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: 0.92rem; color: var(--muted);
  transition: color 0.2s; position: relative; padding: 4px 0;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  text-decoration: none; font-size: 0.88rem; font-weight: 600;
  color: var(--dark); background: var(--accent);
  padding: 10px 22px; border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--accent-soft); }

/* Mobile menu */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; position: relative; z-index: 102;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--text);
  margin: 5px auto; transition: transform 0.3s, opacity 0.3s;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; background: var(--bg);
    flex-direction: column; justify-content: center; gap: 8vh;
    transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
    z-index: 101;
  }
  .nav.open .nav-links { transform: none; }
  .nav-links a { font-size: 1.6rem; font-family: var(--font-display); font-weight: 600; color: var(--text); }
  .nav-cta { display: none; }
}

/* ══════════ BUTTONS ══════════ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 16px 32px; border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--accent { background: var(--accent); color: var(--dark); }
.btn--accent:hover { background: var(--accent-soft); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn .arr { transition: transform 0.25s; }
.btn:hover .arr { transform: translate(3px, -3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 3px;
  transition: border-color 0.2s;
}
.link-arrow:hover { border-color: var(--accent); }

/* ══════════ HERO ══════════ */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 150px 0 60px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 110px); align-items: center;
}
.hero-copy .label { margin-bottom: 26px; display: block; }
.hero h1 { max-width: 12em; }
.hero .lead { margin-top: 32px; }
.hero-actions { margin-top: 44px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

.hero-fig { margin: 0; }
.hero-fig-frame {
  aspect-ratio: 4 / 5; max-height: min(66vh, 620px); width: 100%;
  overflow: hidden; border-radius: 10px; border: 1px solid var(--line);
}
.hero-fig img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.5) sepia(0.25) contrast(1.05) brightness(0.85);
}
.hero-fig figcaption { margin-top: 14px; display: flex; justify-content: space-between; gap: 16px; }

.hero-meta {
  margin-top: 72px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.hero-meta .label { letter-spacing: 0.14em; }

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 140px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-fig-frame { aspect-ratio: 16 / 10; max-height: none; }
  .hero-meta { margin-top: 56px; }
}

/* Page hero (interior pages) */
.page-hero { padding: 190px 0 70px; }
.page-hero .label { display: block; margin-bottom: 22px; }
.page-hero .lead { margin-top: 26px; }

/* ══════════ SECTIONS ══════════ */
.section { padding: 110px 0; }
.section--line { border-top: 1px solid var(--line); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-bottom: 64px; flex-wrap: wrap;
}
.section-head .label { display: block; margin-bottom: 18px; }

/* ══════════ WORK / PROJECT FRAMES ══════════ */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 40px); }
.work-item { grid-column: span 6; text-decoration: none; }
.work-item--wide { grid-column: span 12; }
@media (max-width: 760px) { .work-item, .work-item--wide { grid-column: span 12; } }

.frame {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.work-item:hover .frame { border-color: var(--line-strong); transform: translateY(-4px); }
.frame-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.frame-bar i:first-child { background: var(--accent); opacity: 0.6; }
.frame-bar .frame-url {
  font-family: var(--font-body); font-size: 0.68rem; color: var(--muted);
  margin-left: 12px; letter-spacing: 0.04em;
}
.frame-body { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.frame-body img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: grayscale(0.5) sepia(0.2) contrast(1.06) brightness(0.9);
  transition: filter 0.45s ease, transform 0.45s ease, clip-path 0.95s cubic-bezier(0.65, 0, 0.35, 1);
}
.frame-body::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(16,17,29,0.12), rgba(16,17,29,0.38));
  transition: opacity 0.45s ease;
}
.work-item:hover .frame-body img { filter: none; transform: scale(1.02); }
.work-item:hover .frame-body::after { opacity: 0; }
.frame-body--empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(245,237,228,0.015) 14px 28px),
    var(--bg-raise);
}
.frame-body--empty .label { letter-spacing: 0.18em; }
.work-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.work-caption h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.work-caption .label { flex-shrink: 0; }

/* ══════════ SERVICE ROWS (index teaser) ══════════ */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 90px 1.1fr 1.6fr auto;
  gap: clamp(16px, 3vw, 48px); align-items: center;
  padding: 42px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: padding-left 0.25s;
}
.row:hover { padding-left: 14px; }
.row-num { font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em; }
.row h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600; letter-spacing: -0.01em; }
.row p { color: var(--muted); font-size: 0.95rem; max-width: 30em; }
.row .arr { font-size: 1.3rem; color: var(--muted); transition: transform 0.25s, color 0.25s; }
.row:hover .arr { transform: translate(4px, -4px); color: var(--accent); }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; gap: 10px; padding: 32px 0; }
  .row .arr { display: none; }
}

/* ══════════ SERVICE BLOCKS (servicios page) ══════════ */
.svc { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 90px); padding: 84px 0; border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; padding-top: 20px; }
.svc-head .label { display: block; margin-bottom: 16px; }
.svc-head h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; }
.svc-price { margin-top: 28px; }
.svc-price strong { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; }
.svc-price span { color: var(--muted); font-size: 0.9rem; }
.svc-body .body-text { margin-bottom: 30px; }
.svc-list { list-style: none; border-top: 1px solid var(--line); }
.svc-list li {
  padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line);
  position: relative; font-size: 0.95rem;
}
.svc-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-size: 0.85rem; }
.svc-body .btn { margin-top: 34px; }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; } }

/* ══════════ STATS / MANIFESTO ══════════ */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-cell { padding: 44px clamp(16px, 2.5vw, 36px); border-left: 1px solid var(--line); }
.stat-cell:first-child { border-left: 0; padding-left: 0; }
.stat-cell strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.stat-cell strong em { font-style: italic; font-weight: 400; color: var(--accent-soft); }
.stat-cell .label { letter-spacing: 0.14em; }
@media (max-width: 760px) {
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat-cell { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .stat-cell:nth-child(-n+2) { border-top: 0; }
}

.manifesto { max-width: 21em; font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.manifesto em { font-style: italic; font-weight: 400; color: var(--accent-soft); }

/* ══════════ PROCESS ══════════ */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px); }
.process-step { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.process-step .label { display: block; margin-bottom: 14px; }
.process-step h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ══════════ FAQ ══════════ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 26px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-weight: 500; font-size: 1.08rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.2rem;
  color: var(--muted); transition: transform 0.25s; flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item p { padding: 0 0 26px; color: var(--muted); max-width: 44em; }

/* ══════════ CONTACT ══════════ */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 90px); }
.contact-line { border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.contact-line:last-child { border-bottom: 1px solid var(--line); }
.contact-line a { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 500; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.contact-line a:hover { border-color: var(--accent); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ══════════ CTA FOOTER BAND ══════════ */
.cta-band { padding: 130px 0; border-top: 1px solid var(--line); }
.cta-band .label { display: block; margin-bottom: 24px; }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1; margin-bottom: 40px;
}
.cta-band h2 em { font-style: italic; font-weight: 400; color: var(--accent-soft); }

/* ══════════ FOOTER ══════════ */
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { text-decoration: none; color: var(--muted); font-size: 0.88rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }
.footer .label { letter-spacing: 0.12em; }

/* ══════════ IMAGE BANDS ══════════ */
.img-band { margin: 0; }
.img-band .img-band-frame {
  aspect-ratio: 21 / 9; overflow: hidden; border-radius: 10px;
  border: 1px solid var(--line);
}
.img-band img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.5) sepia(0.25) contrast(1.05) brightness(0.85);
}
.img-band figcaption { margin-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Split: imagen + texto */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 90px); align-items: center; }
.split .img-band-frame { aspect-ratio: 3 / 4; }
.split .img-band-frame--landscape { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split .img-band-frame, .split .img-band-frame--landscape { aspect-ratio: 16 / 10; } }

/* ══════════ MOTION SYSTEM ══════════ */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.wi {
  display: inline-block; transform: translateY(115%); will-change: transform;
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1);
  transition-delay: var(--wd, 0ms);
}
.words-in .wi { transform: none; }

/* El clip-path va en los hijos: si recorta al elemento observado, IntersectionObserver lo ve con área 0 y nunca lo revela */
.ir > * { clip-path: inset(100% 0 0 0); transition: clip-path 0.95s cubic-bezier(0.65, 0, 0.35, 1); }
.ir.in > * { clip-path: inset(0 0 0 0); }
.ir--zoom img { transform: scale(1.12); transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1), clip-path 0.95s cubic-bezier(0.65, 0, 0.35, 1); }
.ir--zoom.in img { transform: scale(1); }

.btn { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .w, .wi { transform: none !important; transition: none !important; }
  .ir > * { clip-path: none !important; transition: none !important; }
  .ir--zoom img { transform: none !important; }
}

.edit-note { font-size: 0.68rem; color: #d9a53a; }

/* ══════════ CASE STUDY PAGES ══════════ */
.case-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: 56px;
}
.case-meta > div { padding: 22px clamp(16px, 2.5vw, 36px); border-left: 1px solid var(--line); }
.case-meta > div:first-child { border-left: 0; padding-left: 0; }
.case-meta .label { display: block; margin-bottom: 8px; letter-spacing: 0.14em; }
.case-meta strong { font-weight: 500; font-size: 1rem; }
@media (max-width: 760px) {
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-meta > div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .case-meta > div:nth-child(-n+2) { border-top: 0; }
}

.case-frame { margin: 0; }
.case-frame .frame { transition: none; }
.case-frame-body { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--bg-raise); }
.case-frame-body iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  pointer-events: none; display: block;
}
.case-frame figcaption { margin-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) { .case-frame-body { aspect-ratio: 4 / 5; } }

.case-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 90px); }
.case-cols h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; margin-bottom: 20px; }
.case-cols .body-text { margin-bottom: 18px; }
@media (max-width: 760px) { .case-cols { grid-template-columns: 1fr; } }

.case-nav { display: flex; justify-content: space-between; gap: 24px; padding-top: 40px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.case-nav a { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.case-nav a span:last-child { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; transition: color 0.2s; }
.case-nav a:hover span:last-child { color: var(--accent-soft); }
