:root {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
    --border: #334155;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.social-links a {
    margin-right: 1.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* Secciones */
section {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

h2 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
    opacity: 0.9;
}

/* Proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    padding: 2rem;
    background-color: var(--bg-alt);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tags span {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.project-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Skills con Iconos */
.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skills-group h3 {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skills-grid-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 1.2rem;
}

.skill-card {
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--border);
}

.skill-card img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.skill-card span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

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

.lang-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-item img {
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.lang-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.copy {
    font-size: 0.8rem;
    color: var(--text-secondary);
}