html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
  --sb-track-color: #ffffff;
  --sb-thumb-color: #8c8c8c;
  --sb-size: 12px;
    padding-top: 40px;
    padding-right: 0px !important;
}

body::-webkit-scrollbar {
  width: var(--sb-size)
}

body::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 5px;
}

body::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 5px;
  
}

@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-color: var(--sb-thumb-color)
                     var(--sb-track-color);
  }
}

.card-cedula {
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    border-color: #212529 !important; 
    margin-bottom: 1rem !important;  
    margin-left: auto !important;     
    margin-right: auto !important;    
}



.btn-copy::after {
    content: "\F290"; /* Bootstrap icon: clipboard */
    font-family: "Bootstrap-icons";
    color: #6c757d;
    padding: 3px;
    cursor: pointer;
    margin-left: 5px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-copy:hover::after {
    color: #007bff;
    transform: translateY(-1px);
}

.tooltip-inner{background:#2c3e50;color:white;border-radius:8px;padding:8px 12px;}
td.text-truncate{max-width: 150px;cursor: pointer;}

.btn-ver {
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    line-height: 1rem;
}

.form-switch {
  padding-left: 3em !important;
}

.btn-copy.copiado {
    background: rgba(40, 167, 69, 0.1); /* Fondo verde suave */
    border-color: #28a745;
    transition: all 0.5s ease;
}

.btn-copy.copiado::after {
    content: "\F272"; /* Bootstrap icon: check */
    -webkit-text-stroke: 1.5px;
    color: #28a745;
    cursor: default;
    background: rgba(40, 167, 69, 0.1);
    padding: 3px;
    border-radius: 50%;
    animation: pulseGreen 0.5s ease;
}

.btn-std {
    width: 85px;
}

@keyframes pulseGreen {
    0% {
        background: rgba(40, 167, 69, 0);
        transform: scale(0.8);
    }
    50% {
        background: rgba(40, 167, 69, 0.2);
        transform: scale(1.1);
    }
    100% {
        background: rgba(40, 167, 69, 0.1);
        transform: scale(1);
    }
}

/* Solo aplica el borde a TODO lo que tenga la clase */
.is-warning {
    border-color: #ffc107 !important;
}

/* Aplica el icono y el padding SOLO si NO es un select ni un checkbox */
.is-warning:not(select):not(.form-check-input) {
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffc107'%3e%3cpath d='M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.editable-unlock:focus, .editable-container:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.5) !important;
    border-color: #ffc107;
}

.toggle-btn {
    position: absolute;
    top: 1px;
    right: 1px;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.toggle-btn:hover {
    opacity: 1;
}

.form-cedula {
    margin-right: auto !important;
    margin-left: auto !important;
    max-width: 20rem;
    justify-content: center;
    margin-bottom: 1.5rem !important;
}

.form-cedula #cedula {
  text-align: center;
  flex-grow: 0;
  min-width: 9em;
  padding-right: calc(1.5em + 0.75rem);
}

#cedulaFeedback {
  /* Posicionamiento */
    left: 50%;
    right: 0;
    
    position: absolute;
    top: 100%;
    
    transform: translateX(-50%);
    
    text-align: center;
    line-height: 1.2;
    /*white-space: nowrap;*/
}



.btn-mini {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.2;
}
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.2rem;
    background: #ffffff;
    color: #375a7f;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0 0.5rem;   
    border: 1px solid #375a7f;    
}
.btn-icon:hover {
    transform: translateY(-5px);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}
.btn-icon.unet:hover { background-color: #375a7f;border:none; }
.btn-icon.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);border:none; }
.btn-icon.twitter:hover { background-color: #000; border:none;}

.form-radios {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 5px 20px;
}
.lower-text {
    text-transform: lowercase;
}
.upper-text {
    text-transform: uppercase;
}
.capit-text {
    text-transform: capitalize;
}
svg {
    /* Estilos para los elementos <svg> */
    width: 20px;
    height: 20px;
    fill: currentColor;
    vertical-align: sub;
}
svg.lg {
    /* Estilos para los elementos <svg> */
    width: 40px;
    height: 40px;
}
.card-audio {
    float: right;
    margin: 0 30px;
    min-width: 10rem;
}
.custom-audio {
    height: 20px;
    width: -webkit-fill-available;
}
.textcard {
    font-size: 13px;
    padding: 0.5rem 1rem;
}
#imagePreview {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 65vh; /* Establecer la altura máxima del contenedor de recorte */
    overflow: hidden; /* Ocultar el contenido que excede la altura */
}
#imagePreview img {
    height: 100%;
    width: auto;
}
#toastPlacement {
    position: fixed;
    z-index: 5001;
    top: 15px;
    right: 15px;
    margin-top: 0px;
}
#toastPlacement .toast {
    width: 100%; 
    min-width: 300px;
}
.btn-close {
    top: 10px !important;
    right: 10px !important;
    padding: 0.25rem 0.25rem !important;
    width: 0.25em;
    height: 0.25em;
    border-radius: 0.25rem;
}
.top-head {
    background-image: url(../Images/logo-unet-head.webp), url(../Images/bkg1.webp);
    background-size: auto 77%, 100% 147px;
    background-repeat: no-repeat;
    background-position: 15px 12px, 75px 0px;
    padding: 10px 0 10px 100px;
    margin: -47px 0px 0px 0px;
    --bs-text-opacity: 1;
    color: #ffffff !important;
    text-shadow: 1px 1px 1px #828784, 2px 2px 0 #0a0e27;
    line-height: min(20px, 5vmin);
    font-family: Verdana, Geneva, sans-serif;
    font-weight: bold;
    font-size: min(17px, max(17px, 2vmin));
}
body > .container {
    padding-top: 10px;
    padding-bottom: 15px;
    background-color: var(--bs-container-color);
    transition: background-color 0.3s ease-in-out;
    
    @media print {
        max-width: none;
        background-color: transparent !important; /* Si también necesitas quitar el fondo */
    }
}

.myAlert-top {
    position: fixed;
    top: 30px;
    right: 30px;
    max-width: 50%;
    display: none;
    z-index: 2000;
}
.imgLink:hover {
    box-shadow: 0 0 5px 0.2rem rgb(55 90 127 / 30%);
    border-radius: 2px;

}
.back-to-top {
    position: fixed;
    bottom: 0px;
    right: 0px;
    display: none;
    width: 60px;
}
.disp-center {
    display: block; /*flex;*/
    width: fit-content;
    margin: auto;
}
.col-centered {
    margin: 0 auto;
    float: none;
}
.text-center {
    text-align: center;
}
iframe {
    overflow: hidden;
    border: none
}


.navbar .fa, .navbar .fab {
    margin-right: .25rem;
    font-size: 1rem
}
#home .navbar, #help .navbar {
    background: #375ee3;
    background: linear-gradient(145deg, #375ee3 0%, #6543e0 80%);
    transition: box-shadow 200ms ease-in
}
#cabe.navbar {
    background: linear-gradient(145deg, #ffffff 0%, #7595BF 80%);
    transition: box-shadow 200ms ease-in
}
#home .navbar-brand .nav-link, #help .navbar-brand .nav-link {
    display: inline-block;
    margin-right: -30px
}
#home {
    padding-top: 0
}
#home .btn {
    padding: .5rem .9rem
}
.bs-docs-section {
    /*margin-top: 4em*/
}
.bs-docs-section .page-header h1 {
    padding: 2rem 0;
    font-size: 3rem
}


.dropdown .dropdown-menu {
  display: none;
}
.dropdown:hover > .dropdown-menu{
  display: block;    
}
.dropdown-menu.show {
    margin-top: 0 !important;
}

.dropdown-menu.show[aria-labelledby="themes"] {
    display: -ms-flexbox;
    display: flex;
    width: 420px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap
}
.dropdown-menu.show[aria-labelledby="themes"] .dropdown-item {
    width: 33.333%
}
.dropdown-menu.show[aria-labelledby="themes"] .dropdown-item:first-child {
    width: 100%
}
.dropdown-menu .dropdown-toggle::after {
    vertical-align: middle;
    border-left: 4px solid;
    border-bottom: 4px solid transparent;
    border-top: 4px solid transparent;
}


.dropdown-menu .dropdown .dropdown-menu {
    left: 100%;
    top: 0%;
    margin: 0 20px;
}

.dropdown-item.dropdown-toggle {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    
}

/* Opcional: ajustar posición de la flecha */
.dropdown-item.dropdown-toggle::after {
    margin-left: auto !important;
    margin-right: 0 !important;
}




.bs-component {
    position: relative;
    padding: 10px;
    border: 1px solid rgb(207 217 222);
    border-radius: 12px;
    margin-bottom: 10px;
}
.bs-component + .bs-component {
    margin-top: 1rem
}
.bs-component .card {
    margin-bottom: 1rem
}
.bs-component .modal {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    z-index: 1;
    display: block
}
.bs-component .modal-dialog {
    width: 90%
}
.bs-component .popover {
    position: relative;
    display: inline-block;
    width: 220px;
    margin: 20px
}
.source-button {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 100;
    display: none;
    font-weight: 700
}

.source-button i {
    pointer-events: none
}

.source-button:hover {
    cursor: pointer
}

.bs-component:hover .source-button {
    display: block
}
#source-modal pre {
    max-height: calc(100vh - 11rem)
}
.nav-tabs {
    margin-bottom: 15px
}
.progress {
    margin-bottom: 10px
}
#footer {
    margin: 5em 0
}
#footer li {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em
}
#footer p {
    clear: left;
    margin-bottom: 0
}

@media (max-width: 767px) {
    .splash {
        padding-top: 8em
    }
    .splash .logo {
        width: 100px
    }
    .splash h1 {
        font-size: 2em
    }
    #banner {
        margin-bottom: 2em;
        text-align: center
    }
}
/* ==========================================================================
   1. REGLAS PARA IMPRESIÓN
   ========================================================================== */
@media print {
    .nprint {
        display: none !important;
    }
}

/* ==========================================================================
   2. MÓVILES Y TABLETS (Hasta 991px)
   ========================================================================== */
@media (max-width: 991px) {
    .navbar .fa {
        display: none;
    }
    
    .navbar-floating-mobile {
        position: absolute;
        top: 100%;
        left: 0; 
        z-index: 1050;
        padding: 0 1rem; 
        background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity, 1)) !important;
        border-bottom-right-radius: 0.5rem !important;
    }
}

/* ==========================================================================
   3. ESCRITORIO (Desde 992px en adelante)
   ========================================================================== */
@media (min-width: 992px) {
    .dropdown-menu .dropdown .dropdown-menu {
        margin: 0;
        border-width: 1px;
    }
    
    /* Agrupados para compartir el box-shadow nulo */
    .navbar-transparent,
    .navbar-transparent .navbar-nav > .open > a {
        box-shadow: none;
    }
    
    .navbar-transparent {
        background: none !important; 
    }
    
    .card-cedula {
        flex: 0 0 auto;
        width: 50%; 
    }
}







