﻿body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f6fa;
    color: #333;
}

.card {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
}

.btn-primary {
    background-color: #043053;
    border-color: #043053;
}

.btn-dark {
    background-color: #333;
    border-color: #333;
}

.btn i {
    margin-right: 6px;
}

h4, h5 {
    color: #043053;
    font-weight: 600;
}

.section-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
}

.formulario-consulta {
    flex: 1 1 350px;
}

.datos-expediente {
    flex: 1 1 350px;
}

.historial-expediente {
    width: 100%;
    margin-top: 20px;
}

.encabezado {
    margin-top: 0;
    padding: 5px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .encabezado img {
        max-height: 100px;
        display: block;
        margin: 0 auto;
    }

.encabezado-hr {
    margin-top: 5px;
    margin-bottom: 5px;
    border-top: 2px solid #007bff;
    width: 100%;
}

.form-label i {
    color: #043053;
    margin-right: 4px;
}

.fade-in {
    transition: all 0.5s ease;
    opacity: 1;
}

.hidden {
    display: none;
    opacity: 0;
}

.card h4, .card h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    padding-left: 20px;
}

.card.formulario-consulta h4 {
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    border: 2px solid #164d85;
    color: #f0faff;
    font-size: 1.5rem;
}

.card.datos-expediente h5 {
    background: linear-gradient(90deg, #2F9CB9, #6CC3D5);
    border: 2px solid #247a8a;
    color: #f0faff;
    font-size: 1.3rem;
}

.card.historial-expediente h5 {
    background: linear-gradient(90deg, #0b3d0b, #2e7d32);
    border: 2px solid #1b5e20;
    color: #e0f2f1;
    font-size: 1.3rem;
    text-align: center;
}

.card h4 i, .card h5 i {
    font-size: 1.8rem;
}

.historial-expediente .historial-table thead {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: white;
    font-weight: bold;
    border-bottom: 3px solid #4e1f92;
}

.historial-expediente .historial-table th,
.historial-expediente .historial-table td {
    vertical-align: middle;
    padding: 12px;
    font-size: 0.95rem;
}

.historial-expediente .historial-table tbody tr:nth-child(even) {
    background-color: #f2f6fc;
}

.historial-expediente .historial-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.historial-expediente .historial-table tbody tr:hover {
    background-color: #d0e4ff;
    transition: background-color 0.3s ease;
}

.historial-expediente .historial-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
