/* ===============================================
   BUTTONS.CSS - Componente de Botones
   =============================================== */

/* ===== BOTONES MODERNOS BASE ===== */
.btn-modern {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    min-height: 40px;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn-modern:active::before {
    width: 300px;
    height: 300px;
}

.btn-modern:disabled,
.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
}

.btn-disabled .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-modern.loading {
    pointer-events: none;
}

.btn-modern.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===== VARIANTES DE BOTONES ===== */
.btn-primary-custom {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-success-custom {
    background: var(--success-gradient);
    color: white;
}

.btn-success-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.4);
    color: white;
}

.btn-warning-custom {
    background: var(--warning-gradient);
    color: #8b4513;
}

.btn-warning-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
    color: #8b4513;
}

.btn-cta-primary {
    background: white;
    color: var(--primary-gradient);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    margin: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    color: #4f46e5;
}

.btn-secondary-custom {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    margin: 0.5rem;
}

.btn-secondary-custom:hover {
    background: white;
    color: var(--primary-gradient);
    transform: translateY(-3px);
}

/* ===== BOTONES DE ACCIÓN COMPACTOS ===== */
.action-section-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-start;
}

.action-btn-compact {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 180px;
}

.action-btn-compact:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.action-btn-compact:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.action-btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.action-btn-success {
    background: var(--success-gradient);
    color: white;
}

.action-btn-warning {
    background: var(--warning-gradient);
    color: #8b4513;
    font-weight: 700;
}

/* action-btn-bottom styles moved to upload-modern.css (unificados) */

/* ===== ESTADOS DE BOTONES ===== */
.btn-text,
.btn-loader {
    transition: var(--transition);
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-modern.loading .btn-text,
.action-btn-compact.loading .btn-text {
    opacity: 0;
}

.btn-modern.loading .btn-loader,
.action-btn-compact.loading .btn-loader {
    opacity: 1;
}

.action-btn-compact .btn-text,
.action-btn-compact .btn-loader {
    transition: var(--transition);
}

.action-btn-compact .btn-loader {
    position: absolute;
}

/* action-btn-bottom styles moved to upload-modern.css (unificados) */ 