:root {
    --primary: #4b7dc5;
    --secondary: #35588a;
    --accent: #5ea4ee;
    --bg: #f4f7fb;
    --white: #ffffff;
    --text: #1f2937;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.container {
    background: var(--bg);
    width: 100%;
    max-width: 900px;
    border-radius: 22px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    text-align: center;
}

header {
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

header p {
    color: #555;
    font-size: 1rem;
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en desktop */
    gap: 24px;
}

/* Celulares */
@media (max-width: 768px) {
    .projects {
        grid-template-columns: 1fr; /* 1 columna */
    }
}


.card {
    background: var(--white);
    border-radius: 18px;
    padding: 28px 22px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.25);
}

.card h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

.card span {
    align-self: center;
    background: var(--accent);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.card:hover span {
    background: var(--primary);
}

footer {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 500px) {
    header h1 {
    font-size: 1.7rem;
    }
}