
/** Declaramos variables globales **/
:root {
    --main-bg-color: #f5f5f5;
    --sidebar-bg-color: #fff;
    /* --sidebar-bg-color: rgb(138,140,142); */
    --primary-color: #060709;
    --secundary-color: #f9f9f9;
    --font-color: #333;
    --border-color: #ddd;
    --active-color: #28a745;
}

html {
    font-size: 1rem;
  }

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--main-bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
    /* Fondo mejorado */
    background-image: url('/assets/images/Fondo_web.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-color: var(--main-bg-color); /* Color de respaldo */
    
    /* Asegurar que el contenido sea legible */
    position: relative;
}

/* Opcional: Capa semitransparente para mejorar legibilidad */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: rgba(255, 255, 255, 0.1);  */
    z-index: -1;
}

@media (max-width: 768px) {
    body {
        background-image: url('/assets/images/fondo_mobile2.png');
    }
}

/* @media (max-width: 480px) {
    body {
       
        background-attachment: scroll; 
        background-size: contain; 
    }
} */

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border: 1px solid #060709 !important; 
    box-shadow: none !important;
    /* border-color: #385c37;  */
}

.main-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;

}


/* Sidebar base (para todas las resoluciones) */
#sidebar, #sidebarDash {
    display: flex;
    min-height: 100vh;
    background-color:  #FFFFFF;
    color: #060709;
    transition: all 0.3s ease-in-out;
    /* z-index: 1000; */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}


#sidebar {
    width: 180px;
}


#sidebarDash {
    width: 250px;
    position: relative; 
    padding-bottom: 120px; 

}

/* Añade media queries para diferentes resoluciones */
@media (max-width: 1440px) {
    #sidebarDash {
        width: 220px;
    }
}

@media (max-width: 1280px) {
    #sidebarDash {
        width: 200px;
    }
    #sidebarDash .nav-link {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    #sidebarDash {
        width: 180px;
    }
    #sidebarDash .nav-link {
        padding: 6px 8px;
        font-size: 0.85rem;
    }
    #sidebarDash .nav-link i {
        margin-right: 5px;
        font-size: 0.9rem;
    }
}

#sidebar ul, #sidebarDash ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Botón de hamburguesa  INI */
.nav-toggleSidebar {
    display: flex;
    justify-content: center !important;
    align-items: center;
    order: -1;
    margin: 0 !important;
    /* height: 100%; */
}

#sidebar #toggleSidebar, #sidebarDash #toggleSidebarDash {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #060709;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: 1.5rem;
}

#sidebar #toggleSidebar:hover {
    transform: scale(1.1);
    background-color: #858383;
}

#sidebarDash #toggleSidebarDash:hover {
    transform: scale(1.1);
    background-color: #858383;
}
/* Botón de hamburguesa  FIN */

/* Elementos del menú INI */
#sidebar .nav-item, #sidebarDash .nav-item {
    width: 100%; 
    margin-bottom: 5px; 
    text-align: left; 
    white-space: nowrap; 
}

#sidebar .nav-link, #sidebarDash .nav-link {
    color: #000; /* Texto negro */
    background-color: transparent !important;
    padding: 10px 15px;
    margin: 5px 0;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

/* Íconos y texto en los links */
#sidebarDash .nav-link i {
    color: inherit; /* El ícono hereda el color del texto */
    margin-right: 10px;
}

#sidebar .nav-link .icon {
    width: 25px;
    height: 25px;
}

#sidebar .nav-link span, #sidebarDash .nav-link span {
     transition: transform 0.2s ease;
}

#sidebar .nav-link:hover, #sidebarDash .nav-link:hover {
    color: #28a745 !important; /* Texto verde */
    background-color: transparent !important;
}

#sidebar .nav-link:hover span, #sidebarDash .nav-link:hover span {
    transform: translateX(3px);
}

/* Estado activo - con sombreado */
#sidebar .nav-link.active, #sidebarDash .nav-link.active {
    color: #28a745 !important;
    background-color: #f5f5f5 !important; 
    border-left: 3px solid #28a745; 
    font-weight: normal; /* Opcional: si no quieres negrita */
}


/*Collased*/
#sidebar.collapsed {
    width: 80px;
    transition: width 0.3s ease;
}

#sidebarDash.collapsed {
    width: 80px;
    overflow: hidden;
    transition: width 0.3s ease;
    align-items: center;
}

#sidebarDash.collapsed .nav-link, #sidebar.collapsed .nav-link  {
    justify-content: center; 
}

#sidebar.collapsed .nav-link span, #sidebarDash.collapsed .nav-link span {
    display: none;
}
#sidebar.collapsed .nav-link i, #sidebarDash.collapsed .nav-link i {
    margin-right: 0;
}

#sidebarDash.collapsed .nav-link i {
    margin: 0; 
    font-size: 1rem; 
    width: 100%; 
    text-align: center; 
}

#sidebarDash.collapsed .nav-item {
    display: flex;
    justify-content: center; 
}

.nav-link {
    color: #535558;
    padding: 10px;
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
}

#sidebar .nav-link i, #sidebarDash .nav-link i {
    margin-right: 10px;
}

/* Estilos para los íconos del sidebar */
#sidebar .nav-link i, 
#sidebar .nav-link .icon, 
#sidebar .nav-link img {
    transition: all 0.3s ease; /* Transición suave */
    color: #535558;
}

/* Hover en los items */
#sidebar .nav-link:hover i,
#sidebar .nav-link:hover .icon,
#sidebar .nav-link:hover img {
    filter: brightness(0) saturate(100%) invert(44%) sepia(98%) saturate(748%) hue-rotate(87deg) brightness(95%) contrast(86%); /* Color verde al hacer hover */
}

/* Estado activo */
#sidebar .nav-link.active i,
#sidebar .nav-link.active .icon,
#sidebar .nav-link.active img {
    filter: brightness(0) saturate(100%) invert(44%) sepia(98%) saturate(748%) hue-rotate(87deg) brightness(95%) contrast(86%); /* Color verde permanente */
}


#sidebarDash .nav-link i, 
#sidebarDash .nav-link .icon, 
#sidebarDash .nav-link img {
    transition: all 0.3s ease;
    color: #535558; /* Usamos color directo en lugar de filter */
    /* Eliminamos el filter ya que usaremos color directo */
}

/* Hover en los items */
#sidebarDash .nav-link:hover,
#sidebarDash .nav-link:hover i {
    color: #28a745 !important; /* Mantenemos el verde para hover */
}

/* Estado activo */
#sidebarDash .nav-link.active,
#sidebarDash .nav-link.active i {
    color: #28a745 !important;
    background-color: #f5f5f5 !important; 
    border-left: 3px solid #28a745;
}

#content {
    transition: margin-left 0.3s ease;
}

#content.collapsed {
    margin-left: 80px;
}

.content.collapsed {
    margin-left: 80px; /* Igual al ancho del sidebar collapsed */
    transition: margin-left 0.3s ease;
}

/* Contenedor del contenido principal */
.content-wrapper {
    flex: 1;
    padding-left: 50px; 
    transition: padding-left 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#sidebar.collapsed ~ .content-wrapper {
    padding-left: 80px; 
}

/* Estilos para el footer del sidebar */
.sidebar-footer {
    width: 100%;
    padding: 15px 0;
    text-align: center;
    background-color: #FFFFFF;
    position: absolute;
    bottom: 0;
    left: 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.sidebar-logo {
    max-width: 120px !important; /* Aumentamos tamaño */
    margin: 20px auto !important;
    display: block;
    transition: opacity 0.3s ease;
}

/* Solo ícono */
.sidebar-logo-icon {
    width: 24px;
    height: 24px;
    margin: 20px auto;
    display: none; 
    transition: opacity 0.3s ease;
}


/* Botón logout (solo desktop) */
.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s;
    color: #535558 !important; 
    text-decoration: none;
}

.logout-btn:hover {
    background: rgba(83, 85, 88, 0.1); /* Versión semitransparente del color */
    color: #535558 !important;
}

.logout-btn i {
    color: #535558 !important;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.logout-text {
    transition: all 0.3s ease;
}

/* Comportamiento en estado colapsado */
#sidebarDash.collapsed .logout-text,
#sidebarDash.collapsed .sidebar-logo {
    display: none;
}

#sidebarDash.collapsed .sidebar-logo-icon {
    display: block;
}

#sidebarDash.collapsed .logout-btn {
    justify-content: center;
    padding: 0.8rem 0;
}

#sidebarDash.collapsed .logout-btn i {
    margin-right: 0;
    font-size: 1.2rem;
}


/* Header móvil */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1030;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.mobile-header .container-fluid {
    width: 100%;
    padding: 0;
}

.mobile-header .d-flex {
    display: flex;
    justify-content: space-between; /* Distribuye espacio entre elementos */
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Botón del menú */
.mobile-menu-toggle {
    font-size: 1.25rem;
    color: #333;
    padding: 0.5rem;
    border: none;
    background: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: #f8f9fa;
}

/* Logo */
.mobile-logo {
    height: 30px;
    display: flex;
    align-items: center;
}

.mobile-logo img {
    height: 100%;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px; /* Espacio antes del footer */
}

/* Asegurar que el scroll no afecte al footer */
.sidebar-content::-webkit-scrollbar {
    width: 5px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar-content::-webkit-scrollbar-thumb {
    /* background: #888; */
    border-radius: 10px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}
/*FIN SIDEBAR*/

/* Sección superior: Carrusel y Login */
.top-section {
    display: flex;
    flex-wrap: wrap;
    min-height: 70vh; 
    max-width: 1200px; 
    margin: 0 auto; 
    gap: 20px; 
    padding: 20px 0;
}


/* Estilos del carousel INI */
.carousel-container {
    flex: 2;
    width: auto;
    min-width: 500px;
    display: flex;
    justify-content: flex-start;
    height: 290px; 
    position: relative;
    top: 9%;
    margin: 0 auto;
    overflow: hidden; 
    position: relative; 
    /* width: 800px; */
} 

#dynamicCarousel {
    width: 100%;
    height: 100%;
}

/* .carousel-container, .login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
} */

.carousel-inner {
    /* height: 100%;  */
    /* display: flex;
    align-items: center; */
    border-radius: 12px;
}

/* .carousel-inner img {
    width: 100%;
    object-fit: cover; 
} */

/* .carousel-inner,
.carousel-item,
.carousel-item img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease-in-out;
} */

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}



.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    border-radius: 50%; 
}

.carousel-control-prev,
.carousel-control-next {
    height: 100%;
    top: 0;
    bottom: 0;
    align-items: center;
}

.carousel .carousel-item {
    transition: transform 0.6s ease-in-out; /* Suaviza las transiciones */
}

.carousel-indicators {
    position: absolute;
    bottom: 10px; 
    left: 35%;
    transform: translateX(-50%);
    z-index: 10;
}

.carousel-indicators [data-bs-target] {
    background-color: #000; 
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: #28a745; 
}


/* Estilos del carousel FIN */

/**LOGIN FORMULARIO**/
.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    height: 400px; 
    position: relative;
    top: 5%;
    margin: 0 auto;
    align-items: center;
    min-width: 300px;
    /* display: flex;
    align-items: baseline; 
    justify-content: center;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}

.login-form {
    max-width: 300px;
    width: 100%;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-form h2 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.login-form h3 {
    margin: 0;
    font-size: 14px;
    color: #333;
}


.login-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-form button {
    /* width: 100%; */
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
}

.login-form .secundary-btn {
    background-color: #fff;
    color: #333;
    border: 1px solid #000;
    width: 8rem;
}

.login-form .primary-btn {
    background-color: #000;
    color: #fff;
    width: 8rem;
}

.login-form .parrafo {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    text-align: justify;
    color:#222    
}
.password-container {
    position: relative;   
    width: 100%; 
}

.password-container input {
    width: 100%;
    padding-right: 40px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/*icono ojito*/
.password-container .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    transition: color 0.3s ease;
}

.password-container .toggle-password:hover {
    color: #333;
}


.input-container {
    position: relative;
    margin: 20px 0;
}

.input-container {
    width: 100%;
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;

}

.input-container i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Estilo base para el botón/enlace */
.btn-link {
    background: none !important;
    border: none;
    color: #060709;
    cursor: pointer;
    text-align: center;
    width: 100%;
    padding: 8px 0;
    margin-top: 10px;
}

.btn-link:hover {
    text-decoration: underline;
}

/**FORM-REGISTER INI **/
.register-form {
    max-width: 300px;
    width: 100%;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.register-form h2 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.register-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.register-form button {
    /* width: 100%; */
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
}

.register-form .secundary-btn {
    background-color: #fff;
    color: #333;
    border: 1px solid #000;
}

.register-form .primary-btn {
    background-color: #000;
    color: #fff;
}

.register-form .parrafo {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    text-align: justify;
    color:#222    
}

.recaptcha-container {
    display: flex;
    justify-content: center; 
    transform: scale(0.8); 
    transform-origin: center; 
    width: 100%; 
    /* overflow: hidden; */
}

/**FORM-REGISTER FIN **/

/**FORM-FORGOT INI **/
.forgot-form {
    max-width: 300px;
    width: 100%;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.forgot-form h2 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.forgot-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.forgot-form button {
    /* width: 100%; */
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
}

.forgot-form .secundary-btn {
    background-color: #fff;
    color: #333;
    border: 1px solid #000;
}

.forgot-form .primary-btn {
    background-color: #000;
    color: #fff;
}

.forgot-form .parrafo {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    text-align: justify;
    color:#222    
}
/**FORM-FORGOT FIN **/

/** FOOTER LOGIN **/
.footer {
    display: flex;
    justify-content: space-between; /* Distribuye espacio entre ambos lados */
    align-items: center; 
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    gap: 20px; 
}

.footer-left {
    flex: 1; 
    text-align: left;
}

.footer-right {
    flex: 1; 
    flex-shrink: 0; 
    text-align: right;
    display: flex;
    justify-content: center;
}

.footer-logo {
    max-height: 40px; 
    width: auto; 
    position: static; 
    right: auto; 
}
/**FOOTER - LOGIN FIN**/

/**APARTADO AYUDA INI**/
.card-ayuda {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 300px;
    padding: 20px;
    box-sizing: border-box;
}

.card-ayuda-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-ayuda-header img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}
.card-ayuda-header span {
    font-size: 16px;
    font-weight: bold;
}

.card-ayuda-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
}
.card-ayuda-item:first-child {
    border-top: none;
}
.card-ayuda-item span {
    font-size: 14px;
}
.card-ayuda-item i {
    color: #757575;
    cursor: pointer;
}

/* Agrega esto a tu CSS */
.button-container-forgot {
    display: flex;
    gap: 10px; /* Espacio entre botones */
    margin-top: 15px;
}

.button-container-forgot button {
    flex: 1; /* Hace que ambos botones ocupen el mismo espacio */
}

.recovery-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 300px;
    padding: 20px;
    box-sizing: border-box;
}

.recovery-container h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}

.recovery-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.recovery-container .parrafo {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/**APARTADO AYUDA FIN**/

/** LOADER INI **/
.loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255, 0.8);
    /* display: flex;
    justify-content: center;
    align-items: center; */
    z-index: 9000;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #f3f3f3;
    border-top: 4px solid #222;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;

}

.disabledbg{
    opacity: 0.5;
    /* background-color: lightgray; */
    cursor: not-allowed !important;
}



@keyframes spin { 
    0% {
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}
/** LOADER FIN **/

/*TOOLTIP LOGIN - INI*/
.username-container{
    position: relative;
}
.tooltip-icon {
    cursor: pointer;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px; /* Tamaño del ícono */
    color: #333;
}

.tooltip-icon::after {
    content: "No se permiten caracteres especiales (!\"#$%&/()=)";
    position: absolute;
    left: 50%;
    bottom: 150%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 14px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tooltip-icon::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
    z-index: 99;
}

.tooltip-icon:hover::after {
    opacity: 1;
}
/*TOOLTIP LOGIN - FIN*/

/** APARTADO DE CUENTAS INI **/
/* Contenedor principal */
.accounts-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: #f4f4f4;
  }

  /* contenedor del apartado de buscador y titulo */
  .accounts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-left: 10px;
  }

  .accounts-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #a00d0d;
}

/*Buscador Accounts*/
.account-search-container {
    margin-bottom: 20px;
    flex: 1;
    position: relative;
    margin-left: 15px; /* Espacio entre título y buscador */
}

#accountSearchInput {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.account-search-container .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none; 
}

#accountSearchInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    outline: none;
}

  
  /* Columna izquierda: Mis cuentas */
  .accounts-column {
    flex: 1;
  }
  
  .accounts-column h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
  }
  
  /* Tarjeta de cuenta */
  .account-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* header arriba, boddy abajo*/
  }
  /* header */
  .account-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .account-header-icon {
    font-size: 24px;  
    color: #000;   
  }
  
  .account-header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .account-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
  }
  
  .account-client {
    font-size: 12px;
    color: #777;
  }
  
  /*Body*/
  .account-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .account-details p {
    margin: 0;
    font-size: 12px;
    color: #555;
  }

  .account-extra {
    font-size: 18px;
    color: #060709;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.delete-button {
    background: none; 
    border: none; 
    padding: 0; 
    cursor: pointer; 
    display: flex;
    align-items: center; 
    justify-content: center; 
}

.delete-button:hover {
    opacity: 0.7;
}
  
  /* Columna derecha: Añadir cuenta */
  .add-account-header h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
    font-weight: 700;
}

  .add-account-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .add-account-column h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
  }

  .add-account-section {
    position: relative;
    top: 18%;
    left: 0;
    margin: 0 auto;
  }

  .add-account-form {
    width: 90%;
    max-width: 400px; 
    background-color: #ffffff; 
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  
  /* Formulario para añadir cuenta */
  .add-account-form label {
    display: block;
    margin-bottom: 30px;
    font-weight: bold;
    color: #333;
    font-size: 25px;
  }
  
  .add-account-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  
  .form-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
  }

  /** efecto del input**/

  /* Contenedor del input centrado */
  .inputGroup {
    position: relative;
    text-align: center;
    margin: 0 auto;
    width: 85%;
    max-width: 400px;
  }

/* Estilos del input */
  .inputGroup input {
    display: inline-block;
    width: 80%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 10px;
    transition: width 0.3s ease;
  }

  /* Al hacer focus o hover, se expande */
.inputGroup input:focus,
.inputGroup input:hover {
  width: 100%;
}
  
  /* Estilo inicial del label (placeholder flotante) */
  .inputGroup label {
      position: absolute;
      left: 2rem;
      top: 20%;
      transform: translateY(-50%);
      font-size: 16px;
      color:#aaa;/* rgb(100, 100, 100);*/
      pointer-events: none;
      background-color: transparent;
      padding: 0 4px;
      transition: all 0.3s ease;
    }

    .inputGroup input:hover + label {
        left: 0.5rem;   /* Ajusta la posición horizontal */
        top: 20%;       /* Ajusta la posición vertical */
        font-size: 15px;  /* Un poco más pequeño que el estado inicial */
        color: #bbb;    /* Color más claro, indicando un cambio sutil */
      }

    /* Al hacer focus o cuando el input tenga valor */
    .inputGroup input:focus + label,
    .inputGroup input:valid + label {
      top: -3px;
      left: 0.5rem;
      font-size: 12px;
      color: #333;
      background: #fff;
      /* Opcional: puedes ajustar el padding o márgenes para que se vea bien */
    }

/* Opcional: Cambiar el borde del input al hacer focus */
.inputGroup input:focus {
  border-color: rgb(0, 0, 0);
}
  
  .btn-cancel,
  .btn-add {
    padding: 10px 20px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
  }
  
  .btn-cancel {
    background-color: transparent;
    color: #333;
    border: 1px solid #333;
  }
  
  .btn-add {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
  }
  
  /* Estilo cuando el botón está deshabilitado */
  .btn-add.disabled {
    background-color: #ccc; /* Color gris */
    cursor: not-allowed; /* Cambiar el cursor a "no permitido" */
  }
  
  /* Estilo cuando el botón está habilitado */
  .btn-add:not(.disabled):hover {
    background-color: #555; /* Cambiar el color al hacer hover */
  }

  /* validación de input y mensaje */
  .validation-message {
      display: flex;
      flex-direction: column;
      gap: 5px;
      margin-bottom: 5px;
      font-size: 14px;
    }
    
    /*Nota de aviso*/
    .note {
        color: #666;
        margin-bottom: 10px;
        font-size: 12px;
    }

    .icon-text-container {
        display: flex;
        gap: 5px;
    }

  #validationText {
    color: #666; 
  }
  
  #validationIcon {
    font-size: 16px;
  }
  
  /* Estilo para el estado inválido */
  .invalid #validationText {
    color: #ff0000; /* Rojo */
  }
  
  .invalid #validationIcon {
    color: #ff0000;
    display: inline-block;
  }
  
  /* Estilo para el estado válido */
  .valid #validationText {
    color: #00cc00; /* Verde */
  }
  
  .valid #validationIcon {
    color: #00cc00;
    display: inline-block;
  }

  /*Botón añadir cuentas*/
  .mobile-add-btn-container {
    display: none;
    padding: 15px;
    text-align: center;
    /* background: #fff; */
    border-top: 1px solid #eee;
  }
  
  .mobile-add-btn {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    background: transparent;
    border: 1px solid #333;
    border-radius: 2rem;
    color: #363535;
    font-weight: bold;
    cursor: pointer;
  }

/* Modal añadir cuentas */
.custom-modal-account {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
  }
  
.custom-modal-account-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }
  
  #addAccountModal .modal-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
  }
  
  #addAccountModal .modal-header h3 {
    margin: 0;
    color: #333;
  }
  
  #addAccountModal .modal-body {
    padding: 20px;
  }
  
  #addAccountModal .modal-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
  }
  
  #addAccountModal .modal-input-group label {
    background: #f5f5f5;
    padding: 10px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 5px 0 0 5px;
  }
  
  #addAccountModal .modal-input-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 0 5px 5px 0;
  }
  
  #addAccountModal .modal-note {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
  }
  
  #addAccountModal .modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
  }
  
  #addAccountModal .modal-btn-cancel, .modal-btn-submit {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
  }
  
  #addAccountModal .modal-btn-cancel {
    background: white;
    border: 1px solid #333;
    color: #333;
  }
  
  #addAccountModal .modal-btn-submit {
    background: #333;
    border: none;
    color: white;
  }

  #addAccountModal .validation-message {
    margin-top: 0;
    padding: 0 15px;
  }
  
  #addAccountModal .modal-validation-icon {
    margin-right: 5px;
    font-size: 16px;
  }
  
  #addAccountModal .modal-validation-text {
    color: #666;
  }

  .no-accounts {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    width: 100%;
}

/** APARTADO DE CUENTAS FIN **/

/** APARTADO DE MAS OPCIONES INI **/
.more-options-container {
    padding: 20px;
    background-color: #f4f4f4;
}

/**Titulo**/
.more-options-container h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

/** listado **/
.options-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.options-list li {
    padding: 15px;
    margin-bottom: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.options-list li:hover {
    background-color: #e0e0e0;
}

.options-list .arrow {
    font-size: 1.2em;
    color: #999;
}

/* Contenedor del header */
  .dynamic-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  #back-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
  }

  #dynamic-title {
    font-size: 30px; /* Ajusta según necesidad */
    font-weight: bold;
    margin: 0; /* Elimina márgenes extra */
  }
  
  #back-button i {
    font-size: 20px;
    color: #333;
    transition: color 0.3s;
  }
  
  #back-button:hover i {
    color: black;
  }

/* LOADER */
#content-area {
    position: relative; /* Permite posicionar elementos internos */
    min-height: 200px; /* Asegura que tenga un tamaño inicial */
  }
  
 

/* APARTADO DE INFORMACIÓN PERSONAL INI */
.profile-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 75rem;
    margin: 20px auto;
}

.form-group-profile {
    margin-bottom: 20px;
}

.form-group-profile label {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group-profile label i {
    margin-right: 10px;
}

.form-group-profile input,
.form-group-profile select,
.form-group-profile textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group-profile input[readonly] {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

.form-group-profile textarea {
    resize: vertical;
    height: 100px;
}

.form-group-profile .form-group-address {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.form-group-profile .form-group-address > div {
    flex: 1;
}

.form-group-profile .form-group-address select {
    width: 100%;
}

/* RADIO BUTTONS ESTILIZADOS */
.form-group-profile .radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.form-group-profile .radio-group label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    cursor: pointer;
}

/* Estilos personalizados para los radio buttons */
.form-group-profile .radio-group input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border: 2px solid #ddd;
    border-radius: 50%;
    outline: none;
    transition: all 0.2s ease;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
}

.form-group-profile .radio-group input[type="radio"]:checked {
    border-color: #28a745;
}

.form-group-profile .radio-group input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-group-profile .radio-group input[type="radio"]:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

/* APARTADO DE  CAMBIAR CONTRASAÑA INI  */

.change-password-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 75rem;
    margin: 20px auto;
} 

.form-group {
    /* margin-bottom: 20px; */
    margin-bottom: 1.5rem;
}
.form-group label {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}
.form-group label i {
    margin-right: 10px;
    font-size: 14px;
}
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}
.form-group .radio-group {
    display: flex;
    flex-direction: column;
}
.form-group .radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 5px;
    font-size: 14px;
    cursor: pointer;
}
.form-group .radio-group input[type="radio"] {
    margin-right: 10px;
}
.form-group .important {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}
.form-group .important strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
}
.form-group .important p {
    margin: 0;
    line-height: 1.5;
}
.form-group .important p span {
    font-weight: bold;
}
.form-group .important p span.special {
    font-family: monospace;
    word-break: break-all;
}
.form-group .button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;

}
.button-row {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

/*** APARTADO DE  CAMBIAR CONTRASAÑA FIN  ***/

/* APARTADO DE CONTACTOS INI  */
.contact-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 1.5rem auto;
    width: 90%;
    max-width: 60rem;
    transition: all 0.3s ease;
}

.form-group-contact {
    margin-bottom: 1.75rem; /*25px*/
}
.form-group-contact label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}
.form-group-contact label i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}
.form-group-contact select,
.form-group-contact input,
.form-group-contact textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group-contact select:focus,
.form-group-contact input:focus,
.form-group-contact textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group-contact textarea {
    resize: vertical;
    min-height: 8rem;
    line-height: 1.5;
}
.form-group-contact .message-info {
    font-size: 0.875rem; /*12px;*/
    color: #666;
    margin-top: 0.5rem;/*5px;*/
}

#contador {
    font-weight: bold;
    color: var(--primary-color);
}

.submit-btn {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.submit-btn button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    max-width: 12rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn button:hover {
    background-color: #13161a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit-btn button:active {
    transform: translateY(0);
}

/*** APARTADO DE CONTACTOS FIN  ***/

/* APARTADO DE SOLICITAR TOKEN INI  */
.token-container {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.token-info {
    margin-bottom: 20px;
    line-height: 1.6;
}

.token-info strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.token-form {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
}

.token-form label {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #333;
    font-size: 1rem;
}

.token-form label i {
    font-size: 1.2em;
}

#token-form-text {
    font-size: 0.9rem;
}

.email-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.email-container:hover {
    background-color: #f0f0f0;
}

.email-radio {
    margin-right: 12px;
}

.email-text {
    flex: 1;
    word-break: break-word;
}

/* Estilos para inputs */
.form-control-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: all 0.3s;
}

.form-control-input:focus {
    border-color: var(--primary-color) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.15) !important;
}

/* Botón principal */
.btn-send-token {
    width: 100%;
    max-width: 200px;
    padding: 12px 25px;
    /* margin-top: 15px; */
    /* width: auto; */
    background: #000;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    display: block;
    margin: 25px auto 0;
}

.btn-send-token:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-send-token:active {
    transform: translateY(0);
}

/* Sección de error */
.error-message {
    color: #d9534f;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fff0f0;
    border-radius: 6px;
}

.error-message p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.error-message p {
    margin-bottom: 10px;
}

.instruction-text {
    color: #555;
    font-size: 0.8rem;
    margin-bottom: 10px;
}
/* APARTADO DE SOLICITAR TOKEN FIN  */

/** APARTADO DE MAS OPCIONES FIN **/

/*** OPERATIONS INI ***/
.operations-container {
    max-width: 90%;
    margin: 20px auto;
    padding: 20px;
}

/*Header*/
.operations-header {
    display: flex;
    align-items: center;
    /* justify-content: flex-start; */
    justify-content: space-between; /* Distribuye el espacio entre los elementos */
    margin-bottom: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.operations-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #666;
}

/** Tarjeta de las operaciones **/
.operations-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-bottom: 10px;
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.operations-card:hover {
    transform: scale(1.02);
}

/** Header de la tarjeta **/
.operations-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.operations-card-header i {
    font-size: 1.2rem;
    margin-right: 8px;
    color: #222;
}

.operations-card-header .header-text {
    display: flex;
    flex-direction: column;
}

.operations-card-header .title {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.operations-card-header .customer-name {
    font-size: 0.85rem;
    color: #666;
}

.operations-card-header .account-number {
    font-size: 0.9rem;
    color: #666;
}

/** Cuerpo de la tarjeta de operaciones **/
.operations-card-body {
    display: flex;
    justify-content:space-between;
    align-items: center;
    font-size: 0.85rem;
    line-height: 1.4;

}

.operations-card-body-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.operations-card-body-info span {
    font-size: 0.9rem;
    color: #444;
}

.operations-card-body-info span:last-child {
    font-size: 0.8rem;
    color: #777;
}

.operations-card-body .action {
    display: flex;
    align-items: center;
}

/* Tarjeta Inactiva */
.operations-card.inactive {
    opacity: 0.85;                   
    background-color: #f9f9f9;      
    border-left: 4px solid #ddd;     
}

/* Efecto hover (más suave para inactivos) */
.operations-card.inactive:hover {
    transform: scale(1.01);          
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Texto en tarjetas inactivas */
.operations-card.inactive .operations-card-header .title,
.operations-card.inactive .operations-card-body-info span {
    color: #777 !important;          
}

/* Ícono en tarjetas inactivas */
.operations-card.inactive .operations-card-header i {
    color: #aaa !important;
}

.apply-payment {
    color: #141414;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.apply-payment:hover {
    text-decoration: underline;
}

/* Paginación  y BUSCADOR INI */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.page-btn {
    background-color: #141414;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.page-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.page-btn:hover:not(:disabled) {
    background-color: #4c4d4e;
}

#page-info {
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
}

/* Paginación  y BUSCADOR FIN */

/*** OPERACIONES FIN ***/

/** DETALLES DE OPERACIONES INI **/

.operation-container-details {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #666;
}

.main-content-details {
    display: flex;
    gap: 20px;
}

.left-column-details {
    flex: 1;
}

   
/** habilitar scroll **/
.right-column-details {
    flex: 1;
    max-height: 725px;
    padding-right: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.toggle-details {
    position: relative;
    will-change: height, opacity;
}

.details-collapsible {
    transition: all 0.3s ease;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    will-change: transform, opacity; /* Optimización para GPU */
}

.toggle-arrow {
    padding: 8px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
}

.toggle-arrow:hover {
    background-color: rgba(0,0,0,0.1);
}

#movimients-column {
    position: relative;
    top: 20px;
    right: 0;
    margin: 0 auto;
    overflow-y: auto; /* Fundamental */
    max-height: calc(100vh - 150px); /* Ajusta según necesites */    
    /* Estilos scrollbar para navegadores modernos */
    scrollbar-color: #888 #f0f0f0;
    scrollbar-width: thin;
}

.movements-container {
    flex: 1;
    margin-top: 10px;
    border-radius: 10px;
    
}

/* WebKit (Chrome, Safari) */
#movimients-column::-webkit-scrollbar {
    width: 10px;
}

#movimients-column::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: content-box;
}

#movimients-column::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
    margin: 5px 0;
}


/* Estilos para los títulos de sección */
.operation-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Botón de volver integrado */
.back-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    color: #333;
    transition: transform 0.2s ease;
}

.back-button:hover {
    transform: scale(1.1);
}

/* Títulos de sección */
.operation-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #666;
    margin: 0; 
}


.details-content-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.content-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 5px; 
    border-bottom: none !important;
}
.cuota-info {
    display: flex;
    align-items: flex-start; 
}
.content-info span {
    font-size: 14px; 
    color: #333; 
}
.cuota-info span {
    font-size: 14px;
    color: #333; 
}
.details, .movements {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    padding: 10px;
    /* margin-bottom: 15px; */
    border-bottom: 1px solid #ddd;
}
.details-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.details-header-info {
    display: flex;
    flex-direction: column; 
    align-items: flex-start; 
}

.details-header-info span {
    font-size: 18px; /* Más grande */
    font-weight: bold; /* Más resaltado */
    color: #555353;
}

.details-header-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.details-header-value span:first-child { /* Cuota */
    font-size: 20px; /* Igual que el título */
    font-weight: bold;
    color: #555353 !important;
}

.details-header-value span:last-child { /* Saldo */
    font-size: 20px; /* Igual que crédito */
    font-weight: bold;
    color: #000;
}

.details-header-icon-text {
    display: flex;
    align-items: center; 
    gap: 10px; 
}

.details-header-icon-text h2 {
    margin: 0;
    font-size: 18px; 
    color: #333; 
}
.details-content, .movements-content {
    display: flex;
    flex-direction: column;
}
.details-content div, .movements-content div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.details-content div:last-child, .movements-content div:last-child {
    border-bottom: none !important;
}
.details-content div span, .movements-content div span {
    font-size: 14px;
    color: #666;
    font-weight: 700;
}
.details-content div span.value, .movements-content div span.value {
    
    color: #333;
}

.details-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}
.details-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    flex: 1;
    transition: transform 0.2s ease, background-color 0.3s ease;
}
.details-buttons .auto-pay {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
}
.details-buttons .apply-pay {
    background-color: #000;
    color: #fff;
}/* Efecto hover */
.details-buttons button:hover {
    transform: scale(1.05); /* Aumenta tamaño ligeramente */
}

.details-buttons .auto-pay:hover {
    background-color: #f0f0f0; /* Cambio sutil en hover */
}

.details-buttons .apply-pay:hover {
    background-color: #333; /* Cambio de tono en hover */
}

.movements-content div i {
    color: #666;
}

#custum-subtitle {
    font-family: 'Roboto';
    font-weight: 500;
    line-height: 20px;
    font-size: 12px;
    color: #535558;
    letter-spacing: 0.1px;
}

.movement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 5px 0;
    border-bottom: 1px solid #eee; */
}
.movements-content-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    border-bottom: none !important;
    /* flex: 1;
    min-width: 0; */
}
.movements-content-info .description {
    font-size: 14px;
    color: #333;
}
.movements-content-info .date {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}
.movements-content-cuota {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}
.movements-content-cuota .value {
    font-size: 14px;
    color: #333;
    font-weight: 700;
}
.movements-content-cuota .fa-download {
    color: #666;
    cursor: pointer;
}

.movements-content-monto {
    display: flex;
    flex-direction: column;
}

.movements-content-monto .interes {
    color: #777;
    font-size: 14px;
}

.movement-cupon {
    font-weight: 600;
    color: #333;
}

.movement-date {
    font-size: 0.75rem !important;
    color: #777;
    margin-top: 4px;
}

.interes-earned {
    color: #4CAF50 !important;
    font-size: 13px;
    margin-top: 4px;
}

.check-icon {
    font-size: 20px;
    margin-left: 10px;
}

.check-icon.earned {
    color: #4CAF50;
}

#check-status {
    color: #4CAF50 !important;
}

.check-icon.pending {
    color: #ddd;
}

.status {
    display: flex;
    align-items: center;
}

/*barra de progreso*/
.details-investment-interes {
     display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px
}

/* Asegurar que los valores superiores estén centrados */
.progress-values {
    display: flex;
    width: 100%;
    justify-content: space-between;
    font-weight: bold;
}

/* Contenedor de valores superiores */
.progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
/* Estilos para las secciones de interés */
.interest-earned, 
.interest-total {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.interest-earned {
    text-align: left;
    border-bottom: none !important;
}

.interest-total {
    text-align: right;
}

.interest-value {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.interest-label {
    font-size: 12px;
    color: #B3B7C0 !important;
}
/* Ajustar la barra de progreso */
.progress-barx {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin: 5px 0;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 5px;
    transition: width 0.5s ease;
}
/* Sección inferior */
.progress-bottom {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 5px;
}

.progress-left,
.progress-right {
    display: flex;
    flex-direction: column;
}

.progress-left {
    align-items: flex-start;
    border-bottom: none !important;
}

.progress-right {
    align-items: flex-end;
}

#data-progress {
    color: #B3B7C0;
    font-size: 14px;
}

#remaining {
    color: #B3B7C0 !important;
    font-size: 14px;
}

/** DETALLES DE OPERACIONES FIN **/

/** DETALLE DE PAGAR TARJETA - INI **/
.paycard-container {
    padding: 15px;
    border-radius: 8px;
    /* background: white; */
    /* box-shadow: 0 1px 3px rgba(0,0,0,0.1); */
}

.payment-options {
    margin: 20px 0;
    background: white;
    border-radius: 8px;
}
/* Tabla de pagos */
.payment-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
}

.payment-table th, .payment-table td {
    padding: 12px 15px;
    text-align: center;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.payment-table th {
    font-weight: bold;
    font-size: 0.9rem;
    padding-top: 12px;
    padding-bottom: 12px;
    align-items: center;
    border-bottom: 2px solid #ddd;
}

.payment-table tr:last-child td {
    border-bottom: none;
}

.payment-table td:last-child,
.payment-table th:last-child {
    border-right: none;
}

.payment-table tr:hover td {
    background-color: #f9f9f9;
}

.payment-option td {
    vertical-align: middle;
    background: white;
    transition: background-color 0.2s ease;
}

.payment-option td:first-child {
    font-weight: 500;
    color: #333;
}
/* Opciones de monto */

.amount-option-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amount-option-wrapper .currency-label {
    display: none; /* Oculto por defecto */
}

.amount-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ajustamos el hover para los amount-option */
.amount-option:hover .monto-display {
    background: #f8f8f8;
    border-color: #eee;
}

.amount {
    font-size: 0.9rem;
    font-weight: bold;
}


/*Monto solo lecturas*/
.monto-display {
    flex-grow: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    background: #f9f9f9;
    color: #333;
    cursor: default;
    width: 80px;
    text-align: right;
    border-color: transparent;
    background: transparent;
}

/* Mantenemos los estilos para los inputs editables */
.monto-input {
    flex-grow: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    width: 80px;
    text-align: right;
    appearance: textfield;
    margin: 0 0.7rem;
}

.monto-input::-webkit-outer-spin-button,
.monto-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.monto-input[readonly] {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    cursor: default;
}

.monto-input:not([readonly]) {
    background-color: #fff;
    border-color: #ddd;
    cursor: text;
}

.monto-input:focus {
    outline: none;
    border-color: #333; /* Gris muy oscuro */
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.2); /* Sutil sombra */
}

/* Botón de aplicar pago */
.apply-payment-btn {
    background: black;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: block;
    margin: 20px auto 10px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.confirm-btn {
    background: black;
    color: white;
    padding: 12px 24px; 
    border-radius: 25px;
    border: 2px solid black;
    width: auto; 
    min-width: 150px; 
    margin: 20px auto 0; 
    display: block; 
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn:hover {
    background: white;
    color: black;
}


/*MODAL CUSTOM - INI */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1500;
}

.custom-modal.active {
    display: flex !important;
}

.custom-modal .modal-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 30rem;
    max-height: 80vh;
    overflow-y: auto;
}

/* Estilos para el scrollbar */
.custom-modal .modal-content::-webkit-scrollbar {
    width: 8px;
}

.custom-modal .modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.custom-modal .modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 8px;
}

.custom-modal .modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Estilos para elementos dentro del modal */
.custom-modal .modal-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    background: #f9f9f9;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.custom-modal .modal-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

.custom-modal .modal-item-header i {
    font-size: 1.2rem;
    color: #000;
}

.custom-modal .modal-item-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    gap: 10px;
}

.custom-modal .modal-item-info {
    flex: 1;
}

.custom-modal .modal-item-info p {
    margin: 0;
    font-size: 0.9rem;
}

.custom-modal .modal-item-info small {
    color: gray;
}

.custom-modal .modal-btn-accept {
    background: black;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 20px;
    margin-top: 15px;
    cursor: pointer;
}

.custom-modal .modal-btn-accept:hover {
    background: #333;
}
/*MODAL CUSTOM - FIN */


.tarjeta-item, .cuenta-item {
    display: flex;
    /* justify-content: space-between;
    align-items: center; */
    flex-direction: column;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    background: #f9f9f9;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: background 0.3 ease;
}

.tarjeta-item .tarjeta-item-header, .cuenta-item .cuenta-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

.tarjeta-item .tarjeta-item-header i, .cuenta-item .cuenta-item-header i {
    font-size: 1.2rem;
    color: #000;
}

.tarjeta-item .tarjeta-item-body, .cuenta-item .cuenta-item-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    gap: 10px;
}

.tarjeta-item .tarjeta-item-body input[type="radio"], 
.cuenta-item .cuenta-item-body input[type="radio"], 
.payment-table input[type="radio"] {
    accent-color:  var(--active-color);
}

.tarjeta-item .info, .cuenta-item .info {
    flex: 1;
}

.tarjeta-item .info p, .cuenta-item .info p {
    margin: 0;
    font-size: 0.9rem;
}


.cuenta-item .info small {
    color: gray;
}

.btnModalAceptar {
    background: black;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 20px;
    margin-top: 15px;
    cursor: pointer;
}

.btnModalAceptar:hover {
    background: #333;
}

#CardUser span {
    font-weight: bold;
    display: block;
}

#CardUser small {
    color: #666;
    font-size: 0.8em;
}

#labelminimolocal, #labelminimointer,
#labelcontadolocal, #labelcontadointer {
    font-weight: bold;
}

.payment-card-header-info {
    display: flex;
    flex-direction: column;
}

/** DETALLE DE PAGAR TARJETA - FIN **/

/** GENERALIZACIÓN DE ESTILOS EN LOS MODALDES DE PAGOAUTOMATICO Y APLICAR PAGO**/
/* Animación de aparición suave */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Estilos para el modal */
#autoPayModal.modal,
#applyPayModal.modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
}

#autoPayModal.modal.active,
#applyPayModal.modal.active {
    display: flex; /* Mostrar el modal */
    animation: fadeInScale 0.4s ease-in-out; /* Aplicar animación */
}

#autoPayModal.modal.active .modal-content,
#applyPayModal.modal.active .modal-content {
    opacity: 1; /* Estado final para la animación */
    transform: scale(1); /* Estado final para la animación */
}

/*** APARTADO PARA PAGOS AUTOMATICOS - INI  ***/

/* Estilos generales del modal */ 
#autoPayModal .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: scale(0.9); 
    opacity: 0; 
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* Transición suave */
}

#autoPayModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#autoPayModal .modal-body {
    padding: 0;
}

#autoPayModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#autoPayModal .form-group {
    margin-bottom: 20px;
}

#autoPayModal .form-group label {
    display: block;
    margin: 15px 0 5px;
    font-size: 14px;
    color: #555;
}

#autoPayModal .form-group input[type="text"],
#autoPayModal .form-group input[type="date"],
#autoPayModal .form-group select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

#autoPayModal .form-group input[type="text"]:focus,
#autoPayModal .form-group input[type="date"]:focus,
#autoPayModal .form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Camdate */

/* Asegura que el datepicker sea visible en modales */
.flatpickr-calendar {
    z-index: 99999 !important;
    animation: none !important;
}

/* Estilo para el input del datepicker */
.datepicker-wrapper {
    position: relative;
}

.datepicker-wrapper .input-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
    z-index: 5;
}

/* Asegura que el input sea clickeable */
#debitDay {
    background-color: white !important;
    cursor: pointer !important;
    padding-right: 30px !important; /* Espacio para el icono */
}
/* Estilo para el texto del rango de fechas */
.date-range-info {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}

/* Estilos para los checkboxes */
/* Contenedor de notificaciones */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espacio entre elementos */
}

/* Cada ítem de notificación (SMS o Email) */
.notification-item {
    display: flex;
    align-items: center;
    gap: 10px; 
}

/* Estilo del label de notificación */
.notification-label {
    font-size: 14px;
    color: #555;
    width: 60px; 
}
/* Estilo del input de notificación */
.notification-input {
    flex: 1; 
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0; 
    margin-left: 10px;
    transition: opacity 0.3s ease, margin-left 0.3s ease;
}

/* Estilo del switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

/* Ocultar el checkbox nativo */
.switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Estilo del slider (fondo del switch) */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

/* Estilo del círculo deslizante */
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

/* Cambiar el color del slider cuando el switch está activo */
input:checked + .slider {
    background-color: #4CAF50; /* Verde */
}

/* Mover el círculo deslizante cuando el switch está activo */
input:checked + .slider:before {
    transform: translateX(26px);
}


/* Mostrar el input cuando el switch está activo */
input:checked ~ .notification-input {
    opacity: 1;
    margin-left: 0;
}

/* leyendas */

#autoPayModal .icon-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
}

#autoPayModal .icon-label i {
    margin-right: 10px;
    color: #0f0f0f;
}

#autoPayModal .important-note {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

#autoPayModal .close-modal {
    font-size: 24px;
    cursor: pointer;
}

#autoPayModal .close-modal:hover {
    color: #555;
}

#autoPayModal .modal-footer {
    border-top: none;
    padding: 20px 0 0 0;
    margin-top: 20px;
    display: flex;
    justify-content: center; /* Centrar los botones */
}

#autoPayModal .modal-footer .btn {
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#autoPayModal .modal-footer .cancel {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #333;
}

#autoPayModal .modal-footer .cancel:hover {
    background-color: #f8f9fa;
}

#autoPayModal .modal-footer .activate {
    background-color: #333;
    color: white;
    border: none;
}

#autoPayModal .modal-footer .activate:hover {
    background-color: #555;
}

/** ESTILO PARA EL DATEPICKER */

/* Personalización del Flatpickr */
.custom-flatpickr .flatpickr-month {
    font-size: 1rem ; 
    margin-bottom: 5px;
}

.custom-flatpickr .flatpickr-current-month {
    padding: 4px 0 0 0;
}

.custom-flatpickr .flatpickr-current-month .flatpickr-monthDropdown-months {
    font-size: 1rem !important; 
    padding: 2px;
}

.custom-flatpickr .cur-year {
    font-size: 1rem !important; 
    margin-bottom: 5px;
}

.custom-flatpickr .numInputWrapper {
    width: 3ch;
}

.custom-flatpickr .flatpickr-day.selected {
    background: #6c757d; /* Gris en lugar de azul */
    border-color: #6c757d;
}

.custom-flatpickr .flatpickr-day.selected:hover {
    background: #5a6268; /* Gris más oscuro al hover */
    border-color: #5a6268;
}

/* Flechas de navegación */
.custom-flatpickr .flatpickr-prev-month,
.custom-flatpickr .flatpickr-next-month {
    padding: 4px;
}

.custom-flatpickr .flatpickr-prev-month:hover,
.custom-flatpickr .flatpickr-next-month:hover {
    color: #28a745 !important; /* Verde para coincidir con los switches */
}



/*** APARTADO PARA PAGOS AUTOMATICOS - FIN  ***/

/*** APARTADO PARA APLICAR PAGO - INI  ***/
#applyPayModal .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px; /* Aumenta el ancho máximo */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: scale(0.9); /* Estado inicial para la animación */
    opacity: 0; /* Estado inicial para la animación */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* Transición suave */
}

/* header de modal*/
#applyPayModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#applyPayModal .modal-header i {
    cursor: pointer;
    margin-right: 10px;
    color: #555;
}

#applyPayModal .modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

/*Secciones*/
#applyPayModal .section {
    margin-bottom: 18px;
}

#applyPayModal .section-title {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#applyPayModal .section-title i {
    margin-right: 10px;
    color:#555;
}

#applyPayModal .section-title span {
    font-size: 14px;
    color: #555;
}

#applyPayModal .input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}


#applyPayModal .info {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

/* Footer del modal */
#applyPayModal .modal-footer {
    border-top: none;
    padding: 20px 0 0 0;
    display: flex;
    justify-content: center; /* Centrar los botones */
}

#applyPayModal .modal-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#applyPayModal .modal-footer .cancel {
    background-color: #f8f9fa;
    color: #333;
    margin-right: 10px;
}

#applyPayModal .modal-footer .cancel:hover {
    background-color: #e9ecef;
}

#applyPayModal .modal-footer .pay {
    background-color: #333;
    color: white;
}

#applyPayModal .modal-footer .pay:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Acordeón para debitSection */
#debitSection, #infoSection, #paymentOptionsSection {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
  }
  
  #debitSection.visible, 
  #infoSection.visible, 
  #paymentOptionsSection.visible {
    max-height: 500px; /* Ajusta según tu contenido */
    opacity: 1;
  }

.hidden {
    display: none !important;
}

.info .visible {
    display: block;
}

/* Efecto de tarjeta para las secciones desplegables */
#debitSection, #paymentOptionsSection {
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 10px;
    padding: 0 10px;
  }
  
  #debitSection.visible, #paymentOptionsSection.visible {
    padding: 10px;
  }


/*applyPayModal - radio-gruop - INI */
/* Estilo moderno para radio buttons */
#applyPayModal .radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }
  
#applyPayModal  .radio-group label {
    display: flex;
    align-items: center;
    padding: 8px 12px; /* Padding más compacto */
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  
#applyPayModal .radio-group label:hover {
    background: #f5f5f5;
  }
  
#applyPayModal  .radio-group input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #6c757d;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.2s;
  }
  
#applyPayModal  .radio-group input[type="radio"]:checked {
    border-color: var( --active-color);
    background-color: var( --active-color);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
  }
  
#applyPayModal  .radio-group label span {
    font-size: 12px; 
    color: #333;
  }
  
#applyPayModal .radio-group label i.fa-info-circle {
    margin-left: 8px;
    color: #6c757d;
    font-size: 12px;
  }

/* Desahabilitar radios grupo y opciones */
#applyPayModal .radio-group label.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    /* position: relative; */
}

#applyPayModal .radio-group label.disabled::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: not-allowed;
}

/* Input deshabilitado */
#applyPayModal #paymentAmountDebit:disabled {
    background-color: #f5f5f5;
    border-color: #ddd;
}

/* En tu sección de estilos */
.radio-group label.disabled-option {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.radio-group input[type="radio"]:disabled + span {
    color: #999;
}

#applyPayModal .radio-group input[type="radio"]:disabled + span {
    color: #aaa;
    cursor: not-allowed;
}

#applyPayModal .radio-group input[type="radio"]:disabled ~ .fa-info-circle {
    opacity: 0.5;
}

#applyPayModal .radio-group input[type="radio"]:disabled {
    border-color: #ddd;
    background-color: #f5f5f5;
}
  
  /* Estilo para el texto descriptivo */
#applyPayModal #paymentDescription {
    font-size: 12px;
    color: #495057;
    margin-bottom: 10px;
    line-height: 1.4;
  }

#applyPayModal #paymentDescription strong {
    color: #060709;
  }

#applyPayModal #paymentAmountDebit:invalid {
    border-color: #ff4444;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

#applyPayModal .modal-content input:not([type="hidden"]),
#applyPayModal .modal-content select {
    transition: all 0.3s ease;
}

.modal-content input[value=""],
.modal-content select:not([selected]) {
    animation: fadeReset 0.5s ease;
}

@keyframes fadeReset {
    0% { background-color: #f8f9fa; }
    100% { background-color: white; }
}

/*applyPayModal - radio-gruop - FIN */

/* Estilos para los tooltips */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background-color: #000; 
    color: #fff;
    border-radius: 6px;
    font-size: 12px; 
    /* white-space: nowrap; */
    z-index: 1000;
    opacity: 0.9;
    margin-bottom: 8px;
    font-family: Arial, sans-serif; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    line-height: 1.5; /* espaciado entre lineas */
    max-width: 250px;
    width: max-content;
    word-wrap: break-word; /*Palabras largas se dividan*/
    white-space: normal;
    text-align: left;
}

[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #000 transparent transparent transparent; /* Flecha negra */
    z-index: 1000;
    margin-bottom: 3px;
}

/** APARTADO PARA APLICAR PAGO - FIN **/

/** MODAL DE NOTIFICACIONES - INI  **/
#modalNotification, #modalConfirmation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    align-items: center;
    justify-content: center;
    z-index: 10000; 
}

#modalNotification.active, #modalConfirmation.activate {
    display: flex !important; 
}

/* Estilos para el modal de cuentas */
#modalNotification .modal-content {
    max-height: 70vh;
    overflow-y: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 30rem;
    max-width: 90%;
}

/** MODAL DE NOTIFICACIONES - FIN  **/

/** MODAL DE NOTIFICACIONES - INI**/
/* Estilos para el modal */
#modalNotification .modal, #modalConfirmation .modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#modalNotification .modal-content, #modalConfirmation .modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    text-align: center;
}

#modalNotification .modal-header,  #modalConfirmation .modal-header {
    font-size: 1.2em;
    margin-bottom: 10px;
    display: flex;
    justify-content: center !important;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    flex-direction: column;

}

#modalNotification .modal-body,  #modalConfirmation .modal-body {
    margin-bottom: 20px;
}

#modalNotification .btnModalAceptar {
    background-color: #060709;
    color: #fff;
    border-top: none;
    margin-top: 20px;
    display: flex;
    justify-content: center; /* Centrar los botones */
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: auto;
}

#modalNotification .btnModalAceptar:hover {
    background-color: #19191a;
}

#modalNotification .success {
    color: green;
}

#modalNotification .error {
    color: red;
}

#modalConfirmation .modal-footer {
    display: flex;
    justify-content: center; 
    gap: 10px; 
}

#modalNotification .btnModalConfirmar {
    background-color: #060709;
    color: #fff;
    border-top: none;
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: auto;
}

#modalConfirmation .btn {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#modalConfirmation .btn-dark {
    background-color: #060709;
    color: #fff;
    border: none;
}

#modalConfirmation .btn-dark:hover {
    background-color: #19191a;
}

#modalConfirmation .btn-outline-secondary {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #333;
}

#modalConfirmation .btn-outline-secondary:hover {
    background-color: #f8f9fa;
}
/** MODAL DE NOTIFICACIONES - FIN**/

/*** CUSTOM-PAGINACIÓN Y BUSCADOR - INI  ***/

/* Contenedor del filtro y buscador */
.filter-container {
    display: flex !important ;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    flex-wrap: nowrap; 
}

/* Estilos para el buscador */
.search-container {
    flex: 1;
    max-width: 300px;
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 10px 40px 10px 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    transition: borde-color 0.3s ease, box-shadow 0.3s ease;
}

#searchInpunt:focus {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 225, 0.2);
    outline: none;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
}

/* Estilos para el selector de filtro */
#filterSelect {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

#filterSelect:focus {
    border-color: #007bff;
    outline: none;
}

/* Estilos para la paginación */
.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 5px;
}

.custom-pagination button {
    /* margin: 0 5px; */
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.custom-pagination button:hover {
    background-color: #f8f9fa; 
    border-color: #060709; 
}

.custom-pagination button.active {
    background-color: #060709;
    color: #fff;
    border-color: #060709;
}

.custom-pagination button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-pagination #pageNumbers {
    display: flex;
    gap: 5px;
}

.custom-pagination #pageNumbers button {
    min-width: 30px; 
    text-align: center;
}

/* Estilos para los puntos suspensivos */
.custom-pagination .dots {
    font-size: 16px;
    margin: 0 5px;
}

/* Estilos para los íconos de flecha */
.custom-pagination .icon {
    font-size: 16px;
}
/*** CUSTOM-PAGINACIÓN Y BUSCADOR - FIN  ***/

/*****-- PAGO AUTOMATICO - INI -*****/
.pago-automatico-container {
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    width: 90%;
    max-width: 55rem;
    margin: 1rem auto;
    transition: all 0.3s ease;
  }
  
  .payment-section {
    margin-bottom: 30px;
  }
  
  .payment-section h2 {
    margin-bottom: 10px;
    font-size: 1.2em;
  }

/* Estilos para la sección de "Día de débito" */
.payment-section label.icon-label {
    display: block; 
    margin-bottom: 10px; 
    font-size: 14px;
    color: #333;
}

.payment-section .datepicker {
    display: block; 
    width: 100%;
    margin-bottom: 5px; 
}

.payment-section small {
    display: block; 
    font-size: 12px;
    color: #666;
    margin-top: 5px; 
}

  /* Estilos para los checkboxes */
.payment-section input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
}

.payment-section input[type="checkbox"]:checked {
    background-color: #333; /* Color oscuro cuando está seleccionado */
    border-color: #fff; /* Borde blanco */
}

.payment-section input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #fff; /* Punto blanco */
    border-radius: 50%;
}

/* Estilos para los campos de texto */
.payment-section [type="text"],
.payment-section input[type="email"],
.payment-section input[type="number"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 100%;
    max-width: 300px;
}

/* Campos de texto deshabilitados */
.payment-section input[type="text"]:disabled,
.payment-section input[type="email"]:disabled {
    opacity: 0;
    transform: translateX(-10px);
}

/* Campos de texto habilitados */
.payment-section input[type="text"]:not(:disabled),
.payment-section input[type="email"]:not(:disabled) {
    opacity: 1;
    transform: translateX(0);
}

/* Estilos para los campos de texto */
.payment-section input[type="text"],
.payment-section input[type="email"],
.payment-section input[type="number"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 100%;
    max-width: 300px;
}

/* Campos de texto deshabilitados */
.payment-section input[type="text"]:disabled,
.payment-section input[type="email"]:disabled {
    opacity: 0;
    transform: translateX(-10px);
}

/* Campos de texto habilitados */
.payment-section input[type="text"]:not(:disabled),
.payment-section input[type="email"]:not(:disabled) {
    opacity: 1;
    transform: translateX(0);
}
  
  .notificacion {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .notificacion label {
    margin-right: 10px;
    width: 60px;
  }
  
  .notificacion input[type="text"],
  .notificacion input[type="email"] {
    flex-grow: 1;
  }
  
/* Estilos para los botones */
.payment-botones {
    display: flex;
    justify-content: center; 
    gap: 1rem;
    margin-top: 2rem;
}

.payment-botones .btn-cancelar,
.payment-botones .btn-activar {
    padding: 0.75rem 1.5rem;
    border-radius: 20px; 
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 8rem;
}

.payment-botones .btn-cancelar {
    background-color: #fff;
    border: 2px solid #ccc; /* Borde gris */
    color: #333;
}

.payment-botones .btn-cancelar:hover {
    background-color: #f0f0f0;
}

.payment-botones .btn-activar {
    background-color: #000; /* Fondo negro */
    border: 2px solid #fff; /* Borde blanco */
    color: #fff;
}

.payment-botones .btn-activar:hover {
    background-color: #333;
}

/*****-- PAGO AUTOMATICO - FIN -*****

/* ESTILOS PARA FLATPICKR - INI */
    .flatpickr-calendar {
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border-radius: 8px;
        font-family: inherit;
        width: 100%;
        max-width: 300px;
    }

    .flatpickr-day {
        border-radius: 50%;
        height: 36px;
        line-height: 36px;
    }

    .flatpickr-day.selected, 
    .flatpickr-day.selected:hover {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }

    .flatpickr-day.today {
        border-color: var(--primary-color);
    }

    .flatpickr-day.today:hover {
        background: #e6e6e6;
    }

    .flatpickr-months .flatpickr-month {
        color: #333;
        fill: #333;
    }

    .flatpickr-weekdays {
        background: var(--primary-color);
    }

    .flatpickr-weekday {
        color: white;
    }

    .flatpickr-current-month .flatpickr-monthDropdown-months {
        appearance: none;
        background: transparent;
        border: none;
        color: inherit;
        font-size: 1rem;
        padding: 0 0.5rem;
    }

/* ESTILOS PARA FLATPICKR - FIN */

.form-check-input:checked {
    background-color: #4caf50; /* Verde */
    border-color: #4caf50;
}

/* Sidebar en dispositivos pequeños (móviles) */
/* Estilos específicos para móvil */
@media (max-width: 992px) {
    /* body {
        padding-top: 60px; 
    } */

    .content-wrapper {
        padding-left: 0 !important;
    }

    #sidebar {
        position: fixed;
        left: -250px;
        z-index: 1000;
    }
    #sidebar.active {
        left: 0; 
    }
   .top-section {
        flex-direction: column;
        gap: 30px; /* Espacio entre carrusel y login */
        padding: 20px 15px; /* Padding lateral */
    }

    .carousel-container {
        display: none; 
    }
    
    .login-container {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding-top: 30px; 
    }

    #sidebarDash {        
        position: fixed;
        top: 60px !important; 
        height: calc(100vh - 60px) !important;
        width: 250px;
        left: -250px;
        /* height: 100vh; */
        z-index: 1050;
        transition: all 0.3s ease;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
        min-height: 90vh !important;
    }

    #sidebarDash.mobile-open {
        left: 0;
    }

        /* Overlay para móvil */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.1);
        z-index: 1040;
    }

    /* Botón toggle móvil */
    .mobile-menu-toggle {
        position: static !important; /* Anula cualquier posición fija anterior */
        margin-left: 0;
    }

    .sidebar-footer {
        padding: 0.5rem;
        border-top: none;
        display: flex;
        flex-direction: column;
        align-items: center; /* Centrado horizontal */
        justify-content: center; /* Centrado vertical */
        width: 100%;
    }
    
    .logo-container {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .sidebar-logo {
        max-width: 60px;
        margin: 0 auto; /* Centrado adicional */
    }

    /* Padding solo para dashboard en móvil */
    body.dashboard-page {
        padding-top: 60px;
    }
    
    /* Asegura que el botón desktop esté oculto */
    .logout-btn.d-none.d-lg-block {
        display: none !important;
    }
}

/* 48 rem = 768px */
@media (max-width: 768px) {

    html {
        font-size: 1rem;
    }

    /* SIDEBAR - MEDIA QUERY 768PX - INI */
    #sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        height: 60px !important;
        width: 100% !important;
        min-height: auto !important;
        flex-direction: row !important;
        justify-content: space-evenly !important;
        align-items: center !important;
        border-top: 1px solid #ddd;
        border-right: none;
        padding: 0 !important;
    }

    
    /* Anula el estado colapsado en móviles */
    #sidebar.collapsed {
        width: 100% !important;
        height: 60px !important;
    }

    #sidebar ul {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 10px !important;
        margin: 0 !important;
    }

    #sidebar .nav-item {
        flex: 1 1 auto !important;
        max-width: none !important;
        width: auto !important;
        height: 100% !important;
        margin: 0 !important;
        display: flex ;
        align-items: center !important;
        justify-content: center !important;
        min-width: 0 !important;
    }

    #sidebar .nav-link {
        /* flex-direction: column;
        padding: 5px;
        font-size: 0;  */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Ocultar texto y botón toggle en móviles */
    #sidebar .nav-link span {
        display: block !important;
        font-size: 10px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    #sidebar .nav-link i {
        font-size: 20px !important;
        /* margin: 0 !important; */
        margin-bottom: 2px !important;
    }

     /* Anular completamente el estado colapsado en móviles */
     #sidebar.collapsed {
        width: 100% !important;
        height: 60px !important;
        flex-direction: row !important;
    }

    #sidebar.collapsed .nav-link {
        flex-direction: column !important;
    }


    .nav-toggleSidebar {
        display: none !important;
    }

    /*sidebar dashboard*/
    #sidebarDash {
        width: 45%;
        left: -55%;
        
    }

    .mobile-menu-toggle {
        display: block;
        padding: 10px;
    }


    /* SIDEBAR - MEDIA QUERY 768PX - FIN */

    /*CAROUSEL - MEDIA QUERY 768PX - INI*/
    /* .carousel {
        max-height: 300px;
    }
    .carousel-inner img {
        height: auto;
        max-height: 300px;
    }
    .carousel-container {
        display: none !important; 
        opacity: 0;
        height: 0;
        overflow: hidden;
    } */

    /*CAROUSEL - MEDIA QUERY 768PX - FIN */

    .main-container {
         display: flex;
        flex-direction: column;
        min-height: 100vh;
        padding: 15px;
    }
    
    .top-section {
        flex-direction: column;
    }

    .carousel-container,
    .login-container {
        width: 100%;
        min-width: unset;
    }

    /**FORMULARIO - MEDIA QUERY 768PX - INI**/
    /* .login-container {
        margin-top: 0;
        padding: 20px;
    } */

    .login-container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
        height: auto;
        /* justify-content: flex-start; */
    }

    .login-form {
        background: white !important;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 20px;
        width: 100%;
        max-width: 400px; /* Ancho máximo para no estirarse demasiado */
        margin: 0 auto; /* Centrado horizontal */
    }
    
    /* Reorganización de botones y enlace */
    #loginForm form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .login-form h2 {
        font-size: clamp(1rem, 3vw, 1.5rem);/* Mínimo 1rem, adaptable hasta 1.5rem */
    }

    .login-form h3 {
        font-size: 12px; 
    }

    .login-form input {
        padding: 8px; 
        margin: 8px 0; 
    }

    .login-form button {
        padding: 10px;
        font-size: 14px; 
    }


    @media (min-width: 600px) and (max-width: 768px) {
        #sidebar .nav-link span {
            font-size: 11px !important;
        }
    }

    /* Botones en línea en pantallas medianas */
    /* @media (min-width: 480px) {
        #loginForm .button-group {
            display: flex;
            gap: 10px;
        }
        #loginForm .button-group button {
            flex: 1; 
        }
    }     */

    .button-row button {
        flex: 1; /* Ambos botones ocupan igual espacio */
    }

    /* Enlace "Olvidó contraseña" debajo de botones */
    #loginForm #forgotPassword {
        order: 3; /* Fuerza posición después de los botones */
        margin-top: 10px;
        text-align: center;
        width: 100%;
        background: none;
        border: none;
        color: #060709;
    }

    /* formulario de registrar y olvidar contraseña - INI */
    .register-form, .forgot-form {
        background: white;
        padding: 20px;
        border-radius: 10px;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Botones apilados en móviles */
    .register-form button, .forgot-form button {
        width: 100%;
        margin: 5px 0 !important;
    }

    /* Contenedor de ayuda específico */
    .card-ayuda, 
    .recovery-container {
        width: 90%;
        max-width: 500px; /* Puedes ajustar este valor */
        margin: 20px auto;
        padding: 25px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    /* Mejoras de diseño para móvil */
    .card-ayuda-item {
        padding: 15px 0;
    }
    
    .card-ayuda-header {
        margin-bottom: 25px;
    }
    
    .card-ayuda-header span {
        font-size: 18px;
    }
    
    .card-ayuda-item span {
        font-size: 16px;
    }

    /* formulario de registrar y olvidar contraseña - FIN */

    /** FORMULARIOS - MEDIA QUERY 768PX - FIN **/

    /** Footer Responsivo **/
    .footer {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-top: auto; /* Empuja el footer hacia abajo */
        padding: 20px 0;
        position: relative;
        top: -10%;
    }

    /* .footer-left, 
    .footer-right {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .footer-right {
        flex-direction: row !important; 
        justify-content: center !important;
        gap: 10px;
    }

    .footer-logo {
        position: relative;
        right: 0;
        max-height: 35px; 
    } */

    .footer-left {
        order: 1;
        text-align: center;
        width: 100%;
    }

    .footer-right {
        order: 2;
        text-align: center;
        width: 100%;
    }

    .footer-logo {
        max-height: 40px;
        position: static;
        margin: 10px auto 0;
    }

    /**Animaciones**/
    .formulario {
        display: none;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    /** OPERACIONES - INDEX - INI **/
    .operations-container {
        max-width: 95%;
        padding: 15px;
      }
      
      .operations-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
      }
      
      .filter-container {
        width: 100%;
        flex-wrap: wrap;
      }
      
      .search-container {
        max-width: 100%;
        order: 1;
      }
      
      #filterSelect {
        order: 2;
      }
      
      .operations-card-body {
        display: flex;
        justify-content: space-between;
        align-items: center; 
        flex-wrap: nowrap; 
      }
      
      .operations-card-body-info {
        flex: 1; 
        min-width: 0; 
      }
      
      .operations-card-body-info span {
        font-size: 0.95rem !important; 
        font-weight: 500; 
        display: block; 
        margin-bottom: 3px; 
      }
      
      .operations-card-body-info span:first-child {
        color: #333 !important; 
        font-weight: 600; 
      }
      
      .operations-card-body .action {
        flex-shrink: 0; 
        margin-left: 10px; 
      }
      
      .operations-card-body .action span {
        font-size: 0.95rem !important;
        font-weight: 600;
        color: #222;
        white-space: nowrap; 
      }

      /** OPERACIONES - INDEX - FIN  **/
    /*PAYCARD - PAGAR TARJETAS - MEDIA 768PX - INI */
    .paycard-container {
        padding: 10px;
    }
    
    
    .payment-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .payment-table tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        position: relative;
    }
    
    .payment-table td {
        /* Behave like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        text-align: right;
    }
    
    .payment-table td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 30% !important;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    .payment-table td:last-child {
        border-bottom: none;
    }
    
   /* Para las filas de Saldo y Otro Monto (sin fecha) */
.payment-table tr.payment-option:first-child td:nth-of-type(1),
.payment-table tr.payment-option:last-child td:nth-of-type(1) {
    width: 100%;
    text-align: left;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-left: 10px !important;
}

/* Para las filas con fecha (Pago de Contado y Pago Mínimo) */
.payment-table tr.payment-option:nth-child(2) td:nth-of-type(1),
.payment-table tr.payment-option:nth-child(3) td:nth-of-type(1) {
    width: 100%;
    text-align: left;
    font-weight: bold;
    padding-left: 10px !important;
}

.payment-table tr.payment-option:nth-child(2) td:nth-of-type(2),
.payment-table tr.payment-option:nth-child(3) td:nth-of-type(2) {
    width: 100%;
   text-align: left;
    color: #666;
    font-size: 0.8rem;
}

/* Columnas de montos (local y extranjera) */
.payment-table td:nth-of-type(3),
.payment-table td:nth-of-type(4) {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid #f5f5f5;
     padding-left: 10% !important;
}

/* Elimina los pseudo-elementos :before que ya no necesitamos */
    .payment-table td:before {
        display: none !important;
    }
    
    /* Ajustes para los inputs de monto */
/* Contenedor principal para cada celda de moneda */
    .amount-option-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        gap: 15px;
    }
    
    /* Grupo input + label - ahora alineado a la izquierda */
    .input-group {
        display: flex;
        flex-direction: column;
        align-items: flex-start; 
        flex-grow: 1;
        width: 70%; 
    }
    
    /* Mostrar el label de moneda - ahora alineado a la izquierda */
    .amount-option-wrapper .currency-label {
        display: block;
        font-size: 0.7rem;
        color: #666;
        margin-top: 4px;
        text-align: left; /* Cambiado de right a left */
        width: 100%;
    }
    
    /* Radio button a la derecha */
    .amount-option-wrapper input[type="radio"] {
        order: 2;
        margin: 0;
        align-self: center;
    }
    
    /* Inputs más anchos */
    .amount-option-wrapper .monto-input {
        width: 90% !important; 
        text-align: left; 
        margin: 0;
    }

    .monto-input:focus {
        border-color: #333;
        box-shadow: none;
    }
    
    /* Ajuste para filas sin radio button (Saldo) */
    tr.payment-option:first-child .input-group {
        width: 100%;
    }
    
    /* Ajuste para las celdas de montos */
    .payment-table td:nth-of-type(3),
    .payment-table td:nth-of-type(4) {
        padding-left: 10px !important; 
    }
    
    /* Botones */
    /* .apply-payment-btn, .btnModalAceptar {
        width: 100%;
        padding: 12px;
    } */

    /*Flujo para ocultar secciones*/
    .payment-options,
    .apply-payment-btn {
        display: none;
    }
    
    .show-payment-options .payment-options,
    .show-payment-options .apply-payment-btn {
        display: block;
    }
    
    .show-payment-options #selectCard,
    .show-payment-options #selectAccount,
    .show-payment-options .confirm-btn {
        display: none;
    }
    
    /* Botones móviles */
    .mobile-only {
        display: block;
        width: 100%;
        margin: 15px 0;
    }
    
    /*PAYCARD - PAGAR TARJETAS - MEDIA 768PX - FIN */

    /*CUSTOM MODAL - INI */
    .custom-modal .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    /* Ajustes para las tarjetas/cuentas en modales */
    .custom-modal .modal-item {
        padding: 10px 0;
    }
    
    .custom-modal .modal-item-body {
        flex-direction: column;
        align-items: flex-start;
    }
    /*CUSTOM MODAL - FIN */
      
    /* OPERATIONS DETAILS - INI */
    .operation-container-details {
        padding: 15px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .main-content-details {
        flex-direction: column;
        gap: 15px;
    }

    .movements-container {
        max-height: 300px; 
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
    }
    
    .right-column-details {
        margin-top: 20px;
    }

    .mobile-hidden {
        display: none !important;
    }
    
    .details-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start;
    }
    
    .details-header-info, 
    .details-header-value {
        flex: 1;
        min-width: 0;
    }
    
    .details-header-value {
        text-align: right;
        padding-left: 15px; 
    }

    .operation-section-header{
        gap: 10px;
        margin-bottom: 15px;
    }

    .details-buttons {
        flex-direction: row !important; 
        flex-wrap: wrap; 
    }
    
    .details-buttons button {
        flex: 1; 
        min-width: 120px; 
    }

    .back-button {
        font-size: 18px;
    }
    
    .operation-section-title {
        font-size: 20px;
    }
    
    /* Asegurar que las secciones se apilen correctamente */
    .main-content-details {
        flex-direction: column;
    }
    
    .left-column-details, 
    .right-column-details {
        width: 100%;
    }
    
    .right-column-details {
        margin-top: 30px;
    }

    .movement-item {
        flex-direction: row !important; 
        align-items: center;
    }

    .movements-content-info {
        flex: 1;
        overflow: hidden; /* Para texto muy largo */
    }
    
    .movements-content-cuota {
        flex-shrink: 0;
        margin-left: 10px;
    }

    /* CERTIFICACIONES*/

    .details-collapsible {
        display: none;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }
    
    .toggle-details {
        transition: all 0.3s ease;
    }
    
    .toggle-details.collapsed {
        display: none;
    }
    
    .details-collapsible.expanded {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    
    .toggle-arrow .fa-solid {
        transition: transform 0.3s ease;
    }
    
    .toggle-arrow.expanded .fa-solid {
        transform: rotate(180deg);
    }
    
    .right-column-details.details-collapsible {
        margin-top: 20px;
    }
    #movimients-column {
        margin-top: 20px;
    }

    /* OPERATIONS DETAILS - FIN */

    /* CUENTAS - MEDIA QUERIES 768PX - INI */
    .accounts-container {
        flex-direction: column;
        padding: 10px;
    }

    /* Ajustes para tarjetas en móvil */
    .account-card {
        padding: 15px;
        margin-bottom: 15px;
    }

    /* Encabezado más compacto */
    .accounts-header {
        flex-direction: column;
        gap: 10px;
    }

    .account-search-container {
        margin-left: 0;
        width: 100%;
    }
    
    #accountSearchInput {
        padding: 12px 35px 12px 15px; 
    }

    /* Paginación más pequeña */
    .custom-pagination button {
        padding: 5px 10px;
    }

    .mobile-add-btn-container {
        display: block;
    }
    /**Ocultar columna Añadir*/
    .add-account-column {
       display: none;
    }

    /* CUENTAS - MEDIA QUERIES 768PX - FIN */

    /*MORE OPTIONS - MEDIA QUERY 768PX - INI */ 

    /*INFORMATIONS PERSONAL - MEDIA QUERY 768PX - INI */ 
    .profile-container {
        padding: 15px;
        margin: 15px auto;
    }

    .form-group-profile .form-group-address {
        flex-wrap: wrap;
        gap: 10px;
    }

    .form-group-profile .form-group-address > div {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }


    .form-group-profile .radio-group {
        gap: 15px;
    }

    /* INFORMATIONS PERSONAL - MEDIA QUERY 768PX - FIN */ 
    /* CHANGE PASSWORD -  MEDIA QUERY 768PX - INI */ 
    .change-password-container {
        padding: 15px;
        margin: 15px auto;
    }
    
    .form-group .radio-group {
        gap: 15px;
    }
    /* CHANGE PASSWORD -  MEDIA QUERY 768PX - FIN */ 
    /* ACTIVE TOKEN -  MEDIA QUERY 768PX - INI */ 
    .token-container {
        padding: 20px;
    }
    
    .token-form label {
        font-size: 15px;
    }
    
    .form-control-input {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .btn-send-token {
        padding: 10px 20px;
        font-size: 15px;
        max-width: 180px;
    }
    /* ACTIVE TOKEN -  MEDIA QUERY 768PX - FIN */
    /* CONTACTS -  MEDIA QUERY 768PX - INI */
    .contact-container {
        padding: 1.5rem;
        width: 95%;
    }
    
    .form-group-contact {
        margin-bottom: 1.5rem;
    }
    
    .form-group-contact label {
        font-size: 0.9375rem; /*15PX*/
    }
    /* CONTACTS -  MEDIA QUERY 768PX - FIN */

    .submit-btn button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    /*MORE OPTIONS - MEDIA QUERY 768PX - INI */ 

    /* AUTOMATIC PAYMENTS - MEDIA QUERY 768PX - INI*/
    .pago-automatico-container {
        padding: 1.25rem;
    }
    
    .notification-item {
        flex-wrap: wrap;
    }
    
    .notification-input {
        min-width: 100%;
    }
    
    /* .payment-botones {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-cancelar,
    .btn-activar {
        width: 100%;
    } */
    /* AUTOMATIC PAYMENTS - MEDIA QUERY 768PX - INI*/

}

/* Estilos para desktop (mantener comportamiento original) */
@media (min-width: 769px) {
    .details-collapsible {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .toggle-details {
        display: block !important;
    }
    
    .toggle-arrow {
        display: none;
    }

    /* PAGAR TARJETAS -INI */
    .payment-options {
        margin: 20px 0;
    }
    
    .mobile-only {
        display: none !important;
    }
    /* PAGAR TARJETAS -FIN */
}

/* Pantallas muy pequeñas (ej. 480px o menos) */
@media (max-width: 480px) {

    html {
        font-size: 0.9375rem;
    }

/* SIDEBAR - MEDIA QUERY 480 - INI */

    #sidebar {
        height: 50px !important;
    }

    #sidebar .nav-link i {
        font-size: 18px !important; 
    }

    /* Asegurar que los ítems se mantengan en línea */
    #sidebar .nav-item {
        min-width: 50px !important; 
    }

    #sidebar .nav-link span {
        font-size: 9px !important; 
    }

    /*sidebar Dashboard*/
    #sidebarDash {
        width: 55%;
        left: -55%;
    }
    
    .logout-btn {
        padding: 10px;
        font-size: 0.9rem;
    }

/* SIDEBAR - MEDIA QUERY 480PX - FIN */
    /*LOGIN - MEDIA QUERY 480PX - INI */
    .login-container {
        order: -1; 
        margin-top: 20px;
        padding: 0;
    }
    .login-form {
        max-width: 100%;
        box-shadow: none;
        background: transparent;
    }

    #loginForm form {
        gap: 8px;
    }
    
    /* Botones apilados verticalmente */
    #loginForm .button-group {
        flex-direction: column !important;
    }
    
    /* Inputs más compactos */
    #loginForm input {
        padding: 8px 12px !important;
    }

    .button-row {
        flex-direction: row; /* Mantenemos en fila */
    }

    /*recuperar*/

    
    .footer {
        margin-top: 20px;
    }

    .card-ayuda, 
    .recovery-container {
        padding: 15px;
    }

    .card-ayuda-header span {
        font-size: 14px;
    }
    
    .card-ayuda-item span {
        font-size: 13px;
    }
    /*LOGIN - MEDIA QUERY 480PX - FIN */

    /** OPERACIONES - MEDIA QUERY 480PX - INI **/
    .operations-container {
        max-width: 100%;
        margin: 10px 0;
        padding: 10px;
      }
      
      .operations-header h2 {
        font-size: 1.2rem;
      }
      
      .operations-card {
        padding: 8px;
      }
      
      .operations-card-header i {
        font-size: 1rem;
      }
      
      .operations-card-header .title {
        font-size: 0.9rem;
      }
      
      .operations-card-header .account-number {
        font-size: 0.8rem;
      }
      
      .operations-card-body-info span {
        font-size: 0.9rem;
      }

      .operations-card-body .action span {
        font-size: 0.9rem !important;
      }
      
      .operations-card-body {
        overflow: hidden; 
      }
      
      .custom-pagination button {
        padding: 6px 10px;
        font-size: 12px;
      }
    /** OPERACIONES - MEDIA QUERY 480PX - FIN **/

    /*PAYCARD - PAGAR TARJETAS - MEDIA 480PX - INI */
    .amount-option {
        gap: 5px;
    }
    
    .amount-option .monto-input {
        width: 70px !important;
    }
    .payment-table td {
        padding-left: 5% !important;
    }
    
    .payment-table td:before {
        width: 35% !important;
        font-size: 0.75rem;
    }
    

    /*PAYCARD - PAGAR TARJETAS - MEDIA 480PX - INI */

    /* OPERATIONS DETAILS - MEDIA QUERY 480PX - INI */
    .operation-container-details {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 18px;
    }

    .operation-section-title {
        font-size: 18px;
    }
    
    .details, .movements {
        padding: 15px;
    }
    
    .details-header h2 {
        font-size: 16px;
    }
    
    .details-header-info span,
    .details-header-value span {
        font-size: 14px !important;
    }
    
   
    .details-content div, 
    .movements-content div {
        padding: 8px 0;
    }

    .details-buttons button {
        min-width: 45%; /* Ajuste para pantallas muy pequeñas */
        padding: 8px 10px;
        font-size: 13px;
    }

    .movements-container {
        max-height: 250px;
    }

    .details-collapsible.expanded {
        padding: 15px;
    }
    
    .toggle-arrow {
        padding: 8px;
    }

    .operation-section-title {
        font-size: 1.2rem;
    }
    
    /* OPERATIONS DETAILS - MEDIA QUERY 480PX - FIN */

    /*ACCOUNTS - MEDIA QUERY 480PX - INI */
    #accountSearchInput {
        border-radius: 10px; 
        background: #f5f5f5; 
        border: 1px solid #ddd;
    }

    /*ACCOUNTS - MEDIA QUERY 480PX - FIN */ 

    /*MORE OPTIONS - MEDIA QUERY 480PX - INI */ 
    .more-options-container {
        padding: 15px;
    }

    .submit-btn button {
        max-width: none;
        width: 100%;
        padding: 0.75rem;
    }

    /*INFORMATIONS PERSONAL - MEDIA QUERY 480PX - INI */ 
    .profile-container {
        padding: 12px;
        margin: 10px auto;
    }

    .form-group-profile label,
    .form-group-profile label i {
        font-size: 13px;
    }

    .form-group-profile input,
    .form-group-profile select,
    .form-group-profile textarea {
        padding: 8px;
        font-size: 13px;
    }

    .form-group-profile .form-group-address {
        flex-direction: column;
        gap: 10px;
    }

    .form-group-profile .form-group-address > div {
        flex: 1 1 100%;
        width: 100%;
    }

    .form-group-profile .radio-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: space-between;
    }

    .form-group-profile .radio-group label {
        flex: 1;
        min-width: calc(33% - 8px); 
        white-space: nowrap;
        padding: 5px 0;
        margin: 0;
    }
    
    .form-group-profile .radio-group input[type="radio"] {
        margin-right: 5px;
    }

    /*INFORMATIONS PERSONAL - MEDIA QUERY 480PX - FIN */
    
    /* CHANGE PASSWORD -  MEDIA QUERY 480PX - INI */ 
    .more-options-container {
        padding: 15px;
    }
    
    .change-password-container {
        padding: 12px;
        margin: 10px auto;
    }
    
    .form-group label,
    .form-group label i {
        font-size: 13px;
    }
    
    .form-group input[type="password"] {
        padding: 10px;
        font-size: 13px;
    }
    
    .form-group .radio-group {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
    }
    
    .form-group .radio-group label {
        flex: 1;
        min-width: calc(33% - 10px);
        white-space: nowrap;
    }
    
    .form-group .important {
        font-size: 12px;
        padding: 10px;
    }
    /* CHANGE PASSWORD -  MEDIA QUERY 480PX - INI */     
    /* CONTACTS -  MEDIA QUERY 480PX - INI */ 
    .form-group-contact label {
        font-size: 12px;
    }
    .form-group-contact select,
    .form-group-contact input,
    .form-group-contact textarea {
        font-size: 12px;
    }
    /* CONTACTS -  MEDIA QUERY 480PX - FIN */
    /* ACTIVE TOKEN -  MEDIA QUERY 480PX - INI */

    .token-container {
        padding: 15px;
        width: 95%;
    }
    
    .token-form {
        padding: 10px;
    }
    
    .token-form label,
    .token-form label i {
        font-size: 0.9rem;
    }
    
    .email-container {
        padding: 10px;
    }
    
    .form-control-input {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .instruction-text {
        font-size: 0.8rem;
    }
    
    .btn-send-token {
        width: 100%;
        max-width: none;
        padding: 12px;
    }
    
    /* ACTIVE TOKEN -  MEDIA QUERY 480PX - FIN */
    /* CONTACTS -  MEDIA QUERY 480PX / 30REM - INI */
    .contact-container {
        padding: 1.25rem;
        border-radius: 10px;
    }
    
    .form-group-contact label,
    .form-group-contact label i {
        font-size: 0.875rem;
    }
    
    .form-group-contact select,
    .form-group-contact input,
    .form-group-contact textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .form-group-contact textarea {
        min-height: 6.5rem;
    }
    /* CONTACTS -  MEDIA QUERY 480PX / 30REM - INI */

    /*MORE OPTIONS - MEDIA QUERY 480PX - INI */ 

    /* AUTOMATIC PAYMENTS - MEDIA QUERY 480PX - INI */
    .pago-automatico-container {
        padding: 1rem;
        width: 95%;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .icon-label,
    .notification-label {
        font-size: 0.9375rem;
    }
    
    .switch {
        width: 2.75rem;
        height: 1.4rem;
    }
    
    .slider:before {
        height: 1rem;
        width: 1rem;
    }
    
    input:checked + .slider:before {
        transform: translateX(1.3rem);
    }
    
    .modal-content {
        width: 95%;
        padding: 1rem;
    }

    .payment-botones {
        gap: 0.5rem;
    }
    
    .btn-cancelar,
    .btn-activar {
        padding: 0.6rem 1rem;
        min-width: auto;
        width: auto;
        border-radius: 50px; /* Forma completamente circular */
        font-size: 0.875rem;
    }
    
    .btn-activar {
        padding: 0.6rem 1.2rem; /* Un poco más ancho para mantener proporción */
    }
    
    /* AUTOMATIC PAYMENTS - MEDIA QUERY 480PX - FIN */

    /* ESTILOS PARA FLATPICKR - MEDIA QUERY 480PX - INI */
    .flatpickr-calendar {
        max-width: 280px;
        font-size: 14px;
    }
    
    .flatpickr-day {
        height: 32px;
        line-height: 32px;
        font-size: 12px;
    }
    
    .flatpickr-current-month {
        font-size: 14px;
    }
    /* ESTILOS PARA FLATPICKR - MEDIA QUERY 480PX - FIN */

}

/*21.875rem => 350px */
@media (max-width: 350px) {
    .login-form {
        padding: 15px 10px !important;
        box-shadow: none !important;
    }

    /** OPERACIONES - INDEX - INI **/

    .operations-header h2 {
        font-size: 1.2em;
    }

    .header-left {
       flex-direction: column;
       align-items: flex-start;
    }
      
    .back-button {
      margin-bottom: 5px;
    }
      
    .operations-card-body-info span {
      font-size: 0.85rem !important;
    }

    .operations-card-body .action span {
      font-size: 0.85rem !important;
    }
      
    .custom-pagination {
      flex-wrap: wrap;
    }
      
    #pageNumbers {
      order: 1;
      width: 100%;
      justify-content: center;
      margin: 5px 0;
    }
    /** OPERACIONES - INDEX - FIN **/

    /* OPERATIONS DETAILS - MEDIA QUERY 350PX - INI */
    .header h1 {
        font-size: 16px;
    }
    
    .details-header h2 {
        font-size: 15px;
    }
    
    .details-header-info span,
    .details-header-value span {
        font-size: 14px !important;
    }
    
    .details-content div span, 
    .movements-content div span {
        font-size: 13px;
    }
    
    .details-content div span.value, 
    .movements-content div span.value {
        font-size: 13px;
    }
    
    .details-buttons button {
        padding: 6px 12px;
        font-size: 13px;
    }
    /* OPERATIONS DETAILS - MEDIA QUERY 350PX - FIN */

    /*MORE OPTIONS - MEDIA QUERY 350PX - INI */ 
    .more-options-container {
        padding: 10px;
    }

    /*INFORMATIONS PERSONAL - MEDIA QUERY 350PX - INI */ 
    .profile-container {
        padding: 10px;
    }
    
    .form-group-profile label,
    .form-group-profile label i {
        font-size: 12px;
    }
    
    .form-group-profile input,
    .form-group-profile select,
    .form-group-profile textarea {
        padding: 7px;
        font-size: 12px;
    }
    
    .form-group-profile textarea {
        min-height: 80px;
    }
    
    .form-group-profile .radio-group {
        gap: 5px;
    }
    
    .form-group-profile .radio-group label {
        min-width: calc(33% - 5px);
        font-size: 11px;
        padding: 3px 0;
    }
    
    .form-group-profile .radio-group label i {
        font-size: 11px;
    }
    
    .back-button {
        padding: 5px;
    }
    
    .back-button i {
        font-size: 14px;
    }

    /*INFORMATIONS PERSONAL - MEDIA QUERY 350PX - FIN */ 
    /* CHANGE PASSWORD -  MEDIA QUERY 350PX - INI */ 
    .more-options-container {
        padding: 10px;
    }
    
    .change-password-container {
        padding: 10px;
    }
    
    .form-group label,
    .form-group label i {
        font-size: 12px;
    }
    
    .form-group input[type="password"] {
        padding: 8px;
        font-size: 12px;
    }
    
    .form-group .radio-group label {
        font-size: 11px;
        min-width: calc(33% - 5px);
    }
    
    .form-group .important {
        font-size: 11px;
    }
    /* CHANGE PASSWORD -  MEDIA QUERY 350PX - INI */ 
    /* ACTIVE TOKEN -  MEDIA QUERY 350PX - INI */
    .token-container {
        padding: 12px;
    }
    
    .token-form label,
    .token-form label i {
        font-size: 0.7rem;
    }
    
    .form-control-input {
        font-size: 0.7rem;
    }
    
    .btn-send-token {
        font-size: 0.8rem;
    }
    
    .token-info {
        font-size: 0.7rem;
    }
    /* ACTIVE TOKEN -  MEDIA QUERY 350PX - INI */

    /* CONTACTS -  MEDIA QUERY 350PX / 21.875REM - INI */
    .contact-container {
        padding: 1rem;
        width: 98%;
    }
    
    .form-group-contact label {
        font-size: 0.8125rem;
    }
    /* CONTACTS -  MEDIA QUERY 350PX / 21.875REM - INI */
    .submit-btn button {
        font-size: 0.875rem;
    }
    /*MORE OPTIONS - MEDIA QUERY 350PX - FIN */ 

    /* AUTOMATIC PAYMENTS - MEDIA QUERY 350 PX - INI*/
    .pago-automatico-container {
        padding: 0.875rem;
    }
    
    .icon-label,
    .notification-label {
        font-size: 0.875rem;
    }
    
    .form-control,
    .notification-input {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .btn-cancelar,
    .btn-activar {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    /* AUTOMATIC PAYMENTS - MEDIA QUERY 350 PX - INI*/
    
}

