﻿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;
}
/* Inputs OTP */
.otp-input {
    width: 50px; /* ⬅️ un poco más ancho */
    height: 70px; /* ⬅️ más alto para proporción */
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: all 0.2s ease-in-out;
}

    .otp-input:focus {
        border-color: #f5b335;
        box-shadow: 0 0 12px rgba(245,179,53,0.5);
        background: rgba(255,255,255,0.25);
    }

/* cuando hay error de validación */
.is-invalid.otp-input {
    border-color: #dc3545; /* rojo bootstrap */
    box-shadow: 0 0 5px rgba(220,53,69,0.5);
}

/* Navbar eBank */
.navbar-eBank {
    background: linear-gradient(90deg, #06262d 0%, #00827e 100%);
    box-shadow: 0 4px 18px rgba(0,0,0,.25);
    border: 0 !important;
}

    .navbar-eBank .navbar-brand img {
        height: 44px; /* consistente en todas las resoluciones */
        display: block;
    }

    .navbar-eBank .nav-link {
        color: rgba(255,255,255,.9) !important;
        position: relative;
        padding: .5rem .75rem;
        transition: color .2s ease, transform .2s ease;
    }

        .navbar-eBank .nav-link:hover {
            color: #ffffff !important;
            transform: translateY(-1px);
        }
        /* subrayado animado (hover/activo) */
        .navbar-eBank .nav-link::after {
            content: "";
            position: absolute;
            left: .5rem;
            right: .5rem;
            bottom: .25rem;
            height: 2px;
            background: #f5b335;
            border-radius: 2px;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform .25s ease;
        }

        .navbar-eBank .nav-link:hover::after,
        .navbar-eBank .nav-link.active::after {
            transform: scaleX(1);
        }

    /* Toggler accesible en fondo oscuro */
    .navbar-eBank .navbar-toggler {
        border-color: rgba(255,255,255,.25);
    }

        .navbar-eBank .navbar-toggler:focus {
            box-shadow: 0 0 0 .2rem rgba(245,179,53,.35);
        }

/* Dropdown estilizado */
.menu-eBank {
    border: none;
    border-radius: 1rem;
    padding: .5rem;
    min-width: 240px;
}

    .menu-eBank .dropdown-item {
        border-radius: .5rem;
        padding: .6rem .75rem;
    }

        .menu-eBank .dropdown-item:hover {
            background: rgba(0,130,126,.12);
        }

/* Colapso con fondo al abrir en móviles */
@media (max-width: 576px) {
    .navbar-eBank .navbar-collapse {
        background: linear-gradient(180deg, #083138, #07474e);
        border-radius: 1rem;
        padding: .5rem;
        margin-top: .5rem;
    }

    .navbar-eBank .nav-link::after {
        left: .75rem;
        right: .75rem;
        bottom: .35rem;
    }
}


/* Corrige estilo visual del dropdown "Cuenta" */
.navbar-eBank .nav-item.dropdown .nav-link {
    color: rgba(255,255,255,.9) !important;
    transition: color .2s ease, transform .2s ease;
}

    .navbar-eBank .nav-item.dropdown .nav-link:hover {
        color: #ffffff !important;
        transform: translateY(-1px);
    }

    .navbar-eBank .nav-item.dropdown .nav-link::after {
        content: ""; /* elimina flecha por defecto de Bootstrap */
        border: none;
    }

/* Contenedor principal del login */
.glass-card {
    /* capa blanca sutil (más visible que 0.01) */
    background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.08));
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    border-radius: 1.25rem;
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
    overflow: hidden; /* 🔧 evita fugas y micro-gaps */
}

/* Panel del formulario (un poco más “sólido” pero vidrio aún) */
.glass-pane {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    /* esquinas como pediste */
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}


/* Imagen mantiene bordes redondeados del lado izquierdo */
.glass-card img {
    border-top-left-radius: 1.25rem;
    border-bottom-left-radius: 1.25rem;
    object-fit: cover;
}
@media (min-width: 768px) {
    .glass-pane {
        max-width: 560px;
        margin-left: auto;
    }
    /* evita que el formulario “flote” angosto */
}

@media (min-width: 1200px) {
    .glass-pane {
        max-width: 600px;
    }
}



.form-control {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.28);
    color: #fff;
}

    .form-control:focus {
        background: rgba(255,255,255,.08);
        color: #fff;
        border-color: #ffd979;
        box-shadow: 0 0 0 .2rem rgba(245,179,53,.15);
    }

    .form-control::placeholder {
        color: #c7dedc;
        opacity: .9;
    }

.btn-aguila {
    background: linear-gradient(135deg, #f5b335, #ffd979);
    color: #09221f;
    border: none;
    box-shadow: 0 8px 18px rgba(245,179,53,.35);
    transition: transform .15s ease, filter .2s ease;
    border-radius: 12px;
}

    .btn-aguila:hover {
        transform: scale(1.02);
        filter: brightness(.95);
    }



:root {
    --aguila-teal: #00827e;
    --aguila-dark: #06262d;
    --aguila-gold: #f5b335;
    --aguila-white: #ffffff;
}

/* Backdrop con degradado (menos “negro plano”) */
.modal-backdrop.show {
    opacity: .85;
    background: radial-gradient(circle at 70% -10%, rgba(0,130,126,.55), rgba(6,38,45,.92));
}

/* Modal “glass” */
.modal.modal-aguila .modal-dialog {
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
}

.modal.modal-aguila .modal-content {
    background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.10));
    backdrop-filter: blur(18px) saturate(110%);
    -webkit-backdrop-filter: blur(18px) saturate(110%);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
}

/* Header compacto con barra sutil y título claro */
.modal.modal-aguila .modal-header {
    padding: .85rem 1.25rem;
    border: 0;
    position: relative;
}

    .modal.modal-aguila .modal-header::after {
        content: "";
        position: absolute;
        inset: auto 0 0 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    }

/* Body y footer */
.modal.modal-aguila .modal-body {
    color: #e9f1f0;
}

.modal.modal-aguila .modal-footer {
    border: 0;
    padding: 1rem 1.25rem 1.25rem;
}

/* Botones corporativos */
.btn-aguila {
    background: linear-gradient(180deg, var(--aguila-gold), #e2a82f);
    color: var(--aguila-dark);
    border: 0;
    border-radius: .6rem;
    box-shadow: 0 8px 18px rgba(245,179,53,.35);
}

    .btn-aguila:hover {
        background: linear-gradient(180deg, #ffcc4a, var(--aguila-gold));
        box-shadow: 0 10px 24px rgba(245,179,53,.45);
    }

.btn-aguila-ghost {
    background: transparent;
    color: #d6eeeb;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: .6rem;
}

    .btn-aguila-ghost:hover {
        background: rgba(255,255,255,.08);
    }

/* Encabezado general con más opacidad */
.modal.modal-aguila .modal-header {
    background: rgba(220, 53, 69, 0.65); /* rojo más fuerte y sólido */
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding: .9rem 1.25rem;
}

/* Variante por tipo de mensaje */
.modal-aguila.is-error .modal-header {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.85) 0%, rgba(145, 0, 20, 0.85) 100%);
}

.modal-aguila.is-success .modal-header {
    background: linear-gradient(90deg, rgba(25, 135, 84, 0.85) 0%, rgba(12, 90, 55, 0.85) 100%);
}

.modal-aguila.is-info .modal-header {
    background: linear-gradient(90deg, rgba(0, 130, 126, 0.85) 0%, rgba(6, 38, 45, 0.85) 100%);
}

/* Título y ícono más nítidos */
.modal.modal-aguila .modal-title {
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

    .modal.modal-aguila .modal-title i {
        font-size: 1.25rem;
        color: #fff;
    }
/* Cuerpo blanco translúcido */
.modal.modal-aguila .modal-body {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    color: #222;
    font-size: 1rem;
    line-height: 1.6;
    padding: 1.4rem 1.6rem 1.2rem;
    text-align: left;
    border: none; /* ✅ sin líneas divisorias */
    box-shadow: none; /* sin bordes internos */
}

    /* Texto principal */
    .modal.modal-aguila .modal-body strong {
        font-weight: 600;
        color: #111;
    }

/* Footer claro sin bordes */
.modal.modal-aguila .modal-footer {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: none; /* ✅ sin línea superior */
    border-top: none;
    border-bottom: none;
    justify-content: center;
    padding: 1rem 1.6rem 1.4rem;
    border-bottom-left-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
    box-shadow: none;
}

/* Botón “Cerrar” */
.modal.modal-aguila .btn-aguila {
    background: linear-gradient(180deg, #f5b335, #e2a82f);
    color: #06262d;
    border: none;
    border-radius: 0.5rem;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(245, 179, 53, 0.4);
    transition: all 0.25s ease;
}

    .modal.modal-aguila .btn-aguila:hover {
        background: linear-gradient(180deg, #ffcc4a, #f5b335);
        box-shadow: 0 8px 22px rgba(245, 179, 53, 0.55);
        transform: translateY(-1px);
    }


/* Card estilo banca */
.card-bank {
    border: 1px solid rgba(6,38,45,.08);
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(6,38,45,.06);
}

    .card-bank .card-header {
        background: linear-gradient(90deg,#06262d 0%, #00827e 100%);
        color: #fff;
        border: 0;
    }

        .card-bank .card-header h6 {
            margin: 0;
            letter-spacing: .2px;
        }

/* Tabla */
.table-bank {
    --gap: 14px;
    border: 0;
    margin: 0;
}

    .table-bank > :not(caption) > * > * {
        padding: .9rem 1rem;
        vertical-align: middle;
    }

    .table-bank tbody tr {
        background: #fff;
    }

    .table-bank thead th {
        font-weight: 600;
        color: #06262d;
        background: #f7f9fa;
        border-bottom: 1px solid #e9eef2;
    }

    .table-bank td, .table-bank th {
        border-color: #eef2f4 !important;
    }

/* Métricas */
.metric {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border-radius: 10px;
    background: #f9fbfc;
    border: 1px solid #eef2f4;
}

    .metric + .metric {
        margin-top: .6rem;
    }

    .metric .label {
        color: #5b6b75;
    }

    .metric .value {
        font-weight: 700;
        color: #06262d;
    }

/* Monto visual */
.amount {
    font-variant-numeric: tabular-nums;
}

    .amount.positivo {
        color: #0a8f5b;
    }

    .amount.negativo {
        color: #b02525;
    }

/* Botones marca */
.btn-brand {
    background: #06262d;
    color: #fff;
    border-color: #06262d;
}

    .btn-brand:hover {
        filter: brightness(1.05);
        color: #fff;
    }

    /* Estado al presionar o enfocar */
    .btn-brand:active,
    .btn-brand:focus {
        background: #041a1f; /* un poco más oscuro si quieres */
        color: #fff !important;
        border-color: #041a1f;
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(6, 38, 45, 0.25);
    }


/* Mobile: lista apilada */
@media (max-width: 575.98px) {
    .table-bank thead {
        display: none;
    }

    .table-bank tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #eef2f4;
        border-radius: 12px;
        overflow: hidden;
    }

    .table-bank tbody td {
        display: flex;
        justify-content: space-between;
    }

        .table-bank tbody td::before {
            content: attr(data-label);
            font-weight: 600;
            color: #5b6b75;
            margin-right: 1rem;
        }
}

/* Card: tope de ancho y alto relativo a viewport */
.login-card {
    max-width: 1040px; /* o 980px si quieres más compacto */
    border-radius: 1.25rem;
    overflow: hidden;
}

/* Alto consistente para ambos paneles dentro del mismo glass */
.login-split {
    display: flex;
    align-items: stretch;
    min-height: clamp(520px, 76vh, 640px); /* nunca muy chica ni gigante */
}

/* Imagen ocupa menos ancho que antes */
.pane--media {
    flex: 0 0 44%;
}
/* 44% imagen / 56% formulario */
@media (min-width: 1400px) {
    .pane--media {
        flex-basis: 46%;
    }
    /* un pelín más en pantallas muy grandes */
}

/* Imagen: encuadre y tamaño */
.media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 25% center; /* mueve el foco a la izquierda (rostro) */
}


/* Form: ocupa el resto y siempre mismo alto */
.pane--form {
    flex: 1;
    display: flex; /* clave */
    align-items: center; /* centra vertical */
}


/* El panel se centra dentro de la columna */
.pane--form .glass-pane {
    width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* centra el contenido interno */
    margin: 0 auto; /* centra horizontal si es más angosto */
}

/* Ajustes de espacios superiores/inferiores */
.text-center.mb-3 {
    margin-bottom: 1rem !important;
}

/* Si usas un overlay de fusión, hazlo muy sutil */
.media-fade {
    background: linear-gradient(to right, rgba(6,38,45,0) 75%, rgba(6,38,45,.18) 92%, rgba(6,38,45,.35) 100%);
}


/* Móvil: ocultar imagen y centrar form */
@media (max-width: 767.98px) {
    .pane--media {
        display: none !important;
    }

    .login-split {
        min-height: auto;
    }
}

/* Fondo del hero: menos blanco, más marca */
.hero-wrap {
    background: radial-gradient(120% 120% at 10% 0%, rgba(0,130,126,.20), transparent 55%), radial-gradient(130% 130% at 120% 120%, rgba(245,179,53,.05), transparent 45%);
}

/* Imagen */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.02) contrast(1.04);
}

/* OVERLAY: más oscuro y más largo hacia la derecha */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6,38,45,.85) 0%, rgba(6,38,45,.55) 45%, rgba(6,38,45,.18) 70%, rgba(6,38,45,0) 92%);
    pointer-events: none;
}

/* CAPTION: deja de ser blanco; vidrio más oscuro */
.hero-caption {
    background: rgba(6,38,45,.28); /* antes .10 */
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255,255,255,.14); /* menos brillo de borde */
    color: #e9f1f0;
}

    /* Títulos con mejor contraste */
    .hero-caption h2 {
        color: #ffffff;
    }

    .hero-caption p {
        color: rgba(255,255,255,.90);
    }

/* Indicadores: sin pastillas blancas; pequeños, discretos */
.hero-indicators button {
    background-color: rgba(255,255,255,.15); /* fallback si no hay thumb */
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
    opacity: .85;
}

    .hero-indicators button.active {
        opacity: 1;
    }

/* Altura: reduce en desktop si lo ves muy “alto y vacío” */
@media (min-width: 992px) {
    .hero-ratio {
        aspect-ratio: 18 / 9;
    }
    /* en vez de 21/9 */
}


/* Controla el tamaño del gráfico en todas las pantallas */
.chart-box {
    /* ancho adaptable: nunca enorme en desktop, cómodo en móvil */
    width: clamp(260px, 32vw, 420px);
    aspect-ratio: 1 / 1; /* cuadrado, ideal para doughnut */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Si tienes columnas anchas en desktop y quieres un poco más: */
@media (min-width: 1200px) {
    .chart-box {
        width: clamp(280px, 26vw, 460px);
    }
}

/* Canvas ocupa exactamente el wrapper */
#graficoResumen {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}






