html,
body {
    overflow-x: clip;
    margin: 0;
    padding: 0;
    width: 100vw;
}

.bg-light {
    background-color: #f6f6f6 !important;
}

body>.contenido-entrada.container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.row.align-items-lg-stretch.mt-3 {
    overflow: visible !important;
    /* <-- cambia esto si antes era hidden */
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.mt-3,
.mb-3 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.logo-fondo-container {

    display: flex;
    justify-content: center;
    padding: 0 1rem;
    object-fit: contain;
    border: none;
    border-radius: 10px;
    display: block;

}

.img-logo-fondo {

    max-height: 50px;
    object-fit: contain;
    border: none;
    border-radius: 10px;
    display: block;
}

.fondo-header {
    background-color: #fff;
    border-radius: 1rem;
}

.fondo-tipo {
    border: 2px solid #1da1f2;
    border-radius: 15px;
    padding: 4px 10px;
    color: #1da1f2;
    white-space: nowrap;
}


.meta-objetivo {
    border-radius: 10px;
    padding: 10px 10px;
    font-size: 0.95rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-objetivo button {
    font-size: 0.8rem;
    padding: 4px 12px;
}

.col-lg-4,
.col-lg-8 {
    overflow-y: auto;
    max-height: 100%;
}

.btn-tiempo {
    background-color: #f8f9fa;
    border: 2px solid #f4b300;
    color: #000000;
    font-weight: 600;
    border-radius: 8px !important;
    padding: 6px 16px;
    margin-right: 6px;

}

.btn-tiempo.active-tiempo {
    border: 2px solid #666 !important;
    box-shadow: 0 0 0 2px #666(178, 48, 15, 0.25) !important;
    color: black !important;
    background-color: #f4b300 !important;
}




.fund-buttons {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
}

.card-titulo,
.resultado-calculado,
.label-resultado-calculado {
    font-size: 14px;
}

.logo-img {
    max-height: 50px;
    height: auto;
    width: auto;
}

.logo-bar {
    margin-top: 10px;
    margin-bottom: 10px;
}


.SimulaTexto {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1da1f2;
    line-height: 1.2;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
}

.btn-compartir,
.boton-simular-otro {
    display: none;
}

.row.justify-content-between.flex-wrap {
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 1rem;
}

.titulo-descarga {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1rem;
}

.botones-app {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.img-store {
    height: 40px;
    max-width: 140px;
}

.contenido-entrada {
    overflow-x: clip;
    font-family: 'Lato';
    font-size: 13px;
    line-height: 1.84;
    font-weight: 400;
    padding: 0 20px;
    max-height: 95vh;
    overflow-y: auto;
}


.titulo-inicial {
    font-size: 20px;

    letter-spacing: 3pt;
}

.contenedor-datos {
    border: 1px solid #8f8f8f;
    border-radius: 10px;
    padding: 1.5rem;
}

.fund-buttons button {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    min-width: 100px;
    max-width: 120px;
    height: 50px;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: bold;
    color: white;
    border: none;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.fund-buttons button span {
    display: block;
    line-height: 1.1;
}

.fondo-linea1 {
    font-size: 8px;
    line-height: 10px;
    font-weight: 500;
    opacity: 0.9;
}

.fondo-linea2 {
    font-size: 10px;
    line-height: 12px;
    font-weight: 700;
}

.fund-buttons .selected {
    box-shadow: 0 0 0 2px white, 0 0 0 4px #1da1f2;
}

.fund-buttons button:hover {
    opacity: 0.9;
}

.fund-buttons button.selected {
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.fund-buttons button.disabled {
    background-color: #ccc !important;
    color: #666 !important;
    border: none;
    box-shadow: none;
}

.fondo-selector {
    background-color: #ededed;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    gap: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.label-selector {
    font-weight: 700;
    font-size: 0.8rem;
    color: #1a1a1a;
    margin-right: 0.5rem;
    padding-left: 0.5rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

.fondo-titulo-boton {
    font-size: 10px;
}

.ocultar-movil {
    display: none !important;
}

.grafico-viewer {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-top: 5px;
    border-radius: 5px;
    background-color: #f6f6f6 !important;
    flex: none;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
}


.boton-simular {
    background-color: #f4b300;
    color: black;
    font-weight: bold;
    font-size: 1rem;
    padding: 8px 20px;
    width: 75%;
    border: none;
    border-radius: 999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.boton-simular:hover {
    background-color: #e0a400;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}


#add .resultado-panel {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resultado-box {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    object-fit: contain;
    flex-direction: column;
    height: 100%;
    max-width: 330px;
    font-family: 'Lato';
    border: none;
    display: block;
}


.resultado-header {
    color: white;
    text-align: center;
    padding: 0.6rem 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.resultado-header-detalle {

    text-align: center;
    font-size: 1.5rem;
    margin: 0.2rem 0;
    font-weight: bold;
}

.linea-separadora {


    height: 1px;
    background-color: #ccc;
    border: none;
}


.resultado-header,
.resultado-header-meta {
    color: white;
    text-align: center;
    padding: 0.8rem 0.8rem;
    font-weight: bold;
    font-weight: bold !important;
    font-size: 1rem;
}



.resultado-body {
    padding: 0.2rem 0.2rem;
}

.label-negrita {
    font-weight: bold;
}

.resultado-principal {
    text-align: center;
    font-size: 1.5rem;
    margin: 0.5rem 0;
    font-weight: bold;
}

.resultado-detalle {
    margin-top: 0.3rem;
}

.detalle-fila {
    display: flex;
    justify-content: space-between;
    margin: 8px 2px;
    font-size: 0.85rem;
    font-weight: bold;
}

.fondo-fuerte {

    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    width: auto;
}

.fondo-fuerte-detalle {

    color: black;
    padding: 4px 8px;
    border-radius: 6px;
    width: auto;


}

.fondo-fuerte-meta {

    color: white;
    padding: 4px 13px;
}

.fila-capital-rendimiento-titulo {
    display: flex;
    justify-content: space-between;
    color: white;
    width: 100%;
    font-weight: bold;
    flex: 0 0 50%;
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.fila-capital-rendimiento-titulo .columna-capital,
.fila-capital-rendimiento-titulo .columna-rendimiento {
    width: 50%;
    flex: 0 0 50%;
    box-sizing: border-box;
}

.fila-capital-rendimiento-titulo .columna-rendimiento {
    border-left: 1px solid white;
}

.fila-capital-rendimiento-montos {
    display: flex;
    width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 0;
    box-sizing: border-box;
}


.columna-rendimiento {
    border-left: 1px solid white;
    text-align: right;
}

.columna-capital-detalle,
.columna-rendimiento-detalle {
    width: 50%;
    flex: 0 0 50%;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 6px 0;
    box-sizing: border-box;
}

.columna-rendimiento-detalle {
    border-left: 1px solid #ccc;
}

.etiqueta {
    font-weight: bold;
    margin-bottom: 4px;
}

.texto-grafico-aviso {
    font-size: 0.75rem;
    color: #777;
    margin-top: 0.5rem;
    text-align: center;
}

.fondo-linea3 {
    display: none !important;
}

.img-fondo-mobile-inline,
.boton-volver-simular {
    display: none;
}

.titulo-grafico-comparativo {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#icon-fiducia2 {
    display: none;
}

.logo-mi-fondo-mobile {
    display: none;
}


.mensaje-error {
    width: 200px;
    font-size: 11px;
    position: absolute;
    background-color: white;
    border: 3px solid #FFD700;
    padding: 10px;
    border-radius: 15px;
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.flecha {
    position: absolute;
    top: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #FFD700;
}

.linea-divisoria {
    border: none;
    border-top: 1px dotted #000;
    margin: 10px 0;
}

.p-without-space {
    margin-bottom: 0;
}

.titulo-fondos {
    background-color: #ededed;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    padding-bottom: 5px;
}

.label-titulo-fondos {
    color: #1a1a1a !important;
    font-size: 23px;
    padding-top: 10px;
    margin-bottom: 5px !important;
    line-height: 18px;
    font-weight: 700;
}

.bloque-indicadores {
    background-color: #f1f1f1;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    margin-top: 1rem;
}

.label-detalle-fondos {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
}

.valor-detalle-fondos {
    font-size: 0.8rem;
    font-weight: bold;
    color: #000;
}

.label-detalle-fondos,
.valor-detalle-fondos {
    display: block;
    text-align: center;
    font-weight: bold;
    line-height: 1.4;
    margin: 0 auto;
}

.card-valores {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
    border: 1px solid #8f8f8f;
    border-radius: 15px;
}

.contenedor-titulo {
    width: 100%;
    height: 10%;
    min-height: 1px;
    margin: 0;
    display: flex;
    justify-content: center;
}

.imagen-size {
    width: 200px;
}

.label-inputs {
    padding: 1px;
    text-align: center;
    font-size: 14px;
    line-height: 22px;
    font-weight: bold;

}

.form-control {
    text-align: center;
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 10px;
}

.form-select {
    text-align-last: center;
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 10px;
}

.imagenes-div {
    height: 100%;
}

.slider::-webkit-slider-thumb {
    background: #04AA6D;
}

.slider::-moz-range-thumb {
    background: #04AA6D;
}

.resultado-container {
    padding: 0;
}

.resultado-calculado {
    padding: 1;
    color: white;
    text-align: center;
    font-size: 24px;
    padding: 5px;
    line-height: 30px;
    height: 45px;
}

.label-titulo-card {
    color: #000000 !important;
    text-align: left;
    font-size: 13px;
    padding-top: 10px;
    margin-bottom: 5px !important;
    line-height: 18px;
}

.label-resultado-calculado {
    color: #000000;
    text-align: center;
    font-size: 14px;
    line-height: 14px;
    font-weight: 800;
}

.resultado-mensual-card {
    color: black !important;
    text-align: left;
    font-size: 24px;
    line-height: 20px;
    font-weight: 700;
}

.resultado-rendimiento-card {
    color: white !important;
    text-align: left;
    font-size: 24px;
    line-height: 20px;
    font-weight: 700;
}

.resultado-monto-card {
    color: black;
    text-align: left;
    font-size: 24px;
    line-height: 20px;
    font-weight: 700;
}

.card-titulo {
    color: #ffffff;
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
    padding: 0.5em 0.5em 0.5em 0.5em;
}

.btn {
    position: relative;
    padding: 0 15px;
    text-align: left;
    background-color: #ffffff !important;
}

#btn_container {
    float: right;
}

.btn img {
    margin-right: 10px;
    vertical-align: middle;
}

.btn span {
    height: 30px;
    padding-top: 2px;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
}

.btn-primary {
    color: black !important;
    border-color: black;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .5);
}

.btn-outline-primary {
    border-radius: 8px;
}

.btn-tiempo:hover {
    background-color: #f0f8ff;
    border-color: #504f4f;
    color: black;
}

.btn-check:focus+.btn-primary,
.btn-primary:focus,
.btn-outline-primary:hover,
.btn-outline-primary {
    color: black !important;
}



.btn-group .btn {
    font-size: 12px;
    text-align: center;
    width: auto;
    padding: 8px;
    padding-left: 5px;
    padding-right: 5px;
}

.card-footer {
    background-color: #1b9e83 !important;
    color: #ffffff;
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
    padding-top: 10px;
    padding-bottom: 10px;
}

.boton-footer {
    background-color: #1b9e83 !important;
    border: 2px solid white;
}

.grafico-container {

    min-height: 350px;
    margin-top: 1rem;
}

.grafico-mostrar {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 350px;
    height: 100%;
    margin-bottom: 0;
    padding-bottom: 0;
}

.grafico-mostrar-chart {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.txt-boton-footer {
    padding: 5px;
}

.container-meta {
    padding-bottom: 10px;
    padding-top: 10px;
}

.descarga-app {
    display: none;
}


@media only screen and (max-width: 990px) {

    .card-text {
        font-size: 16px;
    }

    .MiFodoImagen {
        text-align: center;
    }

    .SimulaTexto {
        padding-top: 5px;
        margin-top: 1rem;
        vertical-align: middle;
        text-align: center;
    }

    .resumen-general {

        border-radius: 1rem;
        padding: 1rem 1.5rem;
        color: white;
        margin-bottom: 1rem;
    }

    .resumen-inversion input {
        text-align: center;
        font-size: 1.2rem;
        font-weight: bold;
        background-color: white;
        border: 2px solid #ddd;
        border-radius: 0.5rem;

        width: 120px;
        margin: auto;
    }

    .boton-imprimir {
        background-color: white;
        border: none;
        padding: 6px 16px;
        font-weight: 600;
        border-radius: 999px;
    }

    .boton-imprimir:hover {
        background-color: #e6f4fb;
    }


}