/* Estilos Modernos para Portal de Postulación DISAM (Solo Visual) */
:root {
    --primary-color: #004a99;
    --primary-dark: #003366;
    --accent-color: #ff9900;
    --accent-hover: #e68a00;
    --bg-light: #f8f9fa;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-light);
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
    color: #333;
}

/* Estilo para los Paneles Originales */
.panel {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: var(--card-shadow) !important;
    margin-bottom: 25px !important;
}

.panel-heading {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
    color: white !important;
    padding: 15px 20px !important;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600 !important;
    border: none !important;
}

.panel-heading,
.panel-heading b,
.panel-heading strong,
.panel-heading h1,
.panel-heading h2,
.panel-heading h3,
.panel-heading h4,
.panel-heading h5 {
    color: white !important;
}

.panel-heading i {
    margin-right: 8px;
}

.panel-body {
    padding: 30px !important;
    line-height: 1.6;
}

/* Estilo para los Párrafos de Instrucciones */
.panel-body p {
    margin-bottom: 15px;
    font-size: 15px;
}

.panel-body b,
.panel-body strong {
    color: var(--primary-color);
}

/* Encabezados de instrucciones */
h4 {
    color: var(--primary-color);
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}
@media (max-width: 992px) {
    .hero-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .hero-steps {
        grid-template-columns: 1fr;
    }
}

.step-card {
    background: white;
    padding: 0; /* Changed to handle footer */
    border-radius: 12px;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.step-card-body {
    padding: 15px;
    flex-grow: 1;
}

.step-card-footer {
    height: 10px;
    width: 100%;
}

.step-card:nth-child(1) .step-card-footer { background: #004a99; }
.step-card:nth-child(2) .step-card-footer { background: #ff5722; }
.step-card:nth-child(3) .step-card-footer { background: #ffc107; }
.step-card:nth-child(4) .step-card-footer { background: #4caf50; }

/* Estilo para el Navbar y Logo */
#principal {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    min-height: 70px;
}

.navbar-brand {
    padding: 10px 15px !important;
}

.navbar-brand img {
    height: 50px !important;
    width: auto !important;
    transition: transform 0.3s ease;
}

/* Botones Originales */
.btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
}

#secundario {
    background-color: var(--accent-color) !important;
    border: none !important;
    color: white !important;
}

#secundario:hover {
    background-color: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 153, 0, 0.3);
}

/* Tablas Originales */
.table thead th {
    background-color: #f8f9fa !important;
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color) !important;
    text-transform: uppercase;
    font-size: 12px;
}

/* Sidebar */
.sidebar {
    margin-top: 60px !important;
}

.sidebar ul li a {
    padding: 12px 20px !important;
    color: #555 !important;
    transition: all 0.2s !important;
}

.sidebar ul li a:hover {
    background-color: #f0f7ff !important;
    color: var(--primary-color) !important;
    border-left: 4px solid var(--primary-color);
}

/* Recepcion Sidebar (Bootstrap 5) */
.sidebar-nav .list-group-item {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border: none !important;
    border-left: 4px solid transparent !important;
    transition: all 0.3s ease;
}

.sidebar-nav .list-group-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-left: 4px solid var(--accent-color) !important;
    padding-left: 25px !important;
}

/* Global Reset for Blue Outlines and Focus Effects */
.form-control:focus {
    border-color: #ced4da !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.btn:focus, .btn:active, button:focus, .btn-link:focus {
    outline: none !important;
    box-shadow: none !important;
}

a:focus, a:active {
    outline: none !important;
    text-decoration: none;
}

*:focus {
    outline: none !important;
}

/* Full Screen Institutional Loader */
.cargando {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 99999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.loader-icons img {
    width: 60px;
    height: 60px;
    opacity: 0;
    animation: loaderFade 1.6s infinite ease-in-out;
}

.loader-icons img:nth-child(1) { animation-delay: 0s; }
.loader-icons img:nth-child(2) { animation-delay: 0.4s; }
.loader-icons img:nth-child(3) { animation-delay: 0.8s; }
.loader-icons img:nth-child(4) { animation-delay: 1.2s; }

@keyframes loaderFade {
    0%, 100% { opacity: 0.2; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

.loader-text {
    margin-top: 25px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Modern Toggle Switch */
.switch-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Collapsible Buttons Custom Style */
.btn-collapse-custom {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    outline: none !important;
    box-shadow: none !important;
}

.btn-collapse-custom:hover, 
.btn-collapse-custom:focus,
.btn-collapse-custom:active {
    background: #edf2f7;
    color: var(--primary-color);
    border-color: #cbd5e0;
    outline: none !important;
    box-shadow: none !important;
}

.btn-collapse-custom i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.btn-collapse-custom[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
}

.collapse-content-custom {
    padding: 15px;
    background: #fff;
    border: 1px solid #f1f3f5;
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-top: -11px;
    margin-bottom: 15px;
}