/* ========================================
   COMPONENTES - BOTONES
   ======================================== */

/* Botones base */
.btn {
    font-weight: 500;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Espacio entre icono y texto en todos los botones de la plataforma */
.btn i:not(:last-child),
.btn .fas:not(:last-child),
.btn .far:not(:last-child),
.btn .fab:not(:last-child),
.btn svg:not(:last-child) {
    margin-right: 0.5rem;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
}

/* Botón primario */
.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #3498db;
    color: white;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    border-color: #2980b9;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

/* Botón secundario */
.btn-outline-primary {
    background: transparent;
    border-color: #3498db;
    color: #3498db;
}

.btn-outline-primary:hover {
    background: #3498db;
    border-color: #3498db;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

/* Botón de éxito */
.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border-color: #27ae60;
    color: white;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.2);
}

.btn-success:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    border-color: #229954;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

/* Botón de peligro */
.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: #e74c3c;
    color: white;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    border-color: #c0392b;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* Botón de advertencia */
.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-color: #f39c12;
    color: white;
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.2);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    border-color: #e67e22;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

/* Botón de información */
.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border-color: #17a2b8;
    color: white;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2);
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    border-color: #138496;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

/* Botón ligero */
.btn-light {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

.btn-light:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

/* Botón oscuro */
.btn-dark {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    border-color: #343a40;
    color: white;
    box-shadow: 0 2px 4px rgba(52, 58, 64, 0.2);
}

.btn-dark:hover {
    background: linear-gradient(135deg, #212529 0%, #1a1e21 100%);
    border-color: #212529;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 58, 64, 0.3);
}

/* Tamaños de botones */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 8px;
}

/* Botón de bloque */
.btn-block {
    width: 100%;
    display: block;
}

/* Estados de botones */
.btn:disabled,
.btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Botones con iconos: tamaño y espacio a la derecha del icono (si hay texto) */
.btn i {
    font-size: 0.875em;
}

.btn i:last-child {
    margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }
}
