/* Variables de Diseño Moderno (Estilo Minimalista Oscuro) */
:root {
    --bg-dark: #09090b;
    --bg-card: #18181b;
    --border-color: #27272a;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent: #ffffff;
    --accent-hover: #e4e4e7;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    font-family: var(--font-sans);
    color: var(--text-main);
}

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

.text-center { text-align: center; }

/* Navbar */
.navbar {
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    z-index: 100;
}

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

.logo {
    font-weight: 700;
    letter-spacing: -0.05em;
    font-size: 1.25rem;
    color: var(--text-main);
    text-decoration: none;
}

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

.nav-links a:hover {
    color: var(--text-main);
}

/* Botones */
.btn-primary {
    background-color: var(--accent);
    color: var(--bg-dark) !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}
.btn-primary:hover { background-color: var(--accent-hover); }

.btn-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
.btn-secondary:hover { background-color: var(--bg-card); }

/* Hero Section */
.hero {
    padding: 10rem 0 6rem 0;
}

.hero-content {
    max-width: 800px;
    text-align: left;
}

.badge {
    background-color: var(--border-color);
    color: var(--text-main);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

/* Ticker Metricas */
.ticker {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
    background-color: rgba(24, 24, 27, 0.4);
}

.ticker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ticker-num {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    letter-spacing: -0.02em;
}

.ticker-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Portfolio Section */
.portfolio-section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.project-role {
    font-weight: 600;
    color: var(--text-main);
}

.project-card h3 {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.pillar h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pillar p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.tech-stack span {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    background-color: rgba(24, 24, 27, 0.2);
}

.about-grid {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 4rem;
    align-items: center;
}

.image-placeholder img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.about-text-side h2 {
    font-size: 2.25rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.about-text-side p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.timeline {
    margin-top: 2rem;
    border-left: 1px solid var(--border-color);
    padding-left: 1.5rem;
}

.timeline-item {
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1.5rem - 4px);
    top: 4px;
    width: 7px;
    height: 7px;
    background-color: var(--text-muted);
    border-radius: 50%;
}

.timeline-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-item p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Contact & Footer */
.contact-section {
    padding: 8rem 0;
    border-top: 1px solid var(--border-color);
}

.contact-section h2 { font-size: 2.5rem; margin-bottom: 1rem; letter-spacing: -0.03em; }
.contact-section p { color: var(--text-muted); margin-bottom: 2rem; }

.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    font-size: 0.85rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

/* Responsivo */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .ticker-grid, .pillars-grid, .about-grid { grid-template-columns: 1fr; }
    .about-grid { gap: 2rem; }
    .nav-container {
        height: auto;
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .logo {
        font-size: 1.05rem;
        line-height: 1.2;
    }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        align-items: center;
    }
    .nav-links a {
        margin-left: 0;
        font-size: 0.85rem;
        line-height: 1.2;
    }
    .nav-links .btn-primary {
        padding: 0.45rem 0.8rem;
    }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
}

.social-link:hover {
    color: var(--text-muted);
    border-bottom: 1px solid var(--text-muted);
}