/* ============================
   TIPOGRAFÍA BASE
============================ */
body {
    font-family: "Inter", "Roboto", sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* ============================
   LINKS
============================ */
a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* ============================
   NAVBAR
============================ */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-brand {
    font-weight: 700;
    color: #0d6efd !important;
    font-size: 1.5rem;
}

.nav-link {
    color: #555 !important;
    font-weight: 500;
    margin-left: 1rem;
}

.nav-link:hover {
    color: #0d6efd !important;
}

/* ============================
   HERO SECTION
============================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-weight: 800;
    letter-spacing: -1px;
}

/* ============================
   TITULOS
============================ */
h1, h2, h3, h4, h5, h6 {
    color: #111;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #0d6efd;
    margin-top: 5px;
    border-radius: 2px;
}

/* ============================
   TARJETAS / CONTENEDORES
============================ */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.card-title {
    margin-bottom: 1rem;
}

/* ============================
   BOTONES
============================ */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
}

/* ============================
   TABLAS
============================ */
.table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.table thead {
    background-color: #f1f3f5;
}

.table th {
    font-weight: 600;
    border-bottom: none;
}

/* ============================
   ACCORDION (FAQ)
============================ */
.accordion-item {
    border: none;
    margin-bottom: 0.5rem;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.accordion-button {
    font-weight: 600;
    background-color: #fff;
}

.accordion-button:not(.collapsed) {
    color: #0d6efd;
    background-color: #e7f1ff;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.25);
}

/* ============================
   FOOTER
============================ */
footer {
    background-color: #fff;
    color: #666;
}

footer a {
    color: #666 !important;
}

footer a:hover {
    color: #0d6efd !important;
}

/* ============================
   UTILIDADES
============================ */
.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}

.rounded {
    border-radius: 12px !important;
}

.bg-light {
    background-color: #fff !important; /* Mantener limpio */
}

body > div.container.mt-4 > div > main > section.mb-5.p-5.bg-primary.text-white.rounded.shadow-sm.hero-section > div > div.col-lg-7 > p {
    color: #054bb1;
}
/* ============================
   CONSULTA RÁPIDA MEJORADA
============================ */
#consultar_rapida {
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 0.75rem 1.5rem !important;
}

#consultar_rapida:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

#consultar_rapida:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#response_rapida, #error_rapida {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#saldo_resultado {
    color: #198754;
    font-weight: 700;
    display: block;
}

/* Sección de consulta rápida con fondo gradiente */
.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2f8 100%) !important;
}

.input-group-lg .form-control,
.input-group-lg .btn {
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
}

/* Border start más prominente */
.border-start {
    border-width: 4px !important;
}

/* Sección Mobile App */
.list-group-item {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.list-group-item.bg-transparent {
    background-color: transparent !important;
}

.border-white-50 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ============================
   SECCIÓN APP MÓVIL
============================ */
.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
}

.btn-light:hover {
    background-color: #e7e7e7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ============================
   ANIMACIONES PÁGINA DE SALDO
   ============================ */
.animate-fade-in-up {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shadow-inner {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06) !important;
}

/* Optimización para móviles en página de saldo */
@media (max-width: 576px) {
    #saldo-success, #saldo-loading, #saldo-error {
        padding: 2.5rem 1.5rem !important;
    }
    .display-5 {
        font-size: 2.25rem;
    }
}