:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --card-border: #222222;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #8b5cf6; /* Violeta eléctrico */
    --accent-glow: rgba(139, 92, 246, 0.3);
    --font-main: 'Outfit', sans-serif;
    --gap: 1.5rem;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    padding: 2rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    gap: var(--gap);
    max-width: 1200px;
    width: 100%;
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Specific Cards */
.profile-card {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: space-between;
    background: linear-gradient(145deg, #151515, #0a0a0a);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.handle {
    color: var(--accent);
    font-weight: 600;
}

.tagline {
    font-size: 1.5rem;
    color: #cccccc;
    font-weight: 300;
    margin-bottom: 2rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.9rem;
    color: var(--accent);
    width: fit-content;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.status-link {
    font-weight: 700;
    text-decoration: underline;
}

/* Bio Card */
.bio-card {
    grid-column: span 2;
}

.bio-card p {
    color: #cccccc;
    margin-bottom: 1rem;
}

/* Sovereign Card */
.sovereign-card {
    grid-column: span 1;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
    border-color: rgba(139, 92, 246, 0.2);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.sovereign-card .icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.sovereign-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.btn-primary {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #7c3aed;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Connect Card */
.connect-card {
    grid-column: span 1;
}

.btn-mpib {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: #ffffff;
    color: #000000;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.btn-mpib:hover {
    background: #f0f0f0;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    padding: 0.5rem;
    border-radius: 6px;
    color: #888;
}

.social-links a:hover {
    color: white;
    background: #222;
}

/* Projects Card */
.projects-card {
    grid-column: span 2;
}

.project-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid transparent;
}

.project-list li a:hover {
    border-color: var(--accent);
}

.project-title {
    font-weight: 600;
    color: white;
}

.project-desc {
    color: #666;
    font-size: 0.9rem;
}

/* Experience Card */
.experience-card {
    grid-column: span 2;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #222;
}

.timeline-item:last-child {
    border-bottom: none;
}

.date {
    font-size: 0.8rem;
    color: var(--accent);
    min-width: 80px;
    font-weight: 600;
    text-transform: uppercase;
}

.content h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.company {
    font-size: 0.9rem;
    color: #666;
}

.timeline-footer {
    margin-top: 1.5rem;
    text-align: right;
}

.link-arrow {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .profile-info h1 {
        font-size: 2rem;
    }
}
