/* Estilos generales y tipografía */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

body {
    font-family: 'Lato', sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

.container {
    max-width: 1140px;
}

/* Encabezado */
.usfx-header {
    background-color: #004a7c;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    margin-bottom: 2rem;
}

.usfx-title {
    font-size: 2.5rem;
    font-weight: bold;
}

.usfx-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Secciones principales y tarjetas */
.content-section {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #004a7c;
    margin-bottom: 1.5rem;
}

.section-title i {
    margin-right: 0.5rem;
}

/* Formulario de Búsqueda */
.search-box {
    background-color: #f0f2f5;
    border-radius: 10px;
    padding: 20px;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: #004a7c;
    box-shadow: 0 0 0 0.2rem rgba(0, 100, 169, 0.25);
}

/* Botones */
.btn-usfx {
    background-color: #004a7c;
    border-color: #004a7c;
    color: white;
    font-weight: 700;
    border-radius: 25px;
    padding: 10px 25px;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-usfx:hover {
    background-color: #00365c;
    border-color: #00365c;
    transform: translateY(-2px);
}

.btn-usfx-outline {
    color: #004a7c;
    border-color: #004a7c;
    border-radius: 25px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-usfx-outline:hover {
    background-color: #004a7c;
    color: white;
}

.btn-link {
    color: #6c757d;
    text-decoration: none;
}

.btn-link:hover {
    color: #004a7c;
    text-decoration: underline;
}

/* Tarjetas de Documentos */
.document-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    border-left: 5px solid #004a7c;
    min-height: 280px;
    /* Altura ajustada */
    max-height: 300px;
    /* Altura ajustada */
}

.document-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- CAMBIO REALIZADO --- */
/* Tarjetas de "Últimas Resoluciones Oficiales" - se redujo la altura */
.latest-document-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 80%;
    border-left: 5px solid #004a7c;
    min-height: 200px;
    /* Reducida la altura */
    max-height: 220px;
    /* Reducida la altura */
}

.latest-document-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.document-card .card-title,
.latest-document-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #004a7c;
    margin-bottom: 10px;
}

.document-card .meta-info,
.latest-document-card .meta-info {
    font-size: 0.85rem;
    color: #868e96;
    margin-bottom: 10px;
}

.document-card .card-text,
.latest-document-card .card-text {
    color: #495057;
    font-size: 0.95rem;
    flex-grow: 1;
}

.document-card .badge-tag,
.latest-document-card .badge-tag {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 500;
    border-radius: 15px;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
}

/* Alertas */
.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Estilos para las secciones con fondo de imagen */
.bg-image-section {
    background-color: #004a7c;
    /* Color de fondo por defecto */
    padding: 3rem;
    color: #fff;
    border-radius: 1rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Estilos para el efecto de escritura en el título */
.typing-title {
    border-right: .15em solid #004d99;
    /* Cursor */
    white-space: nowrap;
    /* Evita que el texto se divida en varias líneas */
    overflow: hidden;
    /* Oculta el texto que aún no se ha escrito */
}

/* Animación para el cursor parpadeante */
@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #004d99;
    }
}

/* Animación del cursor en el elemento */
.typing-title-cursor {
    animation: blink-caret .75s step-end infinite;
}