/* SmartBackup — hoja de estilos */

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

:root {
  --night: #0B1220;
  --night-2: #0E1626;
  --graphite: #111A2B;
  --slate: #1E2A40;
  --line: #2A3550;
  --text: #E6EDF7;
  --text-2: #CBD5E1;
  --muted: #94A3B8;
  --accent: #2DD4BF;
  --accent-hover: #5EEAD4;
  --warn: #FBBF24;
  --danger: #F87171;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1200px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--night); font-weight: 600; border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 88px; }
.section-alt { background: var(--night-2); border-top: 1px solid var(--slate); border-bottom: 1px solid var(--slate); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 680px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.eyebrow { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--accent); }
.h1 { font-size: clamp(38px, 5.2vw, 58px); letter-spacing: -0.025em; line-height: 1.06; }
.h2 { font-size: clamp(30px, 3.6vw, 40px); letter-spacing: -0.02em; }
.h3 { font-size: 22px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 600px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: var(--night); }
.btn-primary:hover { background: var(--accent-hover); color: var(--night); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: rgba(45, 212, 191, .08); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; padding-block: 10px; font-weight: 600; font-size: 15px; text-decoration: none; }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--graphite); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 16px; letter-spacing: -0.06em; color: var(--text); }
.brand-mark span, .brand-name strong { color: var(--accent); }
.brand-name { font-family: var(--font-head); font-size: 22px; font-weight: 500; letter-spacing: -0.015em; color: var(--text); }
.brand-name strong { font-weight: 700; }
.brand-sm .brand-mark { width: 32px; height: 32px; flex-basis: 32px; border-radius: 8px; font-size: 13px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 18, 32, .88); -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--slate); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 8px; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.site-nav .nav-cta { margin-left: 8px; background: var(--accent); color: var(--night); font-weight: 600; padding: 0 18px; border-radius: var(--radius-sm); }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--accent-hover); color: var(--night); }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); border-bottom: 1px solid var(--slate); padding: 12px 24px 20px; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; }
  .js .site-nav a { width: 100%; font-size: 17px; }
  .js .site-nav .nav-cta { margin: 8px 0 0; justify-content: center; }
}

/* Hero */
.hero { padding-block: 96px 88px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-side { flex: 1 1 380px; min-width: 0; }
.page-hero { padding-block: 40px 80px; }
.page-hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; margin-top: 48px; }
.page-hero-text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.page-hero-side { flex: 1 1 320px; min-width: 0; }
.service-badge { display: flex; align-items: center; gap: 12px; }

/* Terminal */
.terminal { border-radius: var(--radius); background: var(--graphite); border: 1px solid var(--slate); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--slate); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.terminal-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.terminal-body { padding: 22px 22px 26px; font-family: var(--font-mono); font-size: 14px; line-height: 2; color: var(--text-2); overflow-x: auto; white-space: nowrap; }
.t-ok { color: var(--accent); }
.t-warn { color: var(--warn); }
.t-prompt { color: var(--muted); }
.cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

/* Tarjetas */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--radius); background: var(--graphite); border: 1px solid var(--slate); }
.card-sm { gap: 10px; padding: 24px; border-radius: 14px; }
.card p { color: var(--muted); font-size: 16px; }
.card-sm p { font-size: 15px; }
.card ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.9; color: var(--text-2); }
.card .link-arrow { margin-top: auto; }
a.card { text-decoration: none; color: var(--text); transition: border-color .15s; }
a.card:hover { border-color: var(--line); color: var(--text); }
.icon { color: var(--accent); flex: 0 0 auto; }
.icon-box { width: 48px; height: 48px; border-radius: 12px; background: var(--graphite); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: 0 0 48px; }
.icon-box-lg { width: 64px; height: 64px; flex-basis: 64px; border-radius: 16px; background: var(--night); }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--line); }
.step:first-child { border-top-color: var(--accent); }
.step-num { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.step p { color: var(--muted); font-size: 16px; }

/* Banda destacada */
.feature-band { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: 40px; border-radius: 20px; background: var(--graphite); border: 1px solid var(--slate); }
.feature-band-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.feature-band-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
@media (max-width: 560px) { .feature-band { padding: 28px 22px; } }

/* Proyectos */
.project { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--graphite); border: 1px solid var(--slate); overflow: hidden; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.project:hover { border-color: var(--line); color: var(--text); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .project:hover { transform: none; } }
.project-shot { aspect-ratio: 16 / 10; background: var(--slate); position: relative; overflow: hidden; }
.project-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-shot .shot-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; }
.shot-fallback .bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--night); }
.shot-fallback .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.shot-fallback .url { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-family: var(--font-mono); font-size: 14px; color: var(--muted); word-break: break-all; }
.project-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.project-title { font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.project-type { font-size: 14px; color: var(--muted); }
.project-url { font-family: var(--font-mono); font-size: 13px; color: var(--accent); word-break: break-all; }

/* Sobre mí */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.about-photo { flex: 1 1 300px; max-width: 420px; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--slate); border: 1px solid var(--line); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-text p { color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 6px 12px; border-radius: 8px; background: var(--graphite); border: 1px solid var(--slate); font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }

/* Book */
.book { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 28px; border-radius: var(--radius); background: var(--graphite); border: 1px solid var(--slate); }
.book-text { flex: 999 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.book-text p { color: var(--muted); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { position: relative; padding: 0 0 28px 28px; border-left: 2px solid var(--line); }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--night); border: 2px solid var(--accent); }
.timeline h3 { font-size: 19px; margin-bottom: 4px; }
.timeline p { color: var(--muted); font-size: 16px; }

/* Blog */
.post-card .post-cat { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.post-card h3 { font-size: 20px; line-height: 1.3; }
.article { padding-block: 40px 88px; }
.article-header { display: flex; flex-direction: column; gap: 16px; margin: 40px 0 40px; }
.article-meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.prose { font-size: 18px; line-height: 1.75; color: var(--text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; color: var(--text); margin-top: 1.8em; letter-spacing: -0.01em; }
.prose h3 { font-size: 21px; color: var(--text); margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--text); }
.prose code { font-family: var(--font-mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--graphite); border: 1px solid var(--slate); }
.prose .callout { padding: 20px 22px; border-radius: 14px; background: var(--graphite); border: 1px solid var(--slate); font-size: 17px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--slate); vertical-align: top; }
.prose th { color: var(--text); font-family: var(--font-head); }
.table-wrap { overflow-x: auto; }

/* Ruta */
.breadcrumb { padding-top: 40px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text); }

/* Regla 3-2-1 */
.rule { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 18px; background: var(--graphite); border: 1px solid var(--slate); }
.rule-row { display: flex; align-items: baseline; gap: 14px; }
.rule-num { width: 32px; font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.rule-row span:last-child { color: var(--text-2); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 14px; background: var(--graphite); border: 1px solid var(--slate); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 18px 22px; font-family: var(--font-head); font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* Llamada a la acción */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 44px; border-radius: 20px; background: var(--graphite); border: 1px solid var(--slate); }
.cta-band-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cta-band-text p { color: var(--muted); }
@media (max-width: 560px) { .cta-band { padding: 28px 22px; } }
.other-services a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 14px; border: 1px solid var(--slate); text-decoration: none; color: var(--text); font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.other-services a:hover { border-color: var(--line); color: var(--text); }
.other-services a span { color: var(--accent); }

/* Contacto */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-info p { color: var(--muted); }
.contact-mail { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--font-mono); font-size: 16px; text-decoration: none; }
.form { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 20px; background: var(--graphite); border: 1px solid var(--slate); }
@media (max-width: 560px) { .form { padding: 24px 18px; } }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--night); color: var(--text); font-family: var(--font-body); font-size: 16px; }
.field select { padding: 0 12px; }
.field textarea { padding: 12px 14px; min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 212, 191, .2); }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 20px; accent-color: var(--accent); }
.form .btn { align-self: flex-start; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 16px 18px; border-radius: 12px; font-size: 15px; border: 1px solid; }
.alert-ok { border-color: rgba(45, 212, 191, .45); background: rgba(45, 212, 191, .08); color: var(--text); }
.alert-error { border-color: rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .08); color: var(--text); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.legal-note { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Pie */
.site-footer { border-top: 1px solid var(--slate); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; padding-block: 56px 32px; }
.footer-col h2 { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { display: inline-flex; min-height: 36px; align-items: center; color: var(--text-2); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 300px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 32px; border-top: 1px solid var(--slate); font-size: 14px; color: var(--muted); }

/* 404 */
.error-page { padding-block: 120px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.error-code { font-family: var(--font-mono); font-size: 15px; color: var(--accent); }

/* Utilidades */
.pb-section { padding-bottom: 88px; }
.mb-0 { margin-bottom: 0; }
.h2-sm { font-size: clamp(26px, 3vw, 32px); }
.h3-lg { font-size: 26px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text-2); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-weight: 700; color: var(--accent); }
.error-page .btn-row { justify-content: center; }
.error-page .lead { margin-inline: auto; }

/* Herramienta de envío seguro */
[hidden] { display: none !important; }
.small { font-size: 14px; }
.tool-grid { align-items: flex-start; }
.tool-side { flex-basis: 440px; }
.tool-card { padding: 28px; }
.tool-card > div { display: flex; flex-direction: column; gap: 18px; }
.btn-block { width: 100%; align-self: stretch !important; }
.btn-link { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-link:hover { color: var(--text); }
.btn.is-done { background: var(--graphite); color: var(--accent); border-color: var(--accent); }
.counter { align-self: flex-end; font-family: var(--font-mono); font-size: 12px; }
#secret-text, #secret-output, #secret-link { font-family: var(--font-mono); font-size: 15px; }
#secret-output { min-height: 0; }
.view-wrap { padding-block: 72px 88px; display: flex; flex-direction: column; gap: 20px; }
.view-note { text-align: center; }
@media (max-width: 560px) { .tool-card { padding: 22px 18px; } }
.view-wrap .form, .tool-side .form { flex: none; }
.btn .icon { color: currentColor; }
.timeline-date { font-family: var(--font-mono); font-size: 13px; color: var(--accent) !important; margin-bottom: 4px; }
.cert-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cert-list li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 16px; }
.cert-list li::before { content: "✓"; position: absolute; left: 0; font-family: var(--font-mono); font-weight: 700; color: var(--accent); }

/* Libro */
.book-feature { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: 48px; border-radius: 24px; background: radial-gradient(120% 90% at 0% 50%, rgba(220, 38, 38, .14), transparent 60%), var(--graphite); border: 1px solid var(--slate); }
.book-cover { flex: 0 1 300px; max-width: 300px; margin-inline: auto; display: block; border-radius: 6px; transform: perspective(900px) rotateY(8deg); box-shadow: -18px 24px 48px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .3s; }
.book-cover:hover { transform: perspective(900px) rotateY(0deg) translateY(-4px); }
.book-cover img { width: 100%; height: auto; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .book-cover, .book-cover:hover { transform: none; transition: none; } }
.book-body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.book-body > p:not(.lead) { color: var(--text-2); }
.book-tags { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.book-format { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.book-format .icon { color: var(--muted); }
.book-questions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.book-questions li { position: relative; padding-left: 22px; color: var(--text); font-family: var(--font-head); font-size: 18px; font-weight: 500; }
.book-questions li::before { content: "›"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); font-weight: 700; }
@media (max-width: 700px) { .book-feature { padding: 28px 22px; gap: 32px; } .book-cover { max-width: 220px; } }
.nav-badge { margin-left: 6px; padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(45, 212, 191, .45); font-family: var(--font-mono); font-size: 11px; font-weight: 500; line-height: 1.6; color: var(--accent); }
@media (max-width: 1080px) and (min-width: 861px) { .site-nav a { padding: 0 10px; font-size: 14px; } .nav-badge { display: none; } }

/* Terminal animada de la portada */
.terminal-live { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(45, 212, 191, .06); }
.terminal-live .terminal-body { height: 330px; overflow: hidden; white-space: pre; font-size: 13.5px; line-height: 1.85; }
.terminal-tag { margin-left: auto !important; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; }
.t-line { min-height: 1.85em; overflow: hidden; text-overflow: ellipsis; }
.t-user { color: var(--accent); }
.t-path { color: #7DD3FC; }
.t-dim { color: var(--muted); }
@media (max-width: 560px) { .terminal-live .terminal-body { height: 280px; font-size: 12px; padding: 16px; } }

/* Portada: consola animada de fondo */
.hero-wrap { position: relative; overflow: hidden; isolation: isolate; }
.hero-wrap .hero { position: relative; z-index: 1; min-height: 600px; }
.hero-wrap .hero-text { flex: 0 1 680px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 50%, #000 74%), linear-gradient(to bottom, transparent 0, #000 12%, #000 85%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 50%, #000 74%), linear-gradient(to bottom, transparent 0, #000 12%, #000 85%, transparent 100%); mask-composite: intersect; }
.hero-term { position: absolute; top: 48px; bottom: 24px; right: max(24px, calc((100vw - var(--max)) / 2)); width: min(600px, 48vw); overflow: hidden;
  font-family: var(--font-mono); font-size: 15px; line-height: 1.9; white-space: pre; color: var(--text-2); opacity: calc(.42 * var(--fade, 1)); will-change: transform; }
.hero-term .t-line { min-height: 1.9em; }
.hero-wrap::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60% 70% at 15% 50%, rgba(11, 18, 32, .85), transparent 70%); }
@media (max-width: 860px) {
  .hero-wrap .hero { min-height: 0; }
  .hero-bg { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 75%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 75%, transparent 100%); }
  .hero-term { left: 16px; right: 16px; width: auto; top: 16px; bottom: 16px; font-size: 12px; opacity: calc(.1 * var(--fade, 1)); }
}
