* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0f;
    color: #e4e4e7;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.accent { color: #3a6eff; }

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: #e4e4e7;
}

.logo-symbol { color: #3a6eff; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    color: rgba(228, 228, 231, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: #3a6eff; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-menu-btn span { width: 24px; height: 2px; background: white; transition: 0.3s; }

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}
.blob-1 { width: 400px; height: 400px; background: linear-gradient(135deg, #f1b8dd, #e666ff); top: -100px; left: -100px; }
.blob-2 { width: 500px; height: 500px; background: linear-gradient(135deg, #868afd, #3a6eff); bottom: -150px; right: -100px; animation-delay: 5s; }
.blob-3 { width: 300px; height: 300px; background: linear-gradient(135deg, #00d4ff, #3a6eff); top: 50%; left: 20%; animation-delay: 10s; }
.blob-4 { width: 350px; height: 350px; background: linear-gradient(135deg, #bb6bf0, #8b3dff); bottom: 20%; right: 30%; animation-delay: 15s; }

.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.05;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content { flex: 1; max-width: 580px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(58, 110, 255, 0.1);
    border: 1px solid rgba(58, 110, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #3a6eff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hero-subtitle { font-size: 1.25rem; margin-bottom: 1rem; }

.gradient-text {
    background: linear-gradient(225deg, #f1b8dd 0%, #868afd 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-quote {
    font-size: 1rem;
    color: rgba(228, 228, 231, 0.6);
    font-style: italic;
    margin-bottom: 2rem;
    font-family: 'JetBrains Mono', monospace;
}

.quote-mark { color: #3a6eff; font-size: 1.2rem; }

.pillars { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.pillar {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.pillar:hover {
    background: rgba(58, 110, 255, 0.05);
    border-color: rgba(58, 110, 255, 0.2);
    transform: translateX(8px);
}

.pillar-icon { font-size: 1.75rem; }
.pillar-title { font-weight: 700; margin-bottom: 0.25rem; color: #3a6eff; }
.pillar-desc { font-size: 0.85rem; color: rgba(228, 228, 231, 0.6); line-height: 1.4; }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

.btn-primary {
    background: linear-gradient(135deg, #3a6eff, #2a5ae0);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(58, 110, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 110, 255, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(58, 110, 255, 0.3);
    transform: translateY(-2px);
}

.btn-icon { transition: transform 0.3s ease; }
.btn-primary:hover .btn-icon { transform: translateX(4px); }

/* ========== TERMINAL ========== */
.hero-media { flex: 1; display: flex; justify-content: center; }
.terminal {
    width: 100%;
    max-width: 550px;
    background: #0a0a0f;
    border-radius: 1rem;
    border: 1px solid rgba(58, 110, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    font-family: 'JetBrains Mono', monospace;
}
.terminal-header {
    background: rgba(20, 20, 30, 0.9);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(58, 110, 255, 0.2);
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }
.terminal-title { margin-left: auto; font-size: 0.75rem; color: rgba(228, 228, 231, 0.5); }
.terminal-body { padding: 1.5rem; }
.terminal-line { margin-bottom: 0.5rem; }
.prompt { color: #3a6eff; margin-right: 0.75rem; }
.command { color: #e4e4e7; }
.terminal-output {
    color: rgba(228, 228, 231, 0.7);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.skill-tag {
    display: inline-block;
    background: rgba(58, 110, 255, 0.1);
    border: 1px solid rgba(58, 110, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    margin: 0.25rem;
}
.principles { font-size: 0.8rem; letter-spacing: 0.02em; }
.typing .cursor { animation: blink 1s infinite; }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
}
.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
}
.scroll-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(58, 110, 255, 0.5), transparent);
    animation: scrollBounce 2s ease-in-out infinite;
}

/* ========== ANIMACIONES ========== */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(3%, 3%) scale(1.05); }
    75% { transform: translate(-3%, -2%) scale(0.95); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}
.animate-scale-up {
    animation: scaleUp 0.8s ease forwards;
    opacity: 0;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.3s; }
.animate-delay-3 { animation-delay: 0.5s; }
.animate-delay-4 { animation-delay: 0.7s; }
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes scaleUp {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* ========== SECCIONES ========== */
section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #3a6eff;
    background: rgba(58, 110, 255, 0.1);
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}
.section-title { font-size: 2.5rem; font-weight: 700; }

.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}
.arsenal-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
}
.arsenal-item:hover {
    background: rgba(58, 110, 255, 0.1);
    border-color: rgba(58, 110, 255, 0.3);
    transform: translateY(-4px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.project-card:hover {
    background: rgba(58, 110, 255, 0.05);
    border-color: rgba(58, 110, 255, 0.2);
    transform: translateY(-4px);
}
.project-icon { font-size: 2rem; margin-bottom: 1rem; }
.project-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.project-desc { font-size: 0.85rem; color: rgba(228, 228, 231, 0.6); line-height: 1.5; }

.philosophy-section { padding: 4rem 0 5rem; }
.philosophy-card {
    background: linear-gradient(135deg, rgba(58, 110, 255, 0.05), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(58, 110, 255, 0.2);
    border-radius: 2rem;
    padding: 3rem;
    text-align: center;
}
.philosophy-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: #e4e4e7;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.philosophy-author {
    color: #3a6eff;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 2rem;
}
.philosophy-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}
.copyright { color: rgba(228, 228, 231, 0.5); }
.tagline { color: #3a6eff; font-family: 'JetBrains Mono', monospace; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-container { flex-direction: column; text-align: center; gap: 3rem; }
    .hero-content { max-width: 100%; display: flex; flex-direction: column; align-items: center; }
    .pillar { text-align: left; width: 100%; }
    .hero-name { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .philosophy-quote { font-size: 1.2rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero { padding: 5rem 1rem 3rem; }
    .hero-name { font-size: 2rem; }
    .arsenal-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
    .philosophy-footer { flex-direction: column; }
}
