:root {
    --bg-main: #f2f3f8;
    --blue-light: #008be3;
    --blue-dark: #1a0088;
    --text-color: #333333;
    --card-border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Principal */
.header {
    background-color: var(--blue-light);
    color: white;
    padding: 22px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.header h1 span {
    font-weight: 700;
}

.back-btn {
    background: white;
    color: var(--blue-light);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s, background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    transform: translateY(-2px);
    background-color: #f8f9fa;
}

/* Banner Sub-Header */
.sub-header {
    background-color: var(--blue-dark);
    color: white;
    padding: 28px 40px;
}

.sub-header-title {
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
    font-weight: 500;
}

.sub-header-subtitle {
    font-size: 0.95rem;
    opacity: 0.88;
    margin-top: 6px;
}

/* Contenido Principal */
.main-content {
    padding: 30px 40px;
    flex: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Tarjeta de Proyecto */
.project-card {
    background: #ffffff;
    border-radius: var(--card-border-radius);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-badge {
    background-color: rgba(0, 139, 227, 0.1);
    color: var(--blue-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-status {
    font-size: 0.78rem;
    color: #2e7d32;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-status.in-progress {
    color: #e65100;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-description {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.detail-btn {
    background-color: var(--blue-dark);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}

.detail-btn:hover {
    background-color: var(--blue-light);
}

/* Responsivo */
@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .sub-header {
        padding: 20px;
    }

    .main-content {
        padding: 20px 15px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}