
:root {
    --inst-blue: #0055A5;
    --inst-blue-dark: #003d7a;
    --inst-green: #2e8b57;
    --inst-green-light: #e6f7ec;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --border-color: #e2e8f0;
}

body {
    background-color: var(--bg-main);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

.modern-header {
    background: white;
    border-bottom: 3px solid var(--inst-blue);
}

.institution-logo {
    max-height: 75px;
    width: auto;
    object-fit: contain;
}

.badge-inst {
    background-color: #e6f0fa;
    color: var(--inst-blue);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 50rem;
    display: inline-block;
}

.bg-inst-gradient {
    background: linear-gradient(135deg, var(--inst-blue), var(--inst-green));
}

.modern-card {
    border-radius: 1.25rem;
    background: var(--card-bg);
    box-shadow: 0 10px 25px -5px rgba(0, 85, 165, 0.08), 0 8px 10px -6px rgba(0, 85, 165, 0.04);
    border-top: 4px solid var(--inst-blue) !important;
}

.icon-circle {
    width: 65px;
    height: 65px;
    background-color: #e6f0fa;
    color: var(--inst-blue);
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.section-badge {
    width: 48px;
    height: 48px;
    background-color: var(--inst-blue);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-badge.secondary {
    background-color: var(--inst-green);
}

.form-control, .input-group-text {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    border-color: var(--border-color);
}

.form-control:focus {
    border-color: var(--inst-blue);
    box-shadow: 0 0 0 4px rgba(0, 85, 165, 0.12);
}

.btn-inst-primary {
    background-color: var(--inst-blue);
    color: white;
    border: none;
    transition: all 0.2s ease;
}

.btn-inst-primary:hover {
    background-color: var(--inst-blue-dark);
    color: white;
    transform: translateY(-1px);
}

.btn-inst-success {
    background-color: var(--inst-green);
    color: white;
    border: none;
    transition: all 0.2s ease;
}

.btn-inst-success:hover {
    background-color: #246d44;
    color: white;
    transform: translateY(-1px);
}

.question-row {
    padding: 1rem 1.25rem;
    border-radius: 0.85rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.question-row:hover {
    border-color: #cbd5e1;
    background-color: #e6f7ec;
}

.question-row:nth-child(even) {
    background-color: #fcfcfc;
}

.radio-group label {
    cursor: pointer;
    font-weight: 500;
    margin-left: 1rem;
    user-select: none;
}

/* Estilos de Impresión / PDF Tamaño Carta Completo sin espacios blancos y con colores del logo */
#pdf-container {
    background: white;
    max-width: 850px;
    margin: 0 auto;
    padding: 10px;
}

.pdf-page {
    background: white;
    padding: 5px;
    height: 100vh;
    max-height: 1050px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.table-inst-header-blue {
    background-color: #e6f0fa !important;
    color: #0055A5 !important;
    font-weight: 700;
}

@page {
    size: letter portrait;
    margin: 10mm;
}

@media print {
    body * {
        visibility: hidden;
    }
    #pdf-container, #pdf-container * {
        visibility: visible;
    }
    #pdf-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
    .pdf-page {
        height: 100vh;
        max-height: none;
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    #action-buttons {
        display: none !important;
    }
}
