html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


/* TU CSS ACTUAL MEJORADO CON RESPONSIVE */
#alertContainer {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 40%; /* Desktop */
    max-width: 90%;
    pointer-events: none;
}

    #alertContainer .alert {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        word-wrap: break-word;
        word-break: break-word;
        pointer-events: auto;
    }

    /* Ícono de la alerta */
    #alertContainer .icon-item {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    #alertContainer .alert p {
        margin: 0;
        padding: 0 10px;
        flex: 1;
        overflow-wrap: break-word;
        color: #333;
    }

    /* Botón de cerrar */
    #alertContainer .btn-close {
        flex-shrink: 0;
    }

/* ===== MEDIA QUERIES PARA MÓVILES ===== */
@media (max-width: 768px) {
    #alertContainer {
        width: 95% !important; /* Casi todo el ancho en móvil */
        max-width: 95% !important;
        top: 10px !important;
    }

        #alertContainer .alert {
            font-size: 16px !important; /* Texto más grande */
            padding: 15px 18px !important; /* Más padding */
            border-radius: 10px !important;
            min-height: 60px !important; /* Altura mínima */
        }

            #alertContainer .alert p {
                font-size: 16px !important; /* Texto del mensaje más grande */
                line-height: 1.4 !important;
                font-weight: 500 !important; /* Un poco más bold */
                padding: 0 12px !important; /* Más espacio horizontal */
            }

        #alertContainer .icon-item {
            width: 45px !important; /* Icono más grande */
            height: 45px !important;
            min-width: 45px !important;
            min-height: 45px !important;
            margin-right: 8px !important;
        }

            #alertContainer .icon-item span {
                font-size: 20px !important; /* Icono más grande */
            }

        #alertContainer .btn-close {
            font-size: 18px !important; /* Botón cerrar más grande */
            width: 32px !important;
            height: 32px !important;
            margin-left: 12px !important;
        }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    #alertContainer {
        width: 98% !important;
        top: 5px !important;
    }

        #alertContainer .alert {
            padding: 12px 15px !important;
            min-height: 55px !important;
        }

            #alertContainer .alert p {
                font-size: 15px !important;
                padding: 0 8px !important;
            }

        #alertContainer .icon-item {
            width: 42px !important;
            height: 42px !important;
        }
}

/* Mejoras adicionales para todos los tamaños */
#alertContainer .alert {
    animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos adicionales para el modal de solicitud de crédito */

.modal-xl-custom {
    max-width: 95vw;
}

.section-divider {
    height: 1px;
    background: #dee2e6;
    margin: 1rem 0;
}

.highlight-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0d6efd;
}

.amount-text {
    color: #198754;
    font-weight: 600;
}

.percentage-text {
    color: #fd7e14;
    font-weight: 500;
}

@media (max-width: 768px) {
    .modal-xl-custom {
        margin: 0.5rem;
    }
}

