/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Botones, Cards, Formularios, Badges, etc. */

/* ------------------------------------
   BOTONES
--------------------------------------- */
.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn:hover {
    color: #ffffff !important;
    text-decoration: none;
    background-color: var(--offi-carousel-dot-active) !important;
    border-color: var(--offi-carousel-dot-active) !important;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

/* OFFI Botón Especial (Extraído de OFFI) */
.rm-btn {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    background-color: var(--offi-gray-bg);
    border-radius: 4px;
    height: 44px;
    padding: 0 15px;
    border: 0;
    cursor: pointer;
    transition: background-color .3s ease;
}

.rm-btn-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--offi-text-dark);
    transition: color .3s ease;
}

.rm-btn:hover {
    background-color: var(--offi-blue-hover);
}

.rm-btn:hover .rm-btn-text {
    color: #fff;
}

/* ------------------------------------
   FORMULARIOS
--------------------------------------- */
.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25);
}

/* ------------------------------------
   TABLAS
--------------------------------------- */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

.table th, .table td {
    padding: .75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

/* ------------------------------------
   LOADERS
--------------------------------------- */
.wave-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.wave-loader .dot {
    width: 6px;
    height: 6px;
    background-color: var(--offi-text-dark, #333);
    border-radius: 50%;
    animation: wave 1.2s infinite ease-in-out both;
}

.wave-loader .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.wave-loader .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes wave {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}
