/* ==========================================================================
   fdev7 — Frank Villalobos
   Hoja de estilos única. Sin build: CSS moderno, variables y modo oscuro.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f3efe6;
  --bg-2: #ebe5d8;
  --surface: #fbf9f4;
  --ink: #17150f;
  --ink-2: #48433a;
  --ink-3: #6b6457;
  --line: #d8cfbe;
  --line-2: #e4ddcf;
  --accent: #d4401c;
  --accent-ink: #b0321a;
  --accent-soft: #f6d9cd;
  --gold: #a87918;
  --green: #1d6b52;
  --on-accent: #fff8f2;
  --shadow: 0 1px 2px rgba(23, 21, 15, 0.06), 0 12px 32px -12px rgba(23, 21, 15, 0.22);
  --shadow-lg: 0 2px 4px rgba(23, 21, 15, 0.06), 0 30px 60px -20px rgba(23, 21, 15, 0.35);
  --grid-line: rgba(23, 21, 15, 0.07);
  --grid-axis: rgba(23, 21, 15, 0.16);

  /* Banda de cine (siempre oscura) */
  --cine-bg: #0e0c0a;
  --cine-2: #191612;
  --cine-ink: #f3ede3;
  --cine-ink-2: #c3b9a8;
  --cine-line: #2e2a23;
  --cine-accent: #ff7a3d;
  --cine-gold: #f0bf55;

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: 16px;
  --max: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #100f0c;
    --bg-2: #16140f;
    --surface: #1b1914;
    --ink: #f1ece2;
    --ink-2: #c4bcad;
    --ink-3: #978f80;
    --line: #322e26;
    --line-2: #26231d;
    --accent: #ff5b33;
    --accent-ink: #ff825f;
    --accent-soft: #3a1c12;
    --gold: #e2b450;
    --green: #4fbf93;
    --on-accent: #1a0d07;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 60px -20px rgba(0, 0, 0, 0.85);
    --grid-line: rgba(241, 236, 226, 0.06);
    --grid-axis: rgba(241, 236, 226, 0.15);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #100f0c;
  --bg-2: #16140f;
  --surface: #1b1914;
  --ink: #f1ece2;
  --ink-2: #c4bcad;
  --ink-3: #978f80;
  --line: #322e26;
  --line-2: #26231d;
  --accent: #ff5b33;
  --accent-ink: #ff825f;
  --accent-soft: #3a1c12;
  --gold: #e2b450;
  --green: #4fbf93;
  --on-accent: #1a0d07;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 60px -20px rgba(0, 0, 0, 0.85);
  --grid-line: rgba(241, 236, 226, 0.06);
  --grid-axis: rgba(241, 236, 226, 0.15);
}

@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 44px; --header-h: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía utilitaria ---------- */
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.serif { font-family: var(--serif); }
em, .em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: 0.6; }
.dot-live {
  position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex: none;
}
.dot-live::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--green); opacity: 0; animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Botones ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--bg); --b-line: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg); border: 1.5px solid var(--b-line);
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em; text-decoration: none;
  cursor: pointer; transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--accent { --b-bg: var(--accent); --b-fg: var(--on-accent); --b-line: var(--accent); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-line: var(--line); }
.btn--ghost:hover { --b-line: var(--ink); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  color: var(--accent-ink);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand__name { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.035em; }
.brand__name b { color: var(--accent); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__links { display: none; list-style: none; gap: 2px; }
.nav__links a {
  display: inline-block; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font-size: 0.95rem; font-weight: 500; color: var(--ink-2); transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line); cursor: pointer; color: var(--ink);
  transition: background-color 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: var(--bg-2); border-color: var(--ink-3); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.nav__cta { display: none; }

.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.menu-btn[aria-expanded="true"] .i-menu { display: none; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
  box-shadow: var(--shadow);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.25s;
}
.mobile-menu.is-open { transform: none; opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; }
.mobile-menu li + li { border-top: 1px solid var(--line-2); }
.mobile-menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 2px; font-family: var(--serif); font-size: 1.75rem; text-decoration: none;
}
.mobile-menu a span { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .menu-btn, .mobile-menu { display: none; }
  .nav__cta { display: inline-flex; margin-left: 8px; }
  .nav { gap: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(28px, 6vw, 72px) 0 clamp(40px, 7vw, 88px);
  overflow: hidden;
}
.hero__map {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 52%, #000 66%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 52%, #000 66%, #000 88%, transparent 100%);
  opacity: 0.9;
}
.hero__grid { display: grid; gap: clamp(36px, 6vw, 56px); align-items: center; }
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 22px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.hero__meta .sep { opacity: 0.5; }
@media (max-width: 479px) { .hero__meta .sep { display: none; } .hero__meta { gap: 6px 10px; } }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.65rem, 9.6vw, 5.9rem);
  line-height: 0.96; letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 em { color: var(--accent); }
.hero h1 .u {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% 0.07em; background-repeat: no-repeat; background-position: 0 92%;
}
.hero__lead {
  margin: 24px 0 30px; max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--ink-2); line-height: 1.55;
}
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); list-style: none;
  max-width: 34rem;
}
.hero__facts li { padding-right: 12px; }
.hero__facts li + li { padding-left: 14px; border-left: 1px solid var(--line); }
.hero__facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 6vw, 2.5rem); line-height: 1; }
.hero__facts span { display: block; margin-top: 6px; font-size: 0.8rem; line-height: 1.35; color: var(--ink-3); }

/* Composición del hero: teléfono + portada */
.hero__art { position: relative; height: clamp(440px, 118vw, 560px); max-width: 520px; margin-inline: auto; width: 100%; }
.art-phone {
  position: absolute; left: 4%; top: 2%; width: min(58%, 268px); margin: 0;
  transform: rotate(-4deg); z-index: 2;
  animation: floaty 9s ease-in-out infinite;
}
.art-cover {
  position: absolute; right: 2%; top: 14%; width: min(46%, 214px); margin: 0;
  transform: rotate(5deg); z-index: 1;
  animation: floaty 11s ease-in-out -3s infinite;
}
.art-cover img { border-radius: 16px; box-shadow: var(--shadow-lg); outline: 1px solid rgba(255,255,255,0.08); outline-offset: -1px; }
.art-tag {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.02em; color: var(--ink);
  white-space: nowrap;
}
.art-tag--a { left: 0; bottom: 14%; }
.art-tag--b { right: 0; top: 4%; }
.art-tag--c { right: 6%; bottom: 3%; }
.art-tag .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.art-tag .sw--gold { background: var(--gold); }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@media (min-width: 960px) {
  .hero { padding-top: 56px; }
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 40px; }
  .hero__map {
    -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 60%);
    mask-image: linear-gradient(90deg, transparent 22%, #000 60%);
    opacity: 1;
  }
  .hero__art { height: 600px; max-width: none; }
}

/* ---------- Teléfono (marco) ---------- */
.phone { margin: 0; }
.phone__screen {
  position: relative; overflow: hidden; border-radius: 30px;
  background: #0d0d0d; border: 7px solid #121110;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.06);
  aspect-ratio: 480 / 977;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone figcaption { margin-top: 14px; font-size: 0.88rem; color: var(--ink-3); line-height: 1.4; }
.phone figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; }

/* ---------- Marquesina ---------- */
.ticker {
  border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden;
  padding: 14px 0; white-space: nowrap;
}
.ticker__track { display: inline-flex; gap: 0; animation: ticker 48s linear infinite; }
.ticker__track span {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
  padding-inline: 18px; display: inline-flex; align-items: center; gap: 36px;
}
.ticker__track span::after { content: "✦"; color: var(--accent); font-size: 0.7rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section--tight { padding-top: clamp(48px, 7vw, 80px); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 64px); }
.sec-head__label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.sec-head__label b { color: var(--accent-ink); font-weight: 500; }
.sec-head__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec-head h2 {
  font-family: var(--serif); font-size: clamp(2.3rem, 7vw, 4.4rem); line-height: 1; letter-spacing: -0.02em;
  max-width: 16ch; text-wrap: balance;
}
.sec-head p { max-width: 38rem; color: var(--ink-2); font-size: 1.08rem; margin: 0; }
@media (min-width: 960px) {
  .sec-head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 56px; }
  .sec-head__label { grid-column: 1 / -1; }
}

/* ---------- Proyecto destacado: Ya Viene ---------- */
.feature {
  position: relative; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  background: var(--surface); overflow: hidden;
}
.feature__body { padding: clamp(24px, 5vw, 48px); }
.feature__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.app-badge {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2);
}
.app-badge img, .app-badge .logo { width: 26px; height: 26px; border-radius: 8px; }
.feature h3 {
  font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; margin-bottom: 14px;
}
.feature__lead { font-size: 1.12rem; color: var(--ink-2); max-width: 36rem; }
.feature-list { list-style: none; display: grid; gap: 14px; margin: 26px 0 28px; }
.feature-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.feature-list .ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.feature-list .ico svg { width: 19px; height: 19px; }
.feature-list b { display: block; font-weight: 600; color: var(--ink); }
.feature-list span { display: block; color: var(--ink-2); font-size: 0.97rem; line-height: 1.5; }
.stack-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }

.shots {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 28px; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin; overscroll-behavior-x: contain;
}
.shots .phone { flex: 0 0 min(64vw, 230px); scroll-snap-align: center; }
.feature__shots { padding: 0 clamp(24px, 5vw, 48px) 8px; }
.feature__shots .shots { margin-inline: calc(clamp(24px, 5vw, 48px) * -1); padding-inline: clamp(24px, 5vw, 48px); }
.swipe-hint { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 4px; }
.swipe-hint svg { width: 14px; height: 14px; }

@media (min-width: 1024px) {
  .feature--split { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .feature--split .feature__shots {
    padding: 48px 48px 48px 0; display: flex; align-items: center;
    background:
      radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
  }
  .feature--split .shots {
    margin: 0 auto; padding: 0 0 44px; overflow: visible; display: grid; grid-template-columns: repeat(2, minmax(0, 236px)); justify-content: center; gap: 26px 28px; width: 100%;
  }
  .feature--split .shots .phone:nth-child(even) { translate: 0 44px; }
  .swipe-hint { display: none; }
}

/* ---------- Banda de cine: El Agente Bíblico ---------- */
.cine {
  position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--cine-line);
  background: var(--cine-bg); color: var(--cine-ink);
  border-radius: calc(var(--radius) + 6px);
  margin-top: clamp(28px, 5vw, 48px);
}
.cine::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(255, 122, 61, 0.28), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(240, 191, 85, 0.14), transparent 70%);
}
.cine::after { /* grano de película */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.08; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
.cine__grid { display: grid; gap: 36px; padding: clamp(24px, 5vw, 56px); }
.cine .app-badge { background: rgba(255,255,255,0.04); border-color: var(--cine-line); color: var(--cine-ink-2); }
.cine h3 { font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 3.8rem); line-height: 1; letter-spacing: -0.02em; margin: 18px 0 14px; }
.cine h3 em { color: var(--cine-gold); }
.cine p { color: var(--cine-ink-2); }
.cine .feature__lead { color: var(--cine-ink-2); }
.cine .feature-list .ico { background: rgba(255, 122, 61, 0.14); color: var(--cine-accent); }
.cine .feature-list b { color: var(--cine-ink); }
.cine .feature-list span { color: var(--cine-ink-2); }
.cine .chip { border-color: var(--cine-line); color: var(--cine-ink-2); background: rgba(255,255,255,0.03); }
.cine .stack-label { color: #9c927f; }
.cine .btn--accent { --b-bg: var(--cine-accent); --b-line: var(--cine-accent); --b-fg: #170b05; }
.cine .btn--ghost { --b-fg: var(--cine-ink); --b-line: #4a4337; }
.cine .btn--ghost:hover { --b-line: var(--cine-ink); }
.cine .link-arrow { color: var(--cine-gold); }
.cine :focus-visible { outline-color: var(--cine-gold); }

.reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; }
.reel figure { margin: 0; position: relative; }
.reel img {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px;
  transition: transform 0.5s var(--ease), filter 0.5s;
  outline: 1px solid rgba(255,255,255,0.06); outline-offset: -1px;
}
.reel figure:hover img { transform: translateY(-4px) scale(1.015); }
.reel figcaption {
  margin-top: 8px; font-size: 0.7rem; line-height: 1.3; color: #a99f8d;
  font-family: var(--mono); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reel figure:nth-child(3n+2) { translate: 0 22px; }
@media (max-width: 639px) { .reel figcaption { white-space: normal; font-size: 0.66rem; } }
.cine__agent {
  position: absolute; right: -10px; bottom: -18px; width: 150px; opacity: 0.95; pointer-events: none; z-index: 0;
  display: none;
}
.verse {
  margin: 30px 0 0; padding: 18px 20px; border-left: 2px solid var(--cine-gold);
  background: rgba(255,255,255,0.03); border-radius: 0 12px 12px 0;
}
.verse p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.35; color: var(--cine-ink); }
.verse cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cine-gold); }
@media (min-width: 1024px) {
  .cine__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .reel { padding-bottom: 22px; }
}

/* ---------- Taller (otros proyectos) ---------- */
.subhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin: clamp(56px, 9vw, 96px) 0 24px; }
.subhead h3 { font-family: var(--serif); font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.05; }
.subhead p { margin: 0; color: var(--ink-3); font-size: 0.95rem; max-width: 26rem; }
.cards { display: grid; gap: 18px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.035); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
.card h4 { font-family: var(--serif); font-size: 1.85rem; line-height: 1.05; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.card .chips { margin-top: auto; padding-top: 10px; }
.card__media--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 18px 0; background: linear-gradient(160deg, #1a1712, #0f0d0a); }
.card__media--duo img { border-radius: 12px 12px 0 0; object-fit: cover; object-position: top; height: 100%; }

/* Ilustración de FreeShow (dos pantallas) */
.screens-ill {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--bg-2);
}
.screens-ill svg { width: 82%; height: auto; }

/* ---------- Servicios ---------- */
.services { display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: srv; }
.service {
  display: grid; gap: 14px; padding: 30px 0; border-bottom: 1px solid var(--line);
  counter-increment: srv;
}
.service__n { font-family: var(--mono); font-size: 0.75rem; color: var(--accent-ink); letter-spacing: 0.06em; }
.service__n::before { content: "0" counter(srv) " / "; }
.service h3 { font-family: var(--serif); font-size: clamp(2rem, 5.6vw, 2.8rem); line-height: 1; }
.service p { color: var(--ink-2); margin: 0; max-width: 34rem; }
.service ul { list-style: none; display: grid; gap: 8px; }
.service li { display: flex; gap: 10px; font-size: 0.97rem; color: var(--ink-2); }
.service li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.62em; border-radius: 2px; background: var(--accent); }
@media (min-width: 900px) {
  .service { grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; padding: 40px 0; }
  .service__n { padding-top: 12px; }
}

/* ---------- Sobre mí ---------- */
.about { display: grid; gap: 44px; }
.about__text { font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.6; color: var(--ink-2); }
.about__text p:first-child {
  font-family: var(--serif); font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.12; color: var(--ink); letter-spacing: -0.01em;
  margin-bottom: 0.8em;
}
.about__text p:first-child em { color: var(--accent); }
.about__text strong { color: var(--ink); font-weight: 600; }
.factsheet {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; align-self: start;
}
.factsheet__head {
  display: flex; align-items: center; gap: 16px; padding: 20px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--bg-2);
}
.avatar {
  width: 64px; height: 64px; flex: none; border-radius: 18px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-family: var(--serif); font-size: 2rem; line-height: 1;
}
.factsheet__head b { display: block; font-size: 1.1rem; }
.factsheet__head div > span { display: block; font-size: 0.9rem; color: var(--ink-3); }
.factsheet dl { margin: 0; display: grid; }
.factsheet dl > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.factsheet dl > div:last-child { border-bottom: 0; }
.factsheet dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.factsheet dd { margin: 0; font-size: 0.96rem; }
@media (min-width: 960px) { .about { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: 72px; } }

/* ---------- Notas ---------- */
.notes { display: grid; gap: 18px; }
@media (min-width: 900px) { .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.note {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; min-height: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.note:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.note__img { margin: -24px -24px 6px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg-2); }
.note__img img { width: 100%; height: 100%; object-fit: cover; }
.note__meta { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.note h3 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.08; }
.note p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.note .link-arrow { margin-top: auto; padding-top: 8px; }

/* ---------- Contacto ---------- */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--radius) + 6px); background: var(--ink); color: var(--bg);
  padding: clamp(32px, 7vw, 80px) clamp(22px, 6vw, 72px);
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 70% at 100% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--bg) 6%, transparent) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 6%, transparent) 1px, transparent 1px) 0 0 / 36px 36px;
}
.contact .kicker { color: color-mix(in srgb, var(--bg) 65%, var(--ink)); }
.contact h2 { font-family: var(--serif); font-size: clamp(2.6rem, 9vw, 5.6rem); line-height: 0.98; letter-spacing: -0.025em; margin: 18px 0 18px; max-width: 14ch; }
.contact h2 em { color: var(--accent); }
.contact p { color: color-mix(in srgb, var(--bg) 78%, var(--ink)); max-width: 36rem; font-size: 1.08rem; }
.contact .mail {
  display: inline-block; margin: 14px 0 26px; font-family: var(--sans); font-weight: 500; letter-spacing: -0.03em; font-size: clamp(1.4rem, 6vw, 2.8rem);
  color: var(--bg); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px;
  text-underline-offset: 0.16em; word-break: break-all;
}
.contact .mail:hover { color: var(--accent); }
.contact .btn { --b-bg: var(--bg); --b-fg: var(--ink); --b-line: var(--bg); }
.contact .btn--ghost { --b-bg: transparent; --b-fg: var(--bg); --b-line: color-mix(in srgb, var(--bg) 30%, var(--ink)); }
.contact .btn--ghost:hover { --b-line: var(--bg); }
.contact :focus-visible { outline-color: var(--bg); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; list-style: none; }
.copy-status { min-height: 1.4em; margin-top: 10px; font-family: var(--mono); font-size: 0.75rem; color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }

/* ---------- Pie ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: clamp(64px, 10vw, 120px); }
.site-footer__grid { display: grid; gap: 32px 20px; grid-template-columns: 1fr 1fr; }
.site-footer__grid > :first-child { grid-column: 1 / -1; }
.site-footer p { color: var(--ink-3); font-size: 0.95rem; max-width: 26rem; margin: 14px 0 0; }
.site-footer h2 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; color: var(--ink-2); }
.site-footer ul a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--line-2); font-size: 0.85rem; color: var(--ink-3);
}
.site-footer__bottom a { color: inherit; }
.footer-word {
  font-family: var(--serif); font-size: clamp(6rem, 30vw, 26rem); line-height: 0.78; text-align: center; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--ink-3) 45%, transparent); margin-top: 40px; margin-bottom: -0.1em; user-select: none; white-space: nowrap;
}
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .site-footer__grid > :first-child { grid-column: auto; } }

/* ---------- Artículos (notas) ---------- */
.article-hero { padding: clamp(36px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 26px; list-style: none; }
.crumbs a { color: inherit; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.article-hero h1 { font-family: var(--serif); font-size: clamp(2.5rem, 7.4vw, 4.9rem); line-height: 1; letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance; }
.article-hero h1 em { color: var(--accent); }
.article-hero .lead { margin: 24px 0 0; font-size: clamp(1.12rem, 2.4vw, 1.32rem); color: var(--ink-2); max-width: 40rem; line-height: 1.55; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-3); }
.byline .avatar { width: 40px; height: 40px; border-radius: 12px; font-size: 1.3rem; }
.byline b { color: var(--ink); font-weight: 600; }
@media (max-width: 479px) { .byline .sep { display: none; } .byline { gap: 6px 14px; } }

.prose { max-width: 42rem; font-size: 1.1rem; line-height: 1.72; color: var(--ink-2); }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.9rem, 4.6vw, 2.5rem); line-height: 1.08; color: var(--ink); letter-spacing: -0.01em; }
.prose > h2 { margin-top: 2.1em; }
.prose > h2:first-child { margin-top: 0; }
.prose > h2 + *, .prose > h3 + * { margin-top: 0.6em; }
.prose h3 { font-family: var(--sans); font-weight: 650; font-size: 1.15rem; color: var(--ink); line-height: 1.3; }
.prose > h3 { margin-top: 1.8em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent-ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--bg-2); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.35; color: var(--ink); }
.prose blockquote cite { display: block; margin-top: 8px; font-family: var(--mono); font-style: normal; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.prose figure { margin-inline: 0; }
.prose > figure { margin-top: 2em; margin-bottom: 2em; }
.prose .phones--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 30rem; }
.prose figure img { border-radius: 14px; border: 1px solid var(--line); }
.prose figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--ink-3); line-height: 1.45; }
@media (min-width: 1100px) { .prose .wide { width: 54rem; max-width: calc(100vw - 2 * var(--gutter)); } }
.prose .phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.prose .phones .phone__screen { border-width: 5px; border-radius: 24px; }
.prose .phones img { border: 0; border-radius: 0; }
@media (min-width: 700px) { .prose .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.callout { padding: 20px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.callout b { display: block; color: var(--ink); margin-bottom: 4px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; }
.numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.numbers div { background: var(--surface); padding: 16px 18px; }
.numbers b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--ink); font-weight: 400; }
.numbers span { display: block; margin-top: 6px; font-size: 0.86rem; line-height: 1.4; color: var(--ink-3); }

.article-layout { display: grid; gap: 48px; padding-bottom: 24px; }
.toc { display: none; }
@media (min-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 72px; }
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 28px); align-self: start; font-size: 0.92rem; }
  .toc h2 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; margin-bottom: 12px; }
  .toc ol { list-style: none; display: grid; gap: 8px; border-left: 1px solid var(--line); }
  .toc a { display: block; padding-left: 14px; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; color: var(--ink-3); line-height: 1.35; }
  .toc a:hover { color: var(--ink); border-left-color: var(--accent); }
}
.author-box { display: grid; grid-template-columns: 56px 1fr; gap: 16px; margin-top: 56px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); max-width: 42rem; }
.author-box .avatar { width: 56px; height: 56px; font-size: 1.7rem; border-radius: 16px; }
.author-box p { margin: 4px 0 0; color: var(--ink-2); font-size: 0.97rem; }
.more-notes { margin-top: 72px; }

/* ---------- Página legal ---------- */
.legal h2 { font-size: clamp(1.6rem, 4vw, 2rem); }
.legal .updated { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.legal-index { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; }
.prose .legal-index li + li { margin-top: 0; }
.prose .legal-index a { text-decoration: none; color: var(--ink-2); }
.prose .legal-index a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- 404 ---------- */
.lost { min-height: calc(100vh - var(--header-h) - 200px); display: grid; align-items: center; padding: 48px 0; }
.lost__sign {
  display: inline-grid; gap: 4px; padding: 16px 20px; border-radius: 14px; background: var(--accent); color: var(--on-accent);
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: var(--shadow);
  transform: rotate(-3deg); margin-bottom: 32px;
}
.lost__sign b { font-family: var(--serif); font-size: 3.4rem; line-height: 1; text-transform: none; letter-spacing: -0.02em; font-weight: 400; }
.lost h1 { font-family: var(--serif); font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1; letter-spacing: -0.02em; max-width: 16ch; }
.lost p { margin: 20px 0 30px; color: var(--ink-2); font-size: 1.15rem; max-width: 34rem; }

/* ---------- Animación de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: 0.08s; }
.js .reveal[data-d="2"] { transition-delay: 0.16s; }
.js .reveal[data-d="3"] { transition-delay: 0.24s; }

.hero-in > * { animation: rise 0.9s var(--ease) both; }
.hero-in > *:nth-child(2) { animation-delay: 0.06s; }
.hero-in > *:nth-child(3) { animation-delay: 0.14s; }
.hero-in > *:nth-child(4) { animation-delay: 0.22s; }
.hero-in > *:nth-child(5) { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .art-phone, .art-cover { animation: none; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .mobile-menu, .hero__map, .ticker, .site-footer, .toc { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Agregados ---------- */
.about__side { display: grid; gap: 18px; align-self: start; }
.agent-card {
  margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--cine-bg); border: 1px solid var(--cine-line);
  display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 14px; padding: 18px 20px 18px 12px;
}
.agent-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 15% 60%, rgba(255,122,61,.32), transparent 70%); }
.agent-card img { position: relative; width: 132px; height: auto; }
.agent-card figcaption { position: relative; padding: 0; color: var(--cine-ink-2); font-size: 0.92rem; line-height: 1.45; }
.agent-card figcaption b { display: block; color: var(--cine-ink); font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.1; margin-bottom: 4px; }
.contact__agent { display: none; }
@media (min-width: 900px) {
  .contact__agent { display: block; position: absolute; right: 6%; bottom: 12%; width: min(32%, 360px); height: auto; z-index: -1; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
}
