:root {
    --bg: #070707; --text: #ffffff; --accent: #66d9ed; --magenta: #9440e8;
    --border: rgba(255,255,255,0.08); --f-giant: 'Archivo Black', sans-serif; --f-mono: 'Roboto Mono', monospace;
}
[data-theme="light"] {
    --bg: #f2f2f7; --text: #070707; --accent: #2c49d8; --magenta: #6e20c4; --border: rgba(0,0,0,0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; overflow-x: hidden; transition: 0.3s; }

/* HEADER */
.main-header { position: fixed; width: 100%; top: 0; z-index: 5000; padding: 20px 0; background: rgba(7,7,7,0.1); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.brand { font-family: var(--f-mono); font-weight: 700; color: var(--text); text-decoration: none; font-size: 1rem; }
.brand span { color: var(--accent); }
.nav-desktop { display: flex; gap: 40px; }
.nav-item { display: flex; flex-direction: column; text-decoration: none; }
.nav-num { font-family: var(--f-mono); font-size: 0.55rem; color: var(--accent); }
.nav-text { font-family: var(--f-mono); font-size: 0.8rem; color: var(--text); text-transform: lowercase; }

.header-right { display: flex; align-items: center; gap: 20px; }
.lang-btn { background: none; border: none; color: var(--text); font-family: var(--f-mono); font-size: 0.75rem; cursor: pointer; opacity: 0.3; }
.lang-btn.active { opacity: 1; color: var(--accent); font-weight: 700; }
.icon-btn { background: var(--border); border: none; color: var(--text); width: 35px; height: 35px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* HERO */
.hero { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; }
.hero-text { position: absolute; font-family: var(--f-giant); font-size: clamp(2.5rem, 16vw, 13rem); line-height: 0.8; text-align: center; white-space: nowrap; pointer-events: none; }
.bg-text { color: var(--text); z-index: 1; }
.fg-text { color: transparent; -webkit-text-stroke: 1px var(--text); opacity: 0.3; z-index: 3; }
.hero-image { position: relative; z-index: 2; width: clamp(260px, 55vw, 440px); margin-top: 40px; }
.hero-image img { width: 100%; filter: grayscale(1); mask-image: linear-gradient(to bottom, black 85%, transparent 100%); }
.hero-label { margin-top: 30px; font-family: var(--f-mono); font-size: 0.65rem; color: var(--accent); letter-spacing: 2px; text-align: center; }

/* SECCIONES AIRE */
.section { padding: 140px 0; border-top: 1px solid var(--border); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.glow-header { text-align: center; margin-bottom: 80px; }
.title-shimmer { font-family: var(--f-giant); font-size: clamp(2rem, 8vw, 4rem); background: linear-gradient(90deg, var(--text), var(--accent), var(--text)); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shine 5s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.mono-tag { font-family: var(--f-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 4px; display: block; margin-bottom: 15px; }

/* EXPERTISE */
.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 50px; }
.exp-card { background: rgba(255,255,255,0.02); border: 1px solid var(--border); padding: 40px 30px; border-radius: 20px; transition: 0.4s; }
.exp-card:hover { transform: translateY(-10px); border-color: var(--accent); }
.card-top { display: flex; justify-content: space-between; margin-bottom: 20px; font-family: var(--f-mono); font-size: 0.75rem; color: var(--accent); }

/* ACORDEON */
.acc-item { background: var(--magenta); margin-bottom: 15px; border-radius: 12px; overflow: hidden; }
.acc-head { padding: 30px; display: flex; justify-content: space-between; cursor: pointer; font-weight: 700; font-size: 0.95rem; }
.acc-body { max-height: 0; background: rgba(0,0,0,0.2); transition: 0.5s ease; padding: 0 30px; overflow: hidden; }
.acc-item.active .acc-body { max-height: 300px; padding: 30px; }

/* LIBRO */
.refined-divider { display: flex; align-items: center; justify-content: center; gap: 30px; margin-bottom: 60px; }
.refined-divider.small { margin-top: 100px; }
.line { height: 1px; width: 100px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.label-premium { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 8px; color: var(--accent); text-transform: uppercase; font-weight: 700; }
.book-card-elite { background: rgba(255,255,255,0.02); border: 1px solid var(--border); padding: 60px; border-radius: 24px; display: flex; align-items: center; gap: 50px; max-width: 900px; margin: 0 auto; transition: 0.4s; }
.book-visual { width: 100px; height: 140px; background: var(--accent); color: #000; font-family: var(--f-giant); display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 2.5rem; box-shadow: 20px 20px 60px rgba(0,0,0,0.5); }
.btn-wsp { border: 1px solid var(--accent); padding: 12px 25px; border-radius: 50px; color: var(--accent); text-decoration: none; font-family: var(--f-mono); font-size: 0.7rem; font-weight: 700; margin-top: 20px; display: inline-block; transition: 0.3s; }
.btn-wsp:hover { background: var(--accent); color: #000; }

/* FORMACION */
.edu-row { display: flex; align-items: center; gap: 60px; padding: 50px 0; border-bottom: 1px solid var(--border); transition: 0.4s; }
.edu-year { font-family: var(--f-giant); font-size: 5rem; color: var(--text); opacity: 0.05; min-width: 140px; transition: 0.4s; }
.edu-row:hover .edu-year { opacity: 1; color: var(--accent); transform: scale(1.1); }

/* FOOTER */
.footer { padding: 100px 0 60px; background: var(--bg); border-top: 1px solid var(--border); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 80px; }
.footer-tagline { font-family: var(--f-mono); font-size: 0.7rem; color: var(--accent); margin-top: 15px; letter-spacing: 2px; }
.social-links { display: flex; flex-direction: column; gap: 15px; align-items: flex-end; }
.social-item { font-family: var(--f-mono); font-size: 0.85rem; color: var(--text); text-decoration: none; text-transform: uppercase; transition: 0.3s; opacity: 0.6; }
.social-item i { margin-left: 10px; font-size: 0.9rem; color: var(--accent); }
.social-item:hover { opacity: 1; transform: translateX(-10px); color: var(--accent); }
.footer-bottom { padding-top: 40px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 2px; opacity: 0.4; }

/* MOBILE NAVIGATION */
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg); z-index: 6000; display: none; flex-direction: column; align-items: center; justify-content: center; }
.mobile-overlay.active { display: flex; }
.mobile-nav { display: flex; flex-direction: column; gap: 40px; text-align: center; }
.mobile-nav a { font-family: var(--f-giant); font-size: 2rem; color: var(--text); text-decoration: none; }
.close-btn { position: absolute; top: 30px; right: 30px; font-size: 3rem; color: var(--text); background: none; border: none; }

@media (max-width: 1024px) {
    .nav-desktop { display: none; }
    .header-inner { padding: 0 20px; }
    .expertise-grid { grid-template-columns: 1fr; }
    .edu-row { flex-direction: column; text-align: center; gap: 10px; }
    .book-card-elite { flex-direction: column; text-align: center; padding: 40px 20px; }
    .footer-grid { flex-direction: column; gap: 50px; text-align: center; align-items: center; }
    .social-links { align-items: center; }
}

.noise { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: url('https://grainy-gradients.vercel.app/noise.svg'); opacity: 0.05; pointer-events: none; z-index: 9000; }
#custom-cursor { width: 15px; height: 15px; background: var(--accent); border-radius: 50%; position: fixed; pointer-events: none; z-index: 10000; mix-blend-mode: difference; }

.marquee-premium { overflow: hidden; padding: 30px 0; border-top: 1px solid var(--border); }
.marquee-track { display: flex; gap: 80px; width: max-content; animation: scroll 40s linear infinite; }
.marquee-track span { font-family: var(--f-mono); color: var(--text); font-size: 1.1rem; opacity: 0.3; text-transform: uppercase; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }