﻿
.btn {
    padding: .375rem .75rem;
    min-width: 3rem;
    margin: 0 0.5rem;
    border: none;
    height: 2.5rem;
    width: 8.75rem;
    font-size: 0.875rem;
    color: white;
    border-radius: 5px;
    -webkit-transition: all 0.3s ease-in-out 0.1s;
    -moz-transition: all 0.3s ease-in-out 0.1s;
    -ms-transition: all 0.3s ease-in-out 0.1s;
    transition: all 0.3s ease-in-out 0.1s;
}


.btn-avanzados {
    padding: .375rem .75rem;
    min-width: 3rem;
    margin: 0 0.5rem;
    border: none;
    height: 2.5rem;
    width: 15.75rem;
    font-size: 0.875rem;
    color: white;
    border-radius: 5px;
    -webkit-transition: all 0.3s ease-in-out 0.1s;
    -moz-transition: all 0.3s ease-in-out 0.1s;
    -ms-transition: all 0.3s ease-in-out 0.1s;
    transition: all 0.3s ease-in-out 0.1s;
}


.btn-primary-blue {
    /* Ahora usa la variable exclusiva de botones */
    background-color: var(--brand-btn-bg) !important;
    color: #fff !important;
    border: none;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

    .btn-primary-blue:hover {
        opacity: 0.85;
        color: #fff !important;
    }

    .btn-primary-blue:disabled {
        opacity: 0.65;
        color: #fff !important;
        cursor: not-allowed;
    }

.btn-primary-red {
    background-color: #cf0e0e;
}

    .btn-primary-red:hover {
        background-color: #ce4e4e;
        color: #fff;
    }

    .btn-primary-red:disabled {
        background-color: #ce4e4e;
        color: #fff;
    }

.btn-row-edit {
    font-size: 0.9375rem;
    background-color: var(--brand-btn-bg) !important;
    color: #fff !important;
    height: 2.6rem;
    width: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px; /* Opcional: da un redondeado sutil muy moderno */
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

    /* Estado al pasar el cursor (Hover) */
    .btn-row-edit:hover {
        /* CORREGIDO: Quitamos el color fijo con transparencias duras y usamos opacidad */
        opacity: 0.85;
        color: #fff !important;
    }

    /* Estado deshabilitado (Disabled) */
    .btn-row-edit:disabled {
        /* CORREGIDO: Reducimos la opacidad general para dar el efecto de apagado automático */
        opacity: 0.5;
        color: rgba(255, 255, 255, 0.6) !important; /* Icono levemente gris transparente */
        cursor: not-allowed;
    }

.btn-row-delete {
    font-size: 0.9375rem;
    background-color: #cf0e0e;
    height: 2.6rem;
    width: 2.6rem;
}

    .btn-row-delete:hover {
        background-color: #f64d4d;
        color: #fff;
    }

    .btn-row-delete:disabled {
        background-color: #f64d4d;
        color: #fff;
    }

.btn-sin-foco {
    text-decoration: none !important; /* Quita el subrayado si no lo deseas */
    box-shadow: none !important; /* Quita la sombra azul */
    outline: none !important; /* Quita el borde de enfoque */
}

    .btn-sin-foco:focus, .btn-sin-foco:active {
        outline: none !important;
        box-shadow: none !important;
    }

.btn-primary-alert-aceptar {
    background-color: #cc3000;
}

    .btn-primary-alert-aceptar:hover {
        background-color: #e65f35;
        color: white
    }

    .btn-primary-alert-aceptar:focus {
        background-color: #e65f35;
        color:white
    }

    .btn-primary-alert-aceptar:disabled {
        background-color: #e65f35;
        color: white
    }

.btn-secondary-alert-cancelar {
    background-color: #676868;
}

    .btn-secondary-alert-cancelar:hover {
        background-color: #aeaeae;
        color: white
    }

    .btn-secondary-alert-cancelar:focus {
        background-color: #aeaeae;
        color: white
    }

    .btn-secondary-alert-cancelar:disabled {
        background-color: #aeaeae;
        color: white
    }

.btn-row-delete-telefono-correo-contacto {
    font-size: 0.9375rem;
    background-color: transparent;
    height: 2.6rem;
    width: 2.6rem;
}

    .btn-row-delete-telefono-correo-contacto:hover {
        background-color: transparent;
        color: #fff;
    }

    .btn-row-delete-telefono-correo-contacto:disabled {
        background-color: transparent;
        color: #fff;
    }

    .btn-row-delete-telefono-correo-contacto,
    .btn-row-delete-telefono-correo-contacto:hover,
    .btn-row-delete-telefono-correo-contacto:active,
    .btn-row-delete-telefono-correo-contacto:focus {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

.boton-buscar {
    /* Dimensiones fijas absolutas */
    height: 31px !important;
    width: 31px !important;
    min-height: 31px !important;
    min-width: 31px !important;
    /* Reseteo total de espaciados */
    padding: 0 !important;
    margin: 0 !important;
    /* Centrado del icono de la lupa */
    display: flex !important;
    align-items: center;
    justify-content: center;
    /* Fusión e integración con el input */
    border: 1px solid #e0e0e0 !important;
    border-left: none !important; /* Quita la división intermedia */
    border-radius: 0 4px 4px 0 !important; /* Redondeado solo a la derecha */

    background-color: #ffffff;
    color: #6c757d;
    cursor: pointer;
    box-sizing: border-box !important;
}

    /* Estados del botón */
    .boton-buscar:hover:not(:disabled) {
        background-color: #f8f9fa;
        color: #495057;
    }

    .boton-buscar:disabled {
        background-color: #f8f9fa;
        color: #ced4da;
        cursor: not-allowed;
    }