        @font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/inter-300.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/jetbrainsmono-400.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 500; font-display: swap; src: url('fonts/playfair-500i.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/playfair-600.woff2') format('woff2'); }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: #0a0a0b; color: #e9e7e1; overflow-x: hidden; background-image: radial-gradient(1100px 620px at 82% -8%, rgba(201, 162, 92, 0.07), transparent 60%), radial-gradient(900px 520px at -5% 105%, rgba(255, 255, 255, 0.025), transparent 60%); background-attachment: fixed; }
::selection { background: rgba(201, 162, 92, 0.28); color: #fff; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #0a0a0b; }
::-webkit-scrollbar-thumb { background: #4b4636; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6b6346; }
#scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: linear-gradient(90deg, #c9a25c, #e6cf97); z-index: 60; transition: width 0.1s linear; }
.noise-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1000; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); }
.gradient-text { background: linear-gradient(120deg, #e7d09a 0%, #c69a4c 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; }
.font-display { font-family: 'Playfair Display', Georgia, serif; letter-spacing: -0.01em; }
.eyebrow { font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.22em; }
.glass-card { background: rgba(255, 255, 255, 0.022); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.07); box-shadow: 0 12px 40px -24px rgba(0, 0, 0, 0.7); transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease; }
.glass-card:hover { border-color: rgba(201, 162, 92, 0.32); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8); }
.spotlight { position: relative; overflow: hidden; }
.spotlight::before { content: ''; position: absolute; top: var(--mouse-y, 50%); left: var(--mouse-x, 50%); width: 340px; height: 340px; background: radial-gradient(circle, rgba(201, 162, 92, 0.10) 0%, transparent 70%); transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.spotlight:hover::before { opacity: 1; }

.gradient-border { position: relative; border-radius: 1.5rem; }
.gradient-border::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(201, 162, 92, 0.7), rgba(201, 162, 92, 0.12) 60%, rgba(255, 255, 255, 0.05)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 1; }

:focus-visible { outline: 2px solid #cda85a; outline-offset: 3px; border-radius: 4px; }

.logo-chip { background: #fff; border-radius: 1rem; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; box-shadow: 0 4px 18px -10px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(201,162,92,0.18); }
.logo-chip img { max-width: 78%; max-height: 78%; width: auto; height: auto; object-fit: contain; display: block; }

.logo-mono { display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 1rem; background: radial-gradient(circle at 30% 25%, #1b1813, #0d0d0f); border: 1px solid rgba(201,162,92,0.55); box-shadow: 0 4px 18px -10px rgba(0,0,0,0.7), inset 0 0 18px -8px rgba(201,162,92,0.35); }
.logo-mono span { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; background: linear-gradient(120deg, #e7d09a 0%, #c69a4c 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; letter-spacing: 0.02em; }
        .logo-nani-wrap { display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #0d0d0f; border: 1px solid rgba(201,162,92,0.45); border-radius: 1rem; padding: 9px; overflow: hidden; transition: border-color .35s ease; }
.logo-nani-wrap:hover { border-color: rgba(201,162,92,0.8); }
.logo-nani { width: 100%; height: 100%; object-fit: contain; display: block; }

        .rail-portrait { position: relative; width: 116px; height: 116px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, #e7d09a 0%, #c69a4c 55%, #5d4828 100%); box-shadow: 0 14px 40px -18px rgba(201,162,92,0.55); flex-shrink: 0; }
.rail-portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 2px solid #0a0a0b; background: #0d0d0f; }

        .timeline { position: relative; --tl: 0px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 0.5rem; bottom: 0.5rem; width: 2px; background: rgba(120, 112, 86, 0.28); }
.timeline::after { content: ''; position: absolute; left: 7px; top: 0.5rem; width: 2px; height: var(--tl); max-height: calc(100% - 1rem); background: linear-gradient(to bottom, #e7d09a, #c69a4c); box-shadow: 0 0 10px rgba(201, 162, 92, 0.4); z-index: 1; transition: height 0.12s linear; }
.timeline > .tl-item { position: relative; margin-left: 2.75rem; }
.timeline > .tl-item::after { content: ''; position: absolute; left: -2.75rem; top: 1.7rem; width: 15px; height: 15px; border-radius: 50%; background: #0d0d0f; border: 2px solid var(--node, #8a857a); box-shadow: 0 0 0 4px #0a0a0b; z-index: 2; transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease; }
.timeline > .tl-item:hover::after { box-shadow: 0 0 0 4px #0a0a0b, 0 0 0 7px rgba(201, 162, 92, 0.16); transform: scale(1.15); }
.timeline > .tl-current::after { border-color: #e7d09a; background: radial-gradient(circle at 50% 50%, #e7d09a, #c69a4c); box-shadow: 0 0 0 4px #0a0a0b, 0 0 0 7px rgba(201, 162, 92, 0.22); }
.tl-date { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--node, #cda85a); margin-bottom: 0.55rem; }
@media (min-width: 1024px) {
    .timeline > .tl-item { margin-left: 9.25rem; }
    .timeline::before, .timeline::after { left: 6.75rem; }
    .timeline > .tl-item::after { left: -2.9rem; top: 1.6rem; }
    .tl-date { position: absolute; left: -9.25rem; top: 1.6rem; width: 5.5rem; text-align: right; white-space: nowrap; margin: 0; }
}

        .rail-nav-link { display: flex; align-items: center; gap: 1rem; padding: 0.35rem 0; color: #8a857a; transition: color 0.35s ease; }
.rail-nav-link:hover { color: #e9e7e1; }
.rail-nav-line { display: inline-block; height: 1px; width: 2rem; background: #54503f; transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease; flex-shrink: 0; }
.rail-nav-label { font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem; transition: color 0.35s ease; }
.rail-nav-link:hover .rail-nav-line { width: 3rem; background: #8a857a; }
.rail-nav-link.nav-active { color: #e7d09a; }
.rail-nav-link.nav-active .rail-nav-line { width: 4rem; background: linear-gradient(90deg, #e7d09a, #c69a4c); }
.rail-nav-link.nav-active .rail-nav-label { color: #e7d09a; }

        .js #content .glass-card { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js #content .glass-card.is-visible { opacity: 1; transform: none; }
        .glass-card h3 a, .glass-card h4 a { text-decoration: underline; text-decoration-color: rgba(201, 162, 92, 0.5); text-underline-offset: 3px; }
        .field-label { display: block; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem; color: #9a958a; margin-bottom: 0.4rem; }
.field-input { width: 100%; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 0.75rem; padding: 0.7rem 0.9rem; color: #e9e7e1; font-size: 0.95rem; font-family: 'Inter', sans-serif; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.field-input::placeholder { color: #6b6b63; }
.field-input:focus { outline: none; border-color: rgba(201, 162, 92, 0.55); box-shadow: 0 0 0 3px rgba(201, 162, 92, 0.12); }
textarea.field-input { resize: vertical; min-height: 7rem; }
        .grecaptcha-badge { visibility: hidden; }
        @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .js #content .glass-card { opacity: 1 !important; transform: none !important; }
}
/* El rail es fijo a pantalla completa en escritorio: con tres roles actuales puede superar
   la altura de pantallas bajas, así que permitimos desplazamiento interno */
@media (min-width: 1024px) { #rail { overflow-y: auto; } }

/* Visor del CV en PDF (modal <dialog>) */
.cv-modal { position: fixed; inset: 0; margin: auto; width: min(88vw, 920px); height: min(84vh, 1040px); max-width: none; max-height: none; padding: 0; border: 1px solid rgba(201,162,92,0.35); border-radius: 1.25rem; background: #0d0d0f; color: #e9e7e1; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9); overflow: hidden; }
.cv-modal::backdrop { background: rgba(6,6,7,0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cv-modal-panel { display: flex; flex-direction: column; height: 100%; }
.cv-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid rgba(201,162,92,0.22); flex-wrap: wrap; }
.cv-modal-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.05rem; font-weight: 600; margin-top: 0.15rem; color: #e9e7e1; }
.cv-modal-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.cv-btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.95rem; border-radius: 9999px; border: 1px solid rgba(201,162,92,0.35); background: rgba(255,255,255,0.03); color: #e7d09a; font-size: 0.85rem; font-weight: 500; line-height: 1; cursor: pointer; white-space: nowrap; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.cv-btn:hover { background: rgba(201,162,92,0.12); border-color: rgba(201,162,92,0.7); }
.cv-btn:focus-visible { outline: 2px solid #e7d09a; outline-offset: 2px; }
.cv-btn-primary { background: linear-gradient(120deg, #e7d09a 0%, #c69a4c 100%); color: #14110b; border-color: transparent; }
.cv-btn-primary:hover { background: linear-gradient(120deg, #f0dfae 0%, #d3a75a 100%); border-color: transparent; color: #14110b; }
.cv-btn-icon { padding: 0.55rem; }
.cv-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.cv-modal-frame { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: #fff; }
.cv-modal-note { padding: 0.55rem 1.1rem; font-size: 0.75rem; color: #8a857a; border-top: 1px solid rgba(201,162,92,0.15); }
body:has(.cv-modal[open]) { overflow: hidden; }
@media (max-width: 640px) {
    .cv-modal { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
    .cv-btn-label { display: none; }
    .cv-btn { padding: 0.55rem 0.7rem; }
}

@media print {
    @page { size: A4; margin: 14mm; }
    .no-print, .noise-overlay, #scroll-progress, #mobile-menu, #rail-nav, .rail-actions, #contact-form { display: none !important; }
    .logo-chip { background: #fff !important; box-shadow: none !important; border: 1px solid #d4d4d8 !important; }
    .logo-mono { background: #fff !important; border: 1px solid #caa15c !important; box-shadow: none !important; }
    .logo-mono span { -webkit-text-fill-color: #6b4f1f !important; color: #6b4f1f !important; }
                .logo-nani-wrap { background: #0d0d0f !important; border: 1px solid #caa15c !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    .rail-portrait { box-shadow: none !important; }
    .rail-portrait img { border-color: #fff !important; }
    html, body { background: #fff !important; color: #111 !important; }
                #rail { position: static !important; width: 100% !important; height: auto !important; }
    #content { margin-left: 0 !important; }
                .glass-card, .js #content .glass-card, .spotlight, [style*="opacity"] { opacity: 1 !important; transform: none !important; }
    .glass-card { background: #fff !important; border: 1px solid #d4d4d8 !important; box-shadow: none !important; backdrop-filter: none !important; }
                [class*="bg-slate-7"], [class*="bg-slate-8"], [class*="bg-slate-9"] { background: #f1f5f9 !important; color: #111 !important; border: 1px solid #cbd5e1 !important; }
    .text-white, .text-slate-300, .text-slate-400, .text-slate-500, .text-slate-600, .text-slate-700 { color: #1f2937 !important; }
    .gradient-text { background: none !important; -webkit-text-fill-color: #6b4f1f !important; color: #6b4f1f !important; background-clip: border-box !important; }
    a { color: #0369a1 !important; text-decoration: none !important; }
    .gradient-border::before { display: none !important; }
    .gradient-border { border: 1px solid #cbd5e1 !important; }
    .timeline::before { background: #c7c7c7 !important; }
    .timeline::after { display: none !important; }
    .timeline > .tl-item::after { background: #fff !important; border-color: #9a9a9a !important; box-shadow: 0 0 0 3px #fff !important; }
    .timeline > .tl-current::after { background: #caa15c !important; border-color: #caa15c !important; }
    .tl-date { color: #6b4f1f !important; }
                section, .glass-card, .grid > div, footer { break-inside: avoid; page-break-inside: avoid; }
    h1, h2, h3, h4 { break-after: avoid; }
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

/* Color del nodo de cada entrada de la línea de tiempo (antes style="--node:…" inline) */
.tl-node-7da3a0 { --node: #7da3a0; }
.tl-node-8a857a { --node: #8a857a; }
.tl-node-8d88a6 { --node: #8d88a6; }
.tl-node-a8838f { --node: #a8838f; }
.tl-node-bd9163 { --node: #bd9163; }
.tl-node-cda85a { --node: #cda85a; }
.tl-node-e7d09a { --node: #e7d09a; }


/* Barras de idioma (antes style="width:…" inline) */
.w-85 { width: 85%; }

/* Selector de idioma del rail */
.lang-switch { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: #8a857a; }
.lang-switch a { color: #8a857a; transition: color 0.3s ease; }
.lang-switch a:hover { color: #e7d09a; }
.lang-current { color: #e7d09a; }
.lang-sep { margin: 0 0.5rem; }

/* Roles actuales en el rail: lista compacta y discreta (antes píldoras) */
.roles-list { display: flex; flex-direction: column; gap: 0.2rem; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.02em; color: #8a857a; }
.roles-list li { display: flex; align-items: center; gap: 0.55rem; line-height: 1.5; }
.roles-dot { width: 5px; height: 5px; border-radius: 9999px; background: #10b981; flex-shrink: 0; }
