﻿/* ===== ESTILO BASE PARA TODOS LOS BOTONES ===== */
.btn-institucional {
    background: #ffffff;
    color: #333333 !important;
    border: 2px solid #333333;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    letter-spacing: 0.3px;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .btn-institucional:hover {
        background: #333333;
        color: #ffffff !important;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
        transform: translateY(-1px);
    }

    .btn-institucional:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .btn-institucional i {
        font-size: 16px;
        transition: transform 0.2s ease;
    }

    .btn-institucional:hover i {
        transform: scale(1.05);
    }

    .btn-institucional:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

/* ===== BOTÓN PRINCIPAL (VARIANTE OSCURA) ===== */
.btn-institucional-primary {
    background: #333333;
    color: #ffffff;
    border: 2px solid #333333;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.2);
}

    .btn-institucional-primary:hover {
        background: #ffffff;
        color: #333333;
        box-shadow: 0 8px 18px rgba(51, 51, 51, 0.25);
        transform: translateY(-1px);
    }

/* ===== BOTÓN DE BÚSQUEDA ===== */
.btn-buscar {
    background: #ffffff;
    color: #333333;
    border: 2px solid #333333;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .btn-buscar:hover {
        background: #333333;
        color: #ffffff;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
        transform: translateY(-1px);
    }

    .btn-buscar i {
        font-size: 16px;
        transition: transform 0.2s ease;
    }

    .btn-buscar:hover i {
        transform: scale(1.05);
    }

/* ===== BOTÓN SECUNDARIO (BORDE SUTIL) ===== */
.btn-secundario {
    background: transparent;
    color: #333333;
    border: 2px solid #cccccc;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
}

    .btn-secundario:hover {
        background: #f5f5f5;
        border-color: #333333;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

/* ===== BOTÓN DE PELIGRO/ELIMINAR ===== */
.btn-peligro {
    background: #ffffff;
    color: #dc3545;
    border: 2px solid #dc3545;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
}

    .btn-peligro:hover {
        background: #dc3545;
        color: #ffffff;
        box-shadow: 0 6px 14px rgba(220, 53, 69, 0.25);
        transform: translateY(-1px);
    }

/* ===== BOTÓN DE ÉXITO/CONFIRMAR ===== */
.btn-exito {
    background: #ffffff;
    color: #28a745;
    border: 2px solid #28a745;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
}

    .btn-exito:hover {
        background: #28a745;
        color: #ffffff;
        box-shadow: 0 6px 14px rgba(40, 167, 69, 0.25);
        transform: translateY(-1px);
    }

/* ===== BOTÓN PARA SWEET ALERT ===== */
.swal-button-custom {
    background: #ffffff !important;
    color: #333333 !important;
    border: 2px solid #333333 !important;
    padding: 12px 32px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

    .swal-button-custom:hover {
        background: #333333 !important;
        color: #ffffff !important;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18) !important;
        transform: translateY(-1px) !important;
    }

.swal-button-cancel-custom {
    background: #ffffff !important;
    color: #dc3545 !important;
    border: 2px solid #dc3545 !important;
    padding: 12px 32px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

    .swal-button-cancel-custom:hover {
        background: #dc3545 !important;
        color: #ffffff !important;
        box-shadow: 0 6px 14px rgba(220, 53, 69, 0.25) !important;
        transform: translateY(-1px) !important;
    }

/* ===== BOTONES PEQUEÑOS ===== */
.btn-small {
    padding: 8px 20px !important;
    font-size: 13px !important;
    min-width: 120px !important;
}

/* ===== BOTONES GRANDES ===== */
.btn-large {
    padding: 16px 40px !important;
    font-size: 16px !important;
    min-width: 220px !important;
}

/* ===== BOTONES CON ANCHO COMPLETO ===== */
.btn-block {
    width: 100%;
    min-width: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .btn-institucional,
    .btn-buscar,
    .btn-secundario,
    .btn-peligro,
    .btn-exito {
        width: 100%;
        min-width: auto;
        padding: 12px 24px;
    }

    .swal-button-custom,
    .swal-button-cancel-custom {
        width: 100% !important;
        margin: 5px 0 !important;
    }
}


/* ===== BOTÓN DE BÚSQUEDA ===== */
.btn-centrado {
    background: #ffffff;
    color: #333333;
    border: 2px solid #333333;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-left:28%;
}

    .btn-centrado:hover {
        background: #333333;
        color: #ffffff;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
        transform: translateY(-1px);
    }

    .btn-centrado i {
        font-size: 16px;
        transition: transform 0.2s ease;
    }

    .btn-centrado:hover i {
        transform: scale(1.05);
    }