/* Estilos: Esquema Institucional Clásico (Inspirado en el diseño PUCP / Portal de Pagos) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

:root {
    --bg-page: #f0f4f8;
    --navy-header: #0a3871;
    --blue-title: #1a4b8c;
    --blue-section-bar: #3b629b;
    --blue-border: #7f9db9;
    --btn-primary: #8b0000;
    --btn-primary-hover: #a30000;
    --alert-bg: #fffde6;
    --alert-border: #d4cf75;
    --alert-text: #4a4400;
}

body {
    font-family: 'Roboto', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-page);
    color: #1e293b;
    -webkit-tap-highlight-color: transparent;
}

/* Fondo limpio */
.bg-mesh {
    background-color: #f1f5f9;
    background-image: linear-gradient(180deg, #e2e8f0 0%, #f8fafc 180px);
}

/* Header Institucional */
.header-institutional {
    background-color: #ffffff;
    border-bottom: 3px solid #0a3871;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.header-top-bar {
    background: linear-gradient(90deg, #072b59 0%, #0a3871 100%);
    color: #ffffff;
}

/* Card Selection */
.service-card {
    transition: all 0.2s ease;
    cursor: pointer;
    background-color: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    user-select: none;
}

.service-card:hover {
    border-color: #0a3871;
    box-shadow: 0 4px 12px rgba(10, 56, 113, 0.12);
    transform: translateY(-2px);
}

.service-card:active {
    transform: scale(0.99);
}

.service-card.selected-nexus {
    border-color: #0a3871 !important;
    background-color: #f0f7ff !important;
    box-shadow: 0 0 0 3px rgba(10, 56, 113, 0.2);
}

.service-card.selected-gym {
    border-color: #059669 !important;
    background-color: #f0fdf4 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

/* Stepper Institucional */
.step-item {
    transition: all 0.3s ease;
}

.step-item .step-icon {
    background-color: #ffffff;
    color: #475569;
    border: 2px solid #94a3b8;
}

.step-item.active .step-icon {
    background-color: #0a3871;
    color: #ffffff;
    border-color: #0a3871;
    box-shadow: 0 0 10px rgba(10, 56, 113, 0.35);
}

.step-item.completed .step-icon {
    background-color: #059669;
    color: #ffffff;
    border-color: #059669;
}

.step-item.active-gym .step-icon {
    background-color: #059669 !important;
    border-color: #059669 !important;
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.35) !important;
}

/* Paneles y Contenedores */
.panel-institutional {
    background-color: #ffffff;
    border: 1px solid #7f9db9;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.panel-header-bar {
    background: linear-gradient(180deg, #4f73a8 0%, #3b629b 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 8px 14px;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* Alert Box tipo PUCP */
.alert-pucp {
    background-color: #fffde6;
    border: 1px solid #d4cf75;
    color: #3b3600;
    border-radius: 3px;
    padding: 10px 14px;
    font-size: 0.82rem;
    line-height: 1.45;
}

/* Form Inputs */
.form-input {
    background-color: #ffffff;
    border: 1px solid #94a3b8;
    color: #0f172a;
    min-height: 42px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.form-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #0a3871;
    box-shadow: 0 0 0 3px rgba(10, 56, 113, 0.15);
}

.form-input.is-invalid {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

/* Botones con estilo del Portal */
.btn-pucp-red {
    background: linear-gradient(180deg, #a61c1c 0%, #8b0000 100%);
    color: #ffffff;
    border: 1px solid #6b0000;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.15s ease;
}

.btn-pucp-red:hover {
    background: linear-gradient(180deg, #ba2222 0%, #9e0000 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn-pucp-blue {
    background: linear-gradient(180deg, #1b5399 0%, #0a3871 100%);
    color: #ffffff;
    border: 1px solid #062449;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.15s ease;
}

.btn-pucp-blue:hover {
    background: linear-gradient(180deg, #2365b8 0%, #0f4a94 100%);
}

.btn-pucp-gray {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    color: #334155;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-pucp-gray:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* File Upload Area */
.dropzone-area {
    border: 2px dashed #94a3b8;
    background-color: #f8fafc;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropzone-area.dragover {
    border-color: #0a3871;
    background-color: #eff6ff;
}

/* Tablas */
table th {
    background-color: #e2e8f0;
    color: #1e293b;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    .no-print {
        display: none !important;
    }
    .print-only {
        display: block !important;
    }
}
