/* Variables globales */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --background-color: #ffffff;
    --section-background: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    --list-text-color: #e1e1e1;
    --description-color: #5e5d5c;
    --dark-text-color: #1a1a1a;
}

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

html {
    height: 100%;
    background: radial-gradient(ellipse at bottom, #5091DD 0%, #030617 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Efecto de grid en el fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(3, 6, 23, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(3, 6, 23, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: -1;
}

/* Header y contenedor del perfil */
header {
    background-image: url('img/background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
}

.profile-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary-color);
    box-shadow: var(--box-shadow);
    flex-shrink: 0;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 2.5rem;
}

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

.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Secciones principales */
section {
    background-color: transparent;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    z-index: 0;
}

section > * {
    position: relative;
    z-index: 1;
}

#perfil {
    background-image: url('img/profile-bg.jpg');
    background-size: cover;
    background-position: center;
}

#experiencia {
    background-image: url('img/experience-bg.jpg');
    background-size: cover;
    background-position: center;
}

#educacion {
    background-image: url('img/education-bg.jpg');
    background-size: cover;
    background-position: center;
}

#habilidades {
    background-image: url('img/skills-bg.jpg');
    background-size: cover;
    background-position: center;
}

#idiomas {
    background-image: url('img/languages-bg.jpg');
    background-size: cover;
    background-position: center;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Experiencia laboral */
.job, .education-item {
    margin-bottom: 1.5rem;
}

.job-details, .education-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.job-description {
    color: var(--description-color);
    font-weight: 500;
    line-height: 1.6;
}

.date {
    font-style: italic;
    font-size: 0.9rem;
}

/* Habilidades */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--description-color);
}

.skill-category li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Idiomas */
.language-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.language {
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
}

/* Listas */
ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--list-text-color);
    font-weight: 500;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

#perfil li {
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .profile-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .profile-left {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        flex-direction: row;
    }

    .job-details, .education-details {
        flex-direction: column;
        align-items: flex-start;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .language-container {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }
}

/* Mejoras en la accesibilidad */
@media (prefers-reduced-motion: reduce) {
    section {
        transition: none;
    }
    
    section:hover {
        transform: none;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e1e1e1;
        --section-background: rgba(255, 255, 255, 0.1);
    }
    
    section {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    header::before {
        background: rgba(255, 255, 255, 0.8);
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.5s ease-out forwards;
}

.cloud-description {
    color: var(--dark-text-color);
    font-weight: 500;
    text-shadow: none;
} 