:root {
    --bg-body: #111827; /* Fondo oscuro por si la imagen tarda en cargar */
    --bg-card: rgba(255, 255, 255, 0.85); /* Blanco al 95% para efecto cristal */
    --text-main: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #9ca3af;
    --border-color: #e5e7eb;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Configuración de la imagen de fondo estática */
    background-color: var(--bg-body);
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop'); /* Cambia esta URL por tu imagen */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Esto hace que el fondo se quede quieto al hacer scroll */
    
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding: 3rem 1.5rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

/* Utilidades de Tarjetas con efecto Glassmorphism */
.card {
    background-color: var(--bg-card);
    backdrop-filter: blur(8px); /* Desenfoque del fondo que pasa a través de la tarjeta */
    -webkit-backdrop-filter: blur(8px); /* Soporte para Safari */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Títulos con más importancia y línea separadora */
.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}

/* 1. Cabecera y Biografía */
.header-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-badge {
    align-self: flex-start;
    background-color: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.name-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.bio {
    color: var(--text-secondary);
    max-width: 700px;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* 2. Stack Tecnológico */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stack-group h4 {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.stack-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stack-list li {
    background-color: rgba(249, 250, 251, 0.8);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 3. Grid de Experiencia y Formación */
.timeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.timeline-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.role-title {
    font-weight: 600;
    color: var(--text-main);
}

.date-range {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.company {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 4. Contacto Profesional */
.contact-card {
    background-color: rgba(29, 36, 52, 0.95);
    color: #ffffff;
    border-color: rgba(75, 85, 99, 0.4);
}

.contact-card .card-title {
    color: #ffffff;
    border-bottom-color: #374151;
}

.contact-text {
    color: #9ca3af;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.button-group {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #4b5563;
}

.btn-secondary:hover {
    background-color: #1f2937;
    border-color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-grid {
        grid-template-columns: 1fr;
    }
    .name-title {
        font-size: 2rem;
    }
    .button-group {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}