/* ==========================================================================
   Alt-F4 Studio · estilos
   Fuentes autoalojadas (SIL OFL 1.1): Inter y JetBrains Mono.
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/inter-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #0b1220;
  --bg-2: #0e1729;
  --surface: #111a2c;
  --surface-2: #142036;
  --line: #26324a;
  --line-strong: #3a4763;
  --text: #eef1f6;
  --muted: #a8b1c2;
  --dim: #6f7a8f;
  --amber: #f0a030;
  --amber-2: #f5b450;
  --amber-ink: #1a1203;
  --radius: 8px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --container: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(240, 160, 48, .06), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 32px; }
.accent { color: var(--amber); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

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

.icon { width: 22px; height: 22px; flex: none; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-family: var(--mono); font-weight: 500; font-size: 20px; letter-spacing: .01em; }
.logo-prompt { color: var(--amber); font-weight: 700; letter-spacing: -.04em; }
.logo-sm { font-size: 16px; gap: 10px; }

.nav-list { display: flex; gap: 44px; }
.nav-link {
  position: relative; display: inline-block; padding: 8px 0;
  font-family: var(--mono); font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
  transition: color .2s;
}
.nav-link:hover { color: var(--amber-2); }
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: -6px;
  width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--amber); opacity: 0; transform: scale(.4);
  transition: opacity .2s, transform .2s;
}
.nav-link.is-active { color: var(--amber); }
.nav-link.is-active::after { opacity: 1; transform: scale(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; margin-right: -8px;
  background: transparent; border: 0; cursor: pointer; color: var(--text);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 12px 24px;
  border-radius: 6px; border: 1px solid transparent;
  font-family: var(--mono); font-size: 16px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: var(--amber-2); }
.btn-outline { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,.01); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber-2); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }

.hero-title { font-family: var(--sans); font-weight: 800; font-size: clamp(46px, 6.4vw, 90px); line-height: 1.04; letter-spacing: -.02em; }
.hero-title span { display: block; white-space: nowrap; }
.line-white { color: var(--text); }
.line-amber { color: var(--amber); }
.hero-sub { margin-top: 22px; font-family: var(--mono); font-size: clamp(16px, 1.6vw, 20px); color: var(--text); opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; }
.hero-actions .btn { min-width: 200px; }
.hero-actions .btn-primary { min-width: 250px; }

/* Terminal */
.terminal {
  justify-self: end; width: 100%; max-width: 470px; margin-top: 8px;
  background: linear-gradient(180deg, rgba(20, 32, 54, .55), rgba(11, 18, 32, .7));
  border: 1px solid var(--line-strong); border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.terminal-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-bottom: 1px solid var(--line-strong); }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--text); opacity: .85; }
.terminal-dash { margin-left: auto; width: 28px; height: 3px; border-radius: 2px; background: var(--amber); }
.terminal-body { padding: 30px 36px 42px; }
.terminal-line { font-family: var(--mono); font-size: 22px; color: var(--amber); display: flex; align-items: center; gap: 12px; }
.prompt { font-weight: 700; letter-spacing: -.04em; }

.cursor { display: inline-block; width: .55em; height: 1.1em; margin-left: 4px; background: var(--amber); vertical-align: middle; animation: blink 1.1s steps(1) infinite; }
.cursor-sm { width: .5em; height: 1em; }
@keyframes blink { 50% { opacity: 0; } }

.keys { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.key {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 76px; height: 64px; padding: 0 18px;
  border: 1.5px solid var(--line-strong); border-radius: 6px;
  background: linear-gradient(180deg, #16213a, #0f1830);
  box-shadow: 0 4px 0 #070c17, inset 0 1px 0 rgba(255,255,255,.05);
  font-family: var(--mono); font-size: 20px; color: var(--text);
  transition: transform .12s ease, box-shadow .12s ease, border-color .2s;
}
.key-alt { min-width: 88px; border-color: var(--amber); }
.key-plus { font-family: var(--mono); font-size: 20px; color: var(--text); }
.terminal:hover .key { transform: translateY(3px); box-shadow: 0 1px 0 #070c17, inset 0 1px 0 rgba(255,255,255,.05); }
.terminal:hover .key:last-child { transition-delay: .08s; border-color: var(--amber); }

/* Tarjetas genéricas */
.card {
  background: linear-gradient(180deg, rgba(20, 32, 54, .5), rgba(14, 23, 41, .5));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}

/* Pilares */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; max-width: 1000px; }
.pillar { padding: 26px 26px 30px; transition: border-color .2s, transform .2s; }
.pillar:hover { border-color: rgba(240, 160, 48, .55); transform: translateY(-2px); }
.pillar-head { display: flex; align-items: center; gap: 18px; }
.pillar-icon { width: 42px; height: 42px; color: var(--amber); flex: none; }
.pillar-title { position: relative; font-family: var(--mono); font-weight: 500; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; padding-bottom: 14px; }
.pillar-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 2px; background: var(--amber); }
.pillar p { margin-top: 18px; font-family: var(--mono); font-size: 14.5px; line-height: 1.75; color: var(--text); opacity: .9; }

/* ---------- Secciones ---------- */
.section { padding: 104px 0; border-top: 1px solid var(--line); }
.section-alt { background: linear-gradient(180deg, rgba(14, 23, 41, .6), rgba(11, 18, 32, 0)); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.eyebrow span { color: var(--dim); margin-right: 6px; }
.section-title { font-family: var(--sans); font-weight: 800; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 24px; }
.lead { font-size: 19px; color: var(--text); margin-bottom: 16px; }
.section p { color: var(--muted); }
.section .lead { color: var(--text); }

.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.values { display: grid; gap: 16px; }
.value { display: flex; gap: 20px; padding: 24px; }
.value-icon { width: 32px; height: 32px; color: var(--amber); flex: none; margin-top: 2px; }
.value h3 { font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; color: var(--text); }
.value p { font-size: 15.5px; }

/* Proyecto */
.blob { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .85; }
.b1 { width: 60%; height: 70%; left: -10%; top: 10%; background: radial-gradient(circle, rgba(240,160,48,.55), transparent 70%); animation: drift 14s ease-in-out infinite alternate; }
.b2 { width: 55%; height: 60%; right: -5%; top: -10%; background: radial-gradient(circle, rgba(70,110,200,.55), transparent 70%); animation: drift 18s ease-in-out infinite alternate-reverse; }
.b3 { width: 50%; height: 55%; left: 30%; bottom: -20%; background: radial-gradient(circle, rgba(170,80,60,.45), transparent 70%); animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(8%, 6%) scale(1.1); } }
.project-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgba(240,160,48,.5); border-radius: 999px; color: var(--amber); font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.badge .icon { width: 16px; height: 16px; }
.project-title { font-family: var(--sans); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.01em; }
.project-title .sep { color: var(--dim); }
.mono-note { font-family: var(--mono); font-size: 14px; display: flex; align-items: center; gap: 6px; }

/* Utilidad: solo lectores de pantalla */
.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; }

/* Proyectos */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-solid { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); font-weight: 700; }
.badge-ok { color: #7fd18b; border-color: rgba(127, 209, 139, .5); }
.dot-ok { width: 8px; height: 8px; border-radius: 50%; background: #7fd18b; box-shadow: 0 0 0 3px rgba(127, 209, 139, .18); }
.ao-note { font-size: 13.5px; color: var(--dim) !important; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }

/* Proyectos: pestañas + panel de detalle */
.projects-layout { display: grid; grid-template-columns: minmax(280px, 1fr) 1.6fr; gap: 40px; align-items: start; }
.projects-layout > * { min-width: 0; }
.projects-side { position: sticky; top: calc(var(--header-h) + 24px); }
.projects-side .section-title { margin-bottom: 28px; }
.proj-tabs { display: flex; flex-direction: column; gap: 12px; }
.proj-tab {
  position: relative; display: flex; align-items: center; gap: 18px;
  padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: rgba(20, 32, 54, .35); text-decoration: none; color: var(--text);
  transition: border-color .2s, background-color .2s;
}
.proj-tab::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; border-radius: var(--radius) 0 0 var(--radius); background: var(--amber); opacity: 0; transition: opacity .2s; }
.proj-tab:hover { border-color: rgba(240, 160, 48, .5); }
.proj-tab[aria-selected="true"] { background: rgba(240, 160, 48, .07); border-color: rgba(240, 160, 48, .55); }
.proj-tab[aria-selected="true"]::before { opacity: 1; }
.proj-tab-icon { width: 32px; height: 32px; flex: none; color: var(--dim); }
.proj-tab[aria-selected="true"] .proj-tab-icon { color: var(--amber); }
.proj-tab-text { display: flex; flex-direction: column; min-width: 0; }
.proj-tab-name { font-weight: 700; font-size: 17px; line-height: 1.3; }
.proj-tab-meta { font-family: var(--mono); font-size: 13.5px; color: var(--muted); }

.proj-panels { display: grid; gap: 24px; }
.proj-panel { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.proj-panel[hidden] { display: none; }
.proj-panel:focus-visible { outline-offset: 4px; }
.ao-title { font-size: clamp(21px, 2vw, 27px); }
.proj-desc { color: var(--muted); font-size: 16px; }

.feat-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.feat { display: flex; gap: 16px; padding: 20px; border-color: var(--line-strong); }
.feat:nth-child(odd) { border-right: 1px solid var(--line-strong); }
.feat:nth-child(-n+2) { border-bottom: 1px solid var(--line-strong); }
.feat-icon { width: 30px; height: 30px; flex: none; color: var(--amber); margin-top: 2px; }
.feat h4 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--text); }
.feat p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.info-table { margin: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); font-family: var(--mono); font-size: 14px; }
.info-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 10px 18px; }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-table dt { color: var(--muted); }
.info-table dd { margin: 0; color: var(--amber); display: flex; align-items: center; gap: 8px; }
.info-table dd.ok { color: #7fd18b; }

.proj-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 4px; }
.proj-actions .ao-note { flex: 1 1 260px; border: 0; padding: 0; margin: 0; }
.icon-arrow { width: 18px; height: 18px; }
.proj-actions .btn { white-space: nowrap; }

.secret-art { position: relative; height: 220px; border-radius: var(--radius); overflow: hidden; background: #0d1526; border: 1px solid var(--line-strong); }
.secret-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.secret-lock svg { width: 56px; height: 56px; padding: 12px; border-radius: 50%; color: var(--amber); background: rgba(11, 18, 32, .7); border: 1px solid rgba(240, 160, 48, .4); }

/* Creaciones */
.section-intro { max-width: 640px; margin: -8px 0 32px; font-size: 17px; }
.crea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.crea-card { display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s, transform .2s; }
.crea-card:hover { border-color: rgba(240, 160, 48, .55); transform: translateY(-2px); }
.crea-media { aspect-ratio: 16 / 9; background: #0d1526; border-bottom: 1px solid var(--line-strong); overflow: hidden; }
.crea-media img { width: 100%; height: 100%; object-fit: cover; }
.crea-media-vacia {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(240px 160px at 80% 0%, rgba(240,160,48,.14), transparent 70%),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 20px 20px,
    #0d1526;
}
.crea-media-icon { width: 56px; height: 56px; color: var(--amber); }
.crea-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.crea-title { font-family: var(--sans); font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--text); }
.crea-desc { font-size: 15.5px; }
.crea-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.crea-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(240,160,48,.4); border-radius: 999px; padding: 3px 10px; }
.crea-actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 14px; gap: 10px; }
.btn-sm .icon { width: 18px; height: 18px; }
.crea-estado { font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.crea-estado-prompt { color: var(--amber); }
.crea-loading, .crea-noscript { font-family: var(--mono); font-size: 14px; color: var(--muted); }

/* Noticias: estado vacío */
.empty-state { margin-top: 16px; padding: 64px 24px; text-align: center; border-style: dashed; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-icon { width: 48px; height: 48px; color: var(--amber); opacity: .9; margin-bottom: 6px; }
.empty-title { font-family: var(--sans); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); color: var(--text) !important; }
.empty-sub { font-family: var(--mono); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* Contacto */
.contact-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 48px; }
.contact-card .section-title { margin-bottom: 16px; }
.contact-card .lead { margin-bottom: 0; color: var(--muted); font-size: 18px; }
.contact-actions { display: flex; flex-direction: column; gap: 14px; }
.contact-actions .btn { width: 100%; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer p { font-family: var(--mono); font-size: 14px; color: var(--dim); }

/* ---------- 404 ---------- */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.notfound { flex: 1; display: flex; align-items: center; justify-content: center; padding-block: 64px; }
.notfound-terminal { justify-self: auto; max-width: 620px; margin: 0; }
.notfound-title { font-family: var(--sans); font-weight: 800; font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin: 26px 0 14px; }
.notfound-sub { color: var(--muted); margin-bottom: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .terminal { justify-self: start; }
  .studio-grid, .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .projects-layout { grid-template-columns: 1fr; gap: 20px; }
  .projects-side { position: static; }
  .projects-side .section-title { margin-bottom: 20px; }
  .proj-tabs { flex-direction: row; overflow-x: auto; gap: 10px; padding-bottom: 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .proj-tab { flex: 0 0 auto; padding: 12px 16px; gap: 12px; scroll-snap-align: start; }
  .proj-tab::before { left: -1px; right: -1px; top: auto; bottom: -1px; width: auto; height: 3px; border-radius: 0 0 var(--radius) var(--radius); }
  .proj-tab-icon { width: 24px; height: 24px; }
  .proj-tab-name { font-size: 15px; white-space: nowrap; }
  .proj-panel { padding: 22px 18px; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat:nth-child(odd) { border-right: 0; }
  .feat:nth-child(-n+3) { border-bottom: 1px solid var(--line-strong); }
  .info-row { grid-template-columns: 110px 1fr; padding: 10px 14px; }
  .proj-actions .btn { width: 100%; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .container { padding-inline: 20px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-list { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .nav-link { display: flex; align-items: center; gap: 12px; padding: 14px 0; width: 100%; }
  .nav-link::after { position: static; margin: 0; order: -1; }
  .nav-list li + li { border-top: 1px solid var(--line); }
  .pillars { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 56px; }
}

@media (max-width: 480px) {
  .proj-actions .btn { white-space: normal; text-align: center; }
  .hero-title { font-size: clamp(38px, 11.5vw, 46px); }
  .hero-title span { white-space: normal; }
  .logo { font-size: 17px; gap: 10px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn, .hero-actions .btn-primary { width: 100%; min-width: 0; }
  .terminal-body { padding: 22px 22px 30px; }
  .terminal-line { font-size: 19px; }
  .keys { gap: 16px; }
  .key { min-width: 64px; height: 52px; font-size: 18px; }
  .contact-card { padding: 28px 22px; }
  .contact-actions .btn { font-size: 14px; padding-inline: 16px; gap: 10px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .cursor { animation: none; }
}

/* ---------- Página de Valdren Online ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--dim); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber-2); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--amber); }
.vo-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.vo-title { margin-top: 18px; }
.vo-sub { margin-top: 18px; }
.vo-official { margin-top: 24px; font-family: var(--mono); font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.vo-terminal { margin-top: 0; }
.vo-terminal-body { display: grid; gap: 10px; font-family: var(--mono); font-size: 16px; color: var(--text); }
.vo-val { color: var(--amber-2); }
.vo-ok { color: #7fd18b; }
.vo-two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.vo-sheet { max-width: 760px; font-size: 15px; }
.vo-sheet .info-row { grid-template-columns: 180px 1fr; padding: 14px 20px; }
.muted-dd { color: var(--muted) !important; }
.vo-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vo-shot { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #0d1526; display: flex; align-items: flex-end; }
.vo-shot .blob { width: 80%; height: 90%; left: 10%; top: 5%; }
.vo-shot-label { position: relative; margin: 14px; font-family: var(--mono); font-size: 13px; color: var(--muted); background: rgba(11,18,32,.75); padding: 4px 10px; border-radius: 999px; }
@media (max-width: 1024px) {
  .vo-hero-grid, .vo-two { grid-template-columns: 1fr; gap: 28px; }
  .vo-terminal { justify-self: start; }
}
@media (max-width: 768px) {
  .vo-gallery { grid-template-columns: 1fr; }
  .vo-sheet .info-row { grid-template-columns: 120px 1fr; padding: 12px 14px; }
}
