/* ================================ */
/* ESTILOS PARA BTN-OUTLINE2        */
/* VERSIONES PERSONALIZADAS         */
/* ================================ */

/* Estilos base para botón outline2 genérico */
.btn-outline2 {
    border: 1px solid rgba(4, 91, 117, 0.5);
    color: #045b75;
    background-color: transparent;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    margin: 0.125rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-outline2:hover {
    background-color: rgba(4, 91, 117, 0.1);
    border-color: #045b75;
    color: #045b75;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 25px rgba(4, 91, 117, 0.25), 0 4px 10px rgba(4, 91, 117, 0.15);
    z-index: 10;
}

.btn-outline2:focus,
.btn-outline2:active {
    background-color: rgba(4, 91, 117, 0.15);
    border-color: #034a5c;
    color: #034a5c;
    box-shadow: 0 0 0 0.2rem rgba(4, 91, 117, 0.25);
}

.btn-outline2:not(:disabled):not(.disabled):active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 15px rgba(4, 91, 117, 0.2);
}

/* Efecto de pulso sutil en hover para iconos */
.btn-outline2:hover i {
    animation: pulse2 0.6s ease-in-out;
}

/* ================================ */
/* VARIANTES PERSONALIZADAS         */
/* ================================ */

/* PRIMARY2 - Azul personalizado */
.btn-outline2-primary {
    border-color: rgba(4, 91, 117, 0.5);
    color: #045b75;
}

.btn-outline2-primary:hover {
    background-color: rgba(4, 91, 117, 0.1);
    border-color: #045b75;
    color: #045b75;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 25px rgba(4, 91, 117, 0.25), 0 4px 10px rgba(4, 91, 117, 0.15);
    z-index: 10;
}

.btn-outline2-primary:focus,
.btn-outline2-primary:active {
    background-color: rgba(4, 91, 117, 0.15);
    border-color: #034a5c;
    color: #034a5c;
    box-shadow: 0 0 0 0.2rem rgba(4, 91, 117, 0.25);
}

/* SECONDARY2 - Gris personalizado */
.btn-outline2-secondary {
    border-color: rgba(66, 66, 66, 0.5);
    color: #424242;
}

.btn-outline2-secondary:hover {
    background-color: rgba(66, 66, 66, 0.1);
    border-color: #424242;
    color: #424242;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 25px rgba(66, 66, 66, 0.25), 0 4px 10px rgba(66, 66, 66, 0.15);
    z-index: 10;
}

.btn-outline2-secondary:focus,
.btn-outline2-secondary:active {
    background-color: rgba(66, 66, 66, 0.15);
    border-color: #2e2e2e;
    color: #2e2e2e;
    box-shadow: 0 0 0 0.2rem rgba(66, 66, 66, 0.25);
}

.btn-outline2-secondary:not(:disabled):not(.disabled):active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 15px rgba(66, 66, 66, 0.2);
}

/* SUCCESS2 - Verde personalizado */
.btn-outline2-success {
    border-color: rgba(125, 197, 219, 0.5);
    color: #7dc5db;
}

.btn-outline2-success:hover {
    background-color: rgba(125, 197, 219, 0.1);
    border-color: #7dc5db;
    color: #7dc5db;
    box-shadow: 0 8px 25px rgba(125, 197, 219, 0.25), 0 4px 10px rgba(125, 197, 219, 0.15);
}

.btn-outline2-success:focus,
.btn-outline2-success:active {
    background-color: rgba(125, 197, 219, 0.15);
    border-color: #5eb8d1;
    color: #5eb8d1;
    box-shadow: 0 0 0 0.2rem rgba(125, 197, 219, 0.25);
}

/* DANGER2 - Rojo personalizado */
.btn-outline2-danger {
    border-color: rgba(220, 53, 69, 0.5);
    color: #dc3545;
}

.btn-outline2-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.25), 0 4px 10px rgba(220, 53, 69, 0.15);
}

.btn-outline2-danger:focus,
.btn-outline2-danger:active {
    background-color: rgba(220, 53, 69, 0.15);
    border-color: #bd2130;
    color: #bd2130;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* WARNING2 - Naranja personalizado */
.btn-outline2-warning {
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
}

.btn-outline2-warning:hover {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #ffc107;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.25), 0 4px 10px rgba(255, 193, 7, 0.15);
}

.btn-outline2-warning:focus,
.btn-outline2-warning:active {
    background-color: rgba(255, 193, 7, 0.15);
    border-color: #e0a800;
    color: #e0a800;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* INFO2 - Cian personalizado */
.btn-outline2-info {
    border-color: rgba(23, 162, 184, 0.5);
    color: #17a2b8;
}

.btn-outline2-info:hover {
    background-color: rgba(23, 162, 184, 0.1);
    border-color: #17a2b8;
    color: #17a2b8;
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.25), 0 4px 10px rgba(23, 162, 184, 0.15);
}

.btn-outline2-info:focus,
.btn-outline2-info:active {
    background-color: rgba(23, 162, 184, 0.15);
    border-color: #117a8b;
    color: #117a8b;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* DARK2 - Gris oscuro personalizado */
.btn-outline2-dark {
    border-color: rgba(52, 58, 64, 0.5);
    color: #343a40;
}

.btn-outline2-dark:hover {
    background-color: rgba(52, 58, 64, 0.1);
    border-color: #343a40;
    color: #343a40;
    box-shadow: 0 8px 25px rgba(52, 58, 64, 0.25), 0 4px 10px rgba(52, 58, 64, 0.15);
}

.btn-outline2-dark:focus,
.btn-outline2-dark:active {
    background-color: rgba(52, 58, 64, 0.15);
    border-color: #1d2124;
    color: #1d2124;
    box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.25);
}

/* LIGHT2 - Blanco personalizado */
.btn-outline2-light {
    border-color: rgba(248, 249, 250, 0.8);
    color: #f8f9fa;
    background-color: rgba(248, 249, 250, 0.1);
}

.btn-outline2-light:hover {
    background-color: rgba(248, 249, 250, 0.2);
    border-color: #f8f9fa;
    color: #212529;
    box-shadow: 0 8px 25px rgba(248, 249, 250, 0.4), 0 4px 10px rgba(248, 249, 250, 0.3);
}

.btn-outline2-light:focus,
.btn-outline2-light:active {
    background-color: rgba(248, 249, 250, 0.3);
    border-color: #dae0e5;
    color: #212529;
    box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5);
}

/* ================================ */
/* RESPONSIVE DESIGN                */
/* ================================ */

@media (max-width: 768px) {
    .btn-outline2:hover,
    .btn-outline2-primary:hover,
    .btn-outline2-secondary:hover,
    .btn-outline2-success:hover,
    .btn-outline2-danger:hover,
    .btn-outline2-warning:hover,
    .btn-outline2-info:hover,
    .btn-outline2-dark:hover,
    .btn-outline2-light:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

@media (max-width: 576px) {
    .btn-outline2:hover,
    .btn-outline2-primary:hover,
    .btn-outline2-secondary:hover,
    .btn-outline2-success:hover,
    .btn-outline2-danger:hover,
    .btn-outline2-warning:hover,
    .btn-outline2-info:hover,
    .btn-outline2-dark:hover,
    .btn-outline2-light:hover {
        transform: translateY(-3px);
    }
    
    .btn-outline2 {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ================================ */
/* ESTADOS DISABLED                 */
/* ================================ */

.btn-outline2:disabled,
.btn-outline2.disabled,
.btn-outline2-primary:disabled,
.btn-outline2-primary.disabled,
.btn-outline2-secondary:disabled,
.btn-outline2-secondary.disabled,
.btn-outline2-success:disabled,
.btn-outline2-success.disabled,
.btn-outline2-danger:disabled,
.btn-outline2-danger.disabled,
.btn-outline2-warning:disabled,
.btn-outline2-warning.disabled,
.btn-outline2-info:disabled,
.btn-outline2-info.disabled,
.btn-outline2-dark:disabled,
.btn-outline2-dark.disabled,
.btn-outline2-light:disabled,
.btn-outline2-light.disabled {
    opacity: 0.6;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-outline2:disabled:hover,
.btn-outline2.disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: transparent;
}

/* ================================ */
/* ANIMACIONES PERSONALIZADAS       */
/* ================================ */

@keyframes pulse2 {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ================================ */
/* UTILIDADES ADICIONALES           */
/* ================================ */

.btn-outline2.gap-2 {
    gap: 0.5rem;
}

.btn-group .btn-outline2:not(:last-child) {
    margin-right: -1px;
}

.btn-group .btn-outline2:hover {
    z-index: 2;
}

/* Tamaños personalizados */
.btn-outline2.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.775rem;
}

.btn-outline2.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* ================================ */
/* AGREGAR AL FINAL DEL ARCHIVO     */
/* EFECTOS AVANZADOS ADICIONALES    */
/* ================================ */

/* Estilos base mejorados - AGREGAR OVERFLOW */
.btn-outline2 {
    overflow: hidden; /* AGREGAR ESTA LÍNEA */
}

/* ================================ */
/* EFECTOS DE SHIMMER/BRILLO        */
/* ================================ */

.btn-outline2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.btn-outline2:hover::before {
    left: 100%;
}

/* Shimmer específico para cada variante */
.btn-outline2-primary::before {
    background: linear-gradient(90deg, transparent, rgba(4, 91, 117, 0.3), transparent);
}

.btn-outline2-secondary::before {
    background: linear-gradient(90deg, transparent, rgba(66, 66, 66, 0.3), transparent);
}

.btn-outline2-success::before {
    background: linear-gradient(90deg, transparent, rgba(125, 197, 219, 0.3), transparent);
}

.btn-outline2-danger::before {
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.3), transparent);
}

.btn-outline2-warning::before {
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.3), transparent);
}

.btn-outline2-info::before {
    background: linear-gradient(90deg, transparent, rgba(23, 162, 184, 0.3), transparent);
}

.btn-outline2-dark::before {
    background: linear-gradient(90deg, transparent, rgba(52, 58, 64, 0.3), transparent);
}

.btn-outline2-light::before {
    background: linear-gradient(90deg, transparent, rgba(248, 249, 250, 0.5), transparent);
}

/* ================================ */
/* EFECTOS DE ONDAS EXPANSIVAS      */
/* ================================ */

.btn-outline2::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 5%;
    background: rgba(4, 91, 117, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn-outline2:hover::after {
    width: 300px;
    height: 300px;
}

/* Ondas específicas para cada variante */
.btn-outline2-primary::after {
    background: rgba(4, 91, 117, 0.1);
}

.btn-outline2-secondary::after {
    background: rgba(66, 66, 66, 0.1);
}

.btn-outline2-success::after {
    background: rgba(125, 197, 219, 0.1);
}

.btn-outline2-danger::after {
    background: rgba(220, 53, 69, 0.1);
}

.btn-outline2-warning::after {
    background: rgba(255, 193, 7, 0.1);
}

.btn-outline2-info::after {
    background: rgba(23, 162, 184, 0.1);
}

.btn-outline2-dark::after {
    background: rgba(52, 58, 64, 0.1);
}

.btn-outline2-light::after {
    background: rgba(248, 249, 250, 0.2);
}

/* ================================ */
/* EFECTOS DE RIPPLE EN CLICK       */
/* ================================ */

.btn-outline2:not(:disabled):not(.disabled):active {
    animation: rippleEffect 0.6s linear;
}

.btn-outline2-primary:not(:disabled):not(.disabled):active {
    animation: primaryRipple 0.6s linear;
}

.btn-outline2-secondary:not(:disabled):not(.disabled):active {
    animation: secondaryRipple 0.6s linear;
}

.btn-outline2-success:not(:disabled):not(.disabled):active {
    animation: successRipple 0.6s linear;
}

.btn-outline2-danger:not(:disabled):not(.disabled):active {
    animation: dangerRipple 0.6s linear;
}

.btn-outline2-warning:not(:disabled):not(.disabled):active {
    animation: warningRipple 0.6s linear;
}

.btn-outline2-info:not(:disabled):not(.disabled):active {
    animation: infoRipple 0.6s linear;
}

.btn-outline2-dark:not(:disabled):not(.disabled):active {
    animation: darkRipple 0.6s linear;
}

.btn-outline2-light:not(:disabled):not(.disabled):active {
    animation: lightRipple 0.6s linear;
}

/* ================================ */
/* KEYFRAMES PARA RIPPLES           */
/* ================================ */

@keyframes rippleEffect {
    0% { box-shadow: 0 4px 15px rgba(4, 91, 117, 0.2), 0 0 0 0 rgba(4, 91, 117, 0.7); }
    70% { box-shadow: 0 4px 15px rgba(4, 91, 117, 0.2), 0 0 0 10px rgba(4, 91, 117, 0); }
    100% { box-shadow: 0 4px 15px rgba(4, 91, 117, 0.2), 0 0 0 0 rgba(4, 91, 117, 0); }
}

@keyframes primaryRipple {
    0% { box-shadow: 0 0 0 0 rgba(4, 91, 117, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(4, 91, 117, 0); }
    100% { box-shadow: 0 0 0 0 rgba(4, 91, 117, 0); }
}

@keyframes secondaryRipple {
    0% { box-shadow: 0 0 0 0 rgba(66, 66, 66, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(66, 66, 66, 0); }
    100% { box-shadow: 0 0 0 0 rgba(66, 66, 66, 0); }
}

@keyframes successRipple {
    0% { box-shadow: 0 0 0 0 rgba(125, 197, 219, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(125, 197, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(125, 197, 219, 0); }
}

@keyframes dangerRipple {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

@keyframes warningRipple {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

@keyframes infoRipple {
    0% { box-shadow: 0 0 0 0 rgba(23, 162, 184, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(23, 162, 184, 0); }
    100% { box-shadow: 0 0 0 0 rgba(23, 162, 184, 0); }
}

@keyframes darkRipple {
    0% { box-shadow: 0 0 0 0 rgba(52, 58, 64, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(52, 58, 64, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 58, 64, 0); }
}

@keyframes lightRipple {
    0% { box-shadow: 0 0 0 0 rgba(248, 249, 250, 0.8); }
    70% { box-shadow: 0 0 0 10px rgba(248, 249, 250, 0); }
    100% { box-shadow: 0 0 0 0 rgba(248, 249, 250, 0); }
}

/* ================================ */
/* EFECTOS DE ICONOS MEJORADOS      */
/* ================================ */

/* Rotación para iconos específicos */
.btn-outline2:hover .fa-sync,
.btn-outline2:hover .fa-refresh,
.btn-outline2:hover .fa-redo,
.btn-outline2:hover .fa-spinner {
    animation: rotateIcon 0.8s ease-in-out;
}

@keyframes rotateIcon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Rebote para iconos de acción */
.btn-outline2:hover .fa-save,
.btn-outline2:hover .fa-check,
.btn-outline2:hover .fa-plus,
.btn-outline2:hover .fa-upload {
    animation: bounceIcon 0.6s ease-in-out;
}

@keyframes bounceIcon {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    80% { transform: translateY(-1px); }
}

/* Shake para iconos de eliminar */
.btn-outline2-danger:hover .fa-trash,
.btn-outline2-danger:hover .fa-times,
.btn-outline2-danger:hover .fa-delete {
    animation: shakeIcon 0.6s ease-in-out;
}

@keyframes shakeIcon {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* ================================ */
/* EFECTOS DE FOCUS MEJORADOS       */
/* ================================ */

.btn-outline2:focus {
    outline: none;
    animation: focusPulse 1.5s infinite;
}

.btn-outline2-primary:focus {
    box-shadow: 0 0 0 3px rgba(4, 91, 117, 0.25), 0 4px 15px rgba(4, 91, 117, 0.2);
}

.btn-outline2-secondary:focus {
    box-shadow: 0 0 0 3px rgba(66, 66, 66, 0.25), 0 4px 15px rgba(66, 66, 66, 0.2);
}

.btn-outline2-success:focus {
    box-shadow: 0 0 0 3px rgba(125, 197, 219, 0.25), 0 4px 15px rgba(125, 197, 219, 0.2);
}

.btn-outline2-danger:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25), 0 4px 15px rgba(220, 53, 69, 0.2);
}

.btn-outline2-warning:focus {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25), 0 4px 15px rgba(255, 193, 7, 0.2);
}

.btn-outline2-info:focus {
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.25), 0 4px 15px rgba(23, 162, 184, 0.2);
}

.btn-outline2-dark:focus {
    box-shadow: 0 0 0 3px rgba(52, 58, 64, 0.25), 0 4px 15px rgba(52, 58, 64, 0.2);
}

.btn-outline2-light:focus {
    box-shadow: 0 0 0 3px rgba(248, 249, 250, 0.5), 0 4px 15px rgba(248, 249, 250, 0.3);
}

@keyframes focusPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ================================ */
/* EFECTOS DE LOADING               */
/* ================================ */

.btn-outline2.loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-outline2.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 5%;
    animation: buttonSpin 1s linear infinite;
    z-index: 2;
}

.btn-outline2-primary.loading::before { color: #045b75; }
.btn-outline2-secondary.loading::before { color: #424242; }
.btn-outline2-success.loading::before { color: #7dc5db; }
.btn-outline2-danger.loading::before { color: #dc3545; }
.btn-outline2-warning.loading::before { color: #ffc107; }
.btn-outline2-info.loading::before { color: #17a2b8; }
.btn-outline2-dark.loading::before { color: #343a40; }
.btn-outline2-light.loading::before { color: #f8f9fa; }

@keyframes buttonSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================================ */
/* EFECTOS DE ENTRADA               */
/* ================================ */

.btn-outline2.fade-in {
    animation: fadeInUp 0.5s ease-out;
}

.btn-outline2.slide-in {
    animation: slideInRight 0.5s ease-out;
}

.btn-outline2.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.1); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* ================================ */
/* EFECTOS ESPECIALES POR VARIANTE  */
/* ================================ */

/* Success con glow */
.btn-outline2-success:hover {
    animation: successGlow 2s infinite alternate;
}

@keyframes successGlow {
    0% { box-shadow: 0 8px 25px rgba(125, 197, 219, 0.25); }
    100% { box-shadow: 0 8px 35px rgba(125, 197, 219, 0.4); }
}

/* Warning con blink */
.btn-outline2-warning:hover {
    animation: warningBlink 1.5s infinite;
}

@keyframes warningBlink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.8; }
}

/* ================================ */
/* UTILIDADES DE CONTROL            */
/* ================================ */

.btn-outline2.no-animation {
    transition: none !important;
    animation: none !important;
}

.btn-outline2.no-animation::before,
.btn-outline2.no-animation::after {
    display: none !important;
}

.btn-outline2.no-animation:hover {
    animation: none !important;
}

.btn-outline2.fast-animation {
    transition: all 0.2s ease !important;
}

.btn-outline2.slow-animation {
    transition: all 0.8s ease !important;
}
 
/* ================================ */
/* MEJORAS EN DISABLED              */
/* ================================ */

.btn-outline2:disabled::before,
.btn-outline2:disabled::after,
.btn-outline2.disabled::before,
.btn-outline2.disabled::after {
    display: none;
}

.btn-outline2:disabled:hover,
.btn-outline2.disabled:hover {
    animation: none !important;
}

/* ================================================ */
/* COMPLETAR TODOS LOS BOTONES MODERNOS            */
/* ================================================ */

/* ✅ COMPLETAR BTN-SUCCESS-MODERNO */
.btn-success-moderno {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    font-weight: 100;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-success-moderno:not(:disabled):hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-success-moderno:not(:disabled):active {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success-moderno:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3), 0 4px 12px rgba(0,0,0,0.1);
}

.btn-success-moderno:disabled {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ✅ BTN-SECONDARY-MODERNO - Estilos base */
.btn-secondary-moderno {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    font-weight: 100;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.btn-secondary-moderno:not(:disabled):hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

.btn-secondary-moderno:not(:disabled):active {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-secondary-moderno:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.3), 0 4px 12px rgba(0,0,0,0.1);
}

.btn-secondary-moderno:disabled {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ✅ BTN-PRIMARY-MODERNO */
.btn-primary-moderno {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    font-weight: 100;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.btn-primary-moderno:not(:disabled):hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-primary-moderno:not(:disabled):active {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary-moderno:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), 0 4px 12px rgba(0,0,0,0.1);
}

.btn-primary-moderno:disabled {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ✅ BTN-INFO-MODERNO */
.btn-info-moderno {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    font-weight: 100;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.btn-info-moderno:not(:disabled):hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.btn-info-moderno:not(:disabled):active {
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-info-moderno:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.3), 0 4px 12px rgba(0,0,0,0.1);
}

.btn-info-moderno:disabled {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ✅ BTN-DANGER-MODERNO */
.btn-danger-moderno {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    font-weight: 100;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-danger-moderno:not(:disabled):hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-danger-moderno:not(:disabled):active {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger-moderno:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3), 0 4px 12px rgba(0,0,0,0.1);
}

.btn-danger-moderno:disabled {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ✅ BTN-WARNING-MODERNO */
.btn-warning-moderno {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    font-weight: 100;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-warning-moderno:not(:disabled):hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-warning-moderno:not(:disabled):active {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning-moderno:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3), 0 4px 12px rgba(0,0,0,0.1);
}

.btn-warning-moderno:disabled {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ✅ BTN-DARK-MODERNO */
.btn-dark-moderno {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    font-weight: 100;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white;
}

.btn-dark-moderno:not(:disabled):hover {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(55, 65, 81, 0.4);
}

.btn-dark-moderno:not(:disabled):active {
    background: linear-gradient(135deg, #111827 0%, #030712 100%);
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 15px rgba(55, 65, 81, 0.3);
}

.btn-dark-moderno:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.3), 0 4px 12px rgba(0,0,0,0.1);
}

.btn-dark-moderno:disabled {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ✅ BTN-LIGHT-MODERNO */
.btn-light-moderno {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(107, 114, 128, 0.2);
    border-radius: 5px;
    padding: 12px 24px;
    font-weight: 100;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    color: #374151;
}

.btn-light-moderno:not(:disabled):hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.15);
    border-color: rgba(107, 114, 128, 0.3);
}

.btn-light-moderno:not(:disabled):active {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.1);
}

.btn-light-moderno:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.2), 0 4px 12px rgba(0,0,0,0.05);
}

.btn-light-moderno:disabled {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border-color: rgba(156, 163, 175, 0.2);
}

/* ================================================ */
/* EFECTOS ADICIONALES PARA TODOS LOS MODERNOS     */
/* ================================================ */

/* ✅ EFECTO DE ONDAS AL HACER CLICK */
.btn-success-moderno::before,
.btn-secondary-moderno::before,
.btn-primary-moderno::before,
.btn-info-moderno::before,
.btn-danger-moderno::before,
.btn-warning-moderno::before,
.btn-dark-moderno::before,
.btn-light-moderno::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: 0;
}

.btn-success-moderno:active::before,
.btn-secondary-moderno:active::before,
.btn-primary-moderno:active::before,
.btn-info-moderno:active::before,
.btn-danger-moderno:active::before,
.btn-warning-moderno:active::before,
.btn-dark-moderno:active::before {
    width: 300px;
    height: 300px;
}

.btn-light-moderno:active::before {
    background: rgba(107, 114, 128, 0.1);
    width: 300px;
    height: 300px;
}

/* ✅ ASEGURAR QUE EL CONTENIDO ESTÉ ENCIMA DEL EFECTO */
.btn-success-moderno > *,
.btn-secondary-moderno > *,
.btn-primary-moderno > *,
.btn-info-moderno > *,
.btn-danger-moderno > *,
.btn-warning-moderno > *,
.btn-dark-moderno > *,
.btn-light-moderno > * {
    position: relative;
    z-index: 1;
}

/* ================================================ */
/* VARIANTES DE TAMAÑO PARA MODERNOS               */
/* ================================================ */

/* ✅ BOTONES PEQUEÑOS */
.btn-success-moderno.btn-sm,
.btn-secondary-moderno.btn-sm,
.btn-primary-moderno.btn-sm,
.btn-info-moderno.btn-sm,
.btn-danger-moderno.btn-sm,
.btn-warning-moderno.btn-sm,
.btn-dark-moderno.btn-sm,
.btn-light-moderno.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 5px;
    gap: 6px;
}

/* ✅ BOTONES GRANDES */
.btn-success-moderno.btn-lg,
.btn-secondary-moderno.btn-lg,
.btn-primary-moderno.btn-lg,
.btn-info-moderno.btn-lg,
.btn-danger-moderno.btn-lg,
.btn-warning-moderno.btn-lg,
.btn-dark-moderno.btn-lg,
.btn-light-moderno.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 5px;
    gap: 10px;
}

/* ================================================ */
/* ESTADOS DE CARGA (LOADING)                      */
/* ================================================ */

.btn-success-moderno.loading,
.btn-secondary-moderno.loading,
.btn-primary-moderno.loading,
.btn-info-moderno.loading,
.btn-danger-moderno.loading,
.btn-warning-moderno.loading,
.btn-dark-moderno.loading,
.btn-light-moderno.loading {
    pointer-events: none;
    position: relative;
}

.btn-success-moderno.loading .btn-content,
.btn-secondary-moderno.loading .btn-content,
.btn-primary-moderno.loading .btn-content,
.btn-info-moderno.loading .btn-content,
.btn-danger-moderno.loading .btn-content,
.btn-warning-moderno.loading .btn-content,
.btn-dark-moderno.loading .btn-content,
.btn-light-moderno.loading .btn-content {
    opacity: 0.6;
}

.btn-success-moderno.loading::after,
.btn-secondary-moderno.loading::after,
.btn-primary-moderno.loading::after,
.btn-info-moderno.loading::after,
.btn-danger-moderno.loading::after,
.btn-warning-moderno.loading::after,
.btn-dark-moderno.loading::after,
.btn-light-moderno.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 5%;
    animation: spin-modern 1s linear infinite;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

@keyframes spin-modern {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* ================================================ */
/* RESPONSIVE PARA MODERNOS                         */
/* ================================================ */

@media (max-width: 768px) {
    .btn-success-moderno,
    .btn-secondary-moderno,
    .btn-primary-moderno,
    .btn-info-moderno,
    .btn-danger-moderno,
    .btn-warning-moderno,
    .btn-dark-moderno,
    .btn-light-moderno {
        padding: 10px 20px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .btn-success-moderno.btn-lg,
    .btn-secondary-moderno.btn-lg,
    .btn-primary-moderno.btn-lg,
    .btn-info-moderno.btn-lg,
    .btn-danger-moderno.btn-lg,
    .btn-warning-moderno.btn-lg,
    .btn-dark-moderno.btn-lg,
    .btn-light-moderno.btn-lg {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Botón ghost base */
.btn-ghost {
    background: transparent;
    color: #045b75;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    outline: none;
}

/* PRIMARY */
.btn-ghost-primary {
    color: #2563eb;
}
.btn-ghost-primary:hover, .btn-ghost-primary:focus {
    background: rgba(37, 99, 235, 0.12);
    color: #1e40af;
    border-radius: 16px;
}

/* SECONDARY */
.btn-ghost-secondary {
    color: #6b7280;
}
.btn-ghost-secondary:hover, .btn-ghost-secondary:focus {
    background: rgba(107, 114, 128, 0.12);
    color: #374151;
    border-radius: 16px;
}

/* SUCCESS */
.btn-ghost-success {
    color: #059669;
}
.btn-ghost-success:hover, .btn-ghost-success:focus {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border-radius: 16px;
}

/* WARNING */
.btn-ghost-warning {
    color: #f59e0b;
}
.btn-ghost-warning:hover, .btn-ghost-warning:focus {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border-radius: 16px;
}

/* DANGER */
.btn-ghost-danger {
    color: #dc2626;
}
.btn-ghost-danger:hover, .btn-ghost-danger:focus {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
    border-radius: 16px;
}

/* INFO */
.btn-ghost-info {
    color: #06b6d4;
}
.btn-ghost-info:hover, .btn-ghost-info:focus {
    background: rgba(6, 182, 212, 0.12);
    color: #0e7490;
    border-radius: 16px;
}

/* DARK */
.btn-ghost-dark {
    color: #374151;
}
.btn-ghost-dark:hover, .btn-ghost-dark:focus {
    background: rgba(55, 65, 81, 0.12);
    color: #111827;
    border-radius: 16px;
}

/* LIGHT */
.btn-ghost-light {
    color: #f3f4f6;
}
.btn-ghost-light:hover, .btn-ghost-light:focus {
    background: rgba(243, 244, 246, 0.18);
    color: #374151;
    border-radius: 16px;
}

/* Tamaños */
.btn-ghost.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-ghost.btn-lg { padding: 16px 32px; font-size: 1.1rem; }

/* Disabled */
.btn-ghost:disabled,
.btn-ghost.disabled {
    color: #b0bfc5;
    background: transparent;
    cursor: not-allowed;
    opacity: 0.6;
}