/* =========================================================
   CONTENEDOR PRINCIPAL
   Todo está limitado a .finanzas-section
   para NO afectar el menú ni otras partes del sitio.
========================================================= */

.finanzas-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    color: #263238;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.finanzas-section .finanzas-title {
    background: #003762;
    color: #ffffff;
    padding: 18px 22px;
    margin: 0 0 18px 0;
    font-size: 24px;
    font-weight: 700;
    text-align: left;
    border-radius: 8px;
    box-sizing: border-box;
}


/* =========================================================
   DESCRIPCIÓN
========================================================= */

.finanzas-section .finanzas-descripcion {
    margin: 0 0 18px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
}


/* =========================================================
   BUSCADOR
========================================================= */

.finanzas-section .buscador-documentos {
    width: 100%;
    margin: 0 0 18px 0;
    position: relative;
}

.finanzas-section .buscador-documentos input {
    width: 100%;
    height: 46px;
    padding: 0 15px 0 42px;
    box-sizing: border-box;

    border: 1px solid #ccd2d7;
    border-radius: 8px;

    background: #ffffff;
    color: #263238;

    font-size: 15px;
    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.finanzas-section .buscador-documentos input:focus {
    border-color: #003762;
    box-shadow: 0 0 0 2px rgba(0, 55, 98, .08);
}


/* =========================================================
   ICONO DEL BUSCADOR
   No depende de Font Awesome.
========================================================= */

.finanzas-section .buscador-icono {
    position: absolute;
    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 18px;
    color: #777777;

    pointer-events: none;
}


/* =========================================================
   TEXTO "SELECCIONA EL EJERCICIO"
========================================================= */

.finanzas-section .ejercicios-label {
    margin: 0 0 9px 0;

    font-size: 14px;
    font-weight: 700;

    color: #555555;
}


/* =========================================================
   BOTONES DE EJERCICIOS
========================================================= */

.finanzas-section .ejercicios-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 10px;

    margin-bottom: 25px;
}


.finanzas-section .ejercicio-btn {
    width: 100%;

    min-height: 48px;

    padding: 11px 10px;

    border: 2px solid #003762;
    border-radius: 8px;

    background: #ffffff;
    color: #003762;

    cursor: pointer;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;

    transition:
        background-color .2s ease,
        color .2s ease,
        transform .2s ease;
}


.finanzas-section .ejercicio-btn:hover {
    background: #003762;
    color: #ffffff;
}


.finanzas-section .ejercicio-btn.activo {
    background: #003762;
    color: #ffffff;
}


/* =========================================================
   ÁREA DONDE APARECERÁ LA INFORMACIÓN
========================================================= */

.finanzas-section .contenido-financiero {
    width: 100%;
    margin-top: 5px;
}


/* =========================================================
   MENSAJE INICIAL
========================================================= */

.finanzas-section .mensaje-inicial {
    padding: 22px;

    border: 1px dashed #c9c9c9;
    border-radius: 8px;

    background: #f8f8f8;

    text-align: center;

    color: #777777;
    font-size: 14px;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 768px) {

    .finanzas-section {
        width: 100%;
    }

    .finanzas-section .finanzas-title {
        font-size: 20px;
        padding: 16px;
    }

    .finanzas-section .ejercicios-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   RESPONSIVE — CELULAR
========================================================= */

@media (max-width: 480px) {

    .finanzas-section .finanzas-title {
        font-size: 18px;
        padding: 14px;
    }

    .finanzas-section .finanzas-descripcion {
        font-size: 14px;
    }

    .finanzas-section .ejercicios-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .finanzas-section .ejercicio-btn {
        min-height: 44px;
        padding: 10px 5px;
        font-size: 15px;
    }

}