:root {
    --ui-primary: #2a3a89;
    --ui-secondary: #29b6f6;
    --ui-accent: #58c7c7;
    --ui-dark: #1a1a2e;
    --ui-surface: #ffffff;
    --ui-surface-soft: #f5f9ff;
    --ui-border: #d7e4f6;
    --ui-text: #1f2d45;
    --ui-text-soft: #61728b;
    --ui-shadow-soft: 0 8px 24px rgba(24, 45, 91, 0.12);
    --ui-shadow-strong: 0 16px 36px rgba(24, 45, 91, 0.18);
}

body {
    font-family: 'Source Sans 3', 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--ui-text);
}

.container,
.af-modal .af-content,
#agenda-2026 {
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-soft);
}

.card,
.carrera-card,
.sidebar-item,
.documento-item,
.status-box {
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-soft);
    border-radius: 14px;
}

.card:hover,
.carrera-card:hover,
.sidebar-item:hover,
.documento-item:hover {
    box-shadow: var(--ui-shadow-strong);
}

.btn,
.carrera-link,
.back-btn,
.control-btn,
.af-close {
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    font-weight: 600;
}

.btn:hover,
.carrera-link:hover,
.back-btn:hover,
.control-btn:hover,
.af-close:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.btn,
.carrera-link,
.btn-primary {
    box-shadow: 0 8px 20px rgba(42, 58, 137, 0.22);
}

.btn,
.carrera-link,
.back-btn,
.control-btn,
.btn-primary,
.btn-secondary,
.btn-enter {
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-enter,
.btn-primary,
.carrera-link {
    background-image: linear-gradient(135deg, var(--ui-primary), var(--ui-secondary));
}

.btn-secondary,
.back-btn,
.control-btn {
    background: var(--ui-surface-soft);
    color: var(--ui-primary);
    border-color: var(--ui-border);
}

.status-box,
.note,
.link-meta-item,
.stat-item {
    border-radius: 12px;
}

html {
    scroll-behavior: smooth;
}

.section-title,
.gallery-title h2,
h1,
h2,
h3,
h4 {
    letter-spacing: 0.2px;
}

.subtitle,
.note,
.card p,
.sidebar-item p {
    color: var(--ui-text-soft);
}

.viewer,
.docx-preview,
.af-pdf,
.af-image {
    border-radius: 12px;
    border: 1px solid var(--ui-border);
}

img,
iframe,
video {
    max-width: 100%;
}

@media (max-width: 1024px) {
    .container,
    section,
    .section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cards-grid,
    .sidebar {
        gap: 16px;
    }

    .card,
    .carrera-card,
    .sidebar-item,
    .documento-item,
    .status-box {
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.45rem;
        line-height: 1.3;
    }

    h2,
    .section-title,
    .gallery-title h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.05rem;
    }

    .container,
    section,
    .section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .cards-grid,
    .sidebar {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .card,
    .carrera-card,
    .sidebar-item,
    .documento-item {
        padding: 14px;
    }

    .sidebar-item img {
        height: 170px;
        object-fit: cover;
    }

    .btn,
    .carrera-link,
    .back-btn,
    .control-btn,
    .btn-primary,
    .btn-secondary,
    .btn-enter {
        width: 100%;
        min-height: 42px;
        padding-left: 14px;
        padding-right: 14px;
        text-align: center;
        justify-content: center;
    }

    .viewer,
    .docx-preview,
    .af-pdf,
    .af-image,
    iframe {
        min-height: 58vh;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.25rem;
    }

    h2,
    .section-title,
    .gallery-title h2 {
        font-size: 1.12rem;
    }

    .container,
    section,
    .section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card,
    .carrera-card,
    .sidebar-item,
    .documento-item {
        padding: 12px;
    }

    .btn,
    .carrera-link,
    .back-btn,
    .control-btn,
    .btn-primary,
    .btn-secondary,
    .btn-enter {
        min-height: 40px;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}