:root {
    --bg: #020104;
    --fg: #f1f1f1;
    --accent: #8A5FD8;
    --accent-hover: #c59fff;
    --muted: #999;
    --border: #333;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--fg);
    padding: 2rem;
    line-height: 1.6;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.language-selector {
    text-align: right;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.language-selector .lang-link {
    color: var(--muted);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.language-selector .lang-link:hover {
    color: var(--accent-hover);
}

.language-selector .lang-link.active {
    color: var(--accent);
    font-weight: 600;
}

.language-selector .lang-separator {
    color: var(--border);
    margin: 0 0.3rem;
}

.profile-img {
    border-radius: 50%;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 2px solid var(--accent);
    display: block;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

h1 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

h2 {
    color: var(--accent);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

a:hover::after {
    width: 100%;
    background: var(--accent-hover);
}

a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.divider {
    border: none;
    border-top: 2px solid var(--accent);
    width: 60px;
    margin: 2rem 0;
}

footer {
    margin-top: 3rem;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--border);
}

section {
    margin-bottom: 2rem;
}

.intro {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.service-item {
    margin-bottom: 1.5rem;
}

.service-item strong {
    color: var(--fg);
}

.contact-info {
    background: rgba(138, 95, 216, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .intro {
        font-size: 1.1rem;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    .language-selector {
        margin-bottom: 1.5rem;
    }
}

/* Mejor contraste para accesibilidad */
@media (prefers-contrast: high) {
    :root {
        --accent: #a78bfa;
        --fg: #ffffff;
    }
}

/* Respeto por preferencias de movimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* Email protection */
#email-protection > span {
    display:none;
}

/* Override link styles for language selector */
.language-selector .lang-link::after {
    display: none;
}