:root {
    --bg-base: #050505;
    --bg-surface: #111111;
    --border-subtle: #222222;
    --text-main: #f0f0f0;
    --text-muted: #888888;
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.2);
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* === NAVBAR === */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}
.logo-accent { color: var(--accent); }

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 2rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-main); }

/* === BOTONES === */
.btn-primary, .btn-primary-sm {
    background-color: var(--text-main);
    color: var(--bg-base) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-primary-sm { padding: 0.5rem 1rem; margin-left: 2rem; }
.btn-primary:hover, .btn-primary-sm:hover {
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--text-main); }

/* === HERO SECTION === */
.hero {
    padding: 8rem 5% 6rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-actions { display: flex; justify-content: center; gap: 1rem; }

/* === TECH STACK LOGOS === */
.scrolling-stack {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 3.5rem 5%;
    text-align: center;
    background-color: var(--bg-surface);
}

.stack-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    letter-spacing: 3px;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-logo {
    height: 40px;
    fill: #555555; /* Un gris corporativo neutro y oscuro */
    transition: all 0.3s ease;
    cursor: default;
}

/* Logos anchos como AWS o Cisco se ven gigantes si no se ajustan */
.tech-logo.logo-wide {
    height: 28px;
}

.tech-logo:hover {
    fill: #ffffff; /* Al pasar el ratón, se vuelven blancos puros y brillantes */
    transform: translateY(-4px) scale(1.05);
}

@media (max-width: 768px) {
    .logo-grid { gap: 2.5rem; }
    .tech-logo { height: 30px; }
    .tech-logo.logo-wide { height: 20px; }
}

/* Ajustes para teléfonos móviles */
@media (max-width: 768px) {
    .logo-grid { gap: 2.5rem; }
    .tech-logo { height: 28px; }
}

/* === SERVICIOS (GRID) === */
.services { padding: 6rem 5%; max-width: 1200px; margin: 0 auto; }

.section-header { margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; letter-spacing: -1px; margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 2.5rem;
    border-radius: 8px;
    transition: transform 0.3s, border-color 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--text-muted);
}

.card-icon {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* === ACADEMIA === */
.academy {
    background: linear-gradient(to right, var(--bg-surface), var(--bg-base));
    border-top: 1px solid var(--border-subtle);
    padding: 6rem 5%;
}
.academy-content { max-width: 800px; margin: 0 auto; text-align: center; }
.academy h2 { font-size: 2.5rem; margin-bottom: 1.5rem; letter-spacing: -1px; }
.academy p { color: var(--text-muted); font-size: 1.1rem; }

/* === FOOTER === */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }

.mono-text { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.85rem; text-align: right; margin-bottom: 0.5rem;}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .nav-links { display: none; }
    .footer-grid { flex-direction: column; }
    .mono-text { text-align: left; }
}
