:root {
    --bg-page: #7B8FDE;
    --bg-card: #ffffff;
    --primary-dark: #2C4A7C;
    --primary-medium: #4A6FA5;
    --primary-light: #6B83C4;
    --text-dark: #1a1a1a;
    --text-main: #333333;
    --text-muted: #666666;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    padding: 20px;
}

/* Header institucional */
.institutional-header {
    background: var(--bg-card);
    border-radius: 8px 8px 0 0;
    padding: 25px 40px;
    border-bottom: 3px solid var(--primary-dark);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-logo {
    width: 85px;
    height: 85px;
    object-fit: contain;
    flex-shrink: 0;
}

.header-text {
    flex: 1;
    text-align: center;
}

.header-text h1 {
    font-family: 'Georgia', serif;
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 6px;
}

.header-text h2 {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 6px;
}

.header-text h3 {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    color: var(--text-main);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 4px;
}

.header-text h4 {
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    color: var(--text-main);
    font-style: italic;
    font-weight: 400;
}

/* Banner */
.title-banner {
    background: var(--primary-dark);
    color: white;
    padding: 45px 40px;
    text-align: center;
    border-radius: 0 0 8px 8px;
    margin-bottom: 30px;
}

.title-banner h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.title-banner .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Grid de cátedras */
.catedras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.catedra-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 35px 30px;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary-medium);
    display: flex;
    flex-direction: column;
}

.catedra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-top-color: var(--primary-dark);
}

.catedra-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.catedra-card h2 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.catedra-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 20px;
}

.catedra-link {
    color: var(--primary-medium);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.catedra-card:hover .catedra-link {
    color: var(--primary-dark);
}

/* Footer */
.page-footer {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 18px;
    border-radius: 8px;
    margin-top: 30px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    body { padding: 10px; }
    .institutional-header { padding: 20px; }
    .header-inner { flex-direction: column; text-align: center; }
    .header-logo { width: 70px; height: 70px; }
    .header-text h1 { font-size: 1rem; }
    .title-banner { padding: 30px 20px; }
    .title-banner h1 { font-size: 1.5rem; }
    .catedras-grid { grid-template-columns: 1fr; }
}